Add a PurpleRequestField:valid property and is_valid vfunc

Review Request #2346 — Created March 14, 2023 and submitted

Information

pidgin/pidgin
default

Reviewers

  • Add a PurpleRequestField:valid property and is_valid vfunc.
  • Add a GDestroyNotify parameter for the validator data, and document the callback.
  • Correct the property notification in purple_request_field_bool_set_value.

Compiled and ran ninja test

Summary ID
Add a PurpleRequestField:valid property and is_valid vfunc
Additionally, * Add `GDestroyNotify` parameter to `purple_request_field_set_validator`. * Fix property notification from `purple_request_field_bool_set_value`.
705089d4ed02d786325f783e0f4a45fa4e6ed64f
Description From Last Updated

%NULL

grimgrim

%NULL

grimgrim

should we be freezing here?

grimgrim

mark for translation

grimgrim

Should we be freezing here?

grimgrim

freeze notify?

grimgrim

freeze notify?

grimgrim

should be marked for translation

grimgrim

should be marked for translation

grimgrim

freeze?

grimgrim

Once the int validation strings are marked for translation, we'll need to add an environment to this test to set …

grimgrim
grim
  1. 
      
  2. libpurple/purplerequestfield.h (Diff revision 1)
     
     
    Show all issues

    %NULL

  3. libpurple/purplerequestfield.h (Diff revision 1)
     
     
    Show all issues

    %NULL

  4. libpurple/purplerequestfield.c (Diff revision 1)
     
     
    Show all issues

    should we be freezing here?

    1. No point here; the other property is going away soon.

  5. libpurple/purplerequestfield.c (Diff revision 1)
     
     
    Show all issues

    mark for translation

  6. Show all issues

    Should we be freezing here?

  7. Show all issues

    freeze notify?

  8. Show all issues

    freeze notify?

  9. Show all issues

    should be marked for translation

  10. Show all issues

    should be marked for translation

  11. Show all issues

    freeze?

  12. libpurple/tests/test_request_field.c (Diff revision 1)
     
     
    Show all issues

    Once the int validation strings are marked for translation, we'll need to add an environment to this test to set LANG=C.

    I tried finding a way to do this at run time, but google wasn't coming up with anything. It might be as easy as just a g_setenv before initializing gettext, but actually maybe we don't need to do any of this because our tests don't initialize gettext?

  13. 
      
QuLogic
grim
  1. Ship It!
  2. Great work, thanks!!

  3. 
      
grim
Review request changed
Status:
Completed