Add PurpleRequestField.is_filled vfunc, and a filled property

Review Request #2345 — Created March 13, 2023 and submitted

QuLogic
pidgin/pidgin
default
2346
pidgin

And then move the string-specific check into the subclass.

Note that this just does a g_object_notify(G_OBJECT(field), "filled"); instead of adding a convenience function; not sure if I should do that.

Compiled and ran ninja test.

Summary
Add PurpleRequestField.is_filled vfunc, and a filled property
Description From Last Updated

iirc gi-docgen will populate this from the dispatcher function's documentation if it's not there to help minimize duplication. Would you …

grimgrim

Any reason to use the manual typecast verus the macro?

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

    iirc gi-docgen will populate this from the dispatcher function's documentation if it's not there to help minimize duplication.

    Would you mind giving it a try to verifying that and if so we can remove the vfunc from this comment.

    1. Yea, it doesn't use this comment; I just copied how other files were doing it.

  3. Any reason to use the manual typecast verus the macro?

    1. I just figured we knew it was a RequestField because we already checked it was a RequestFieldString, so no need for the runtime check. But I can put it back in.

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

  3. 
      
grim
Review request changed

Status: Closed (submitted)

Loading...