GNOME Bugzilla – Bug 628748
GtkContainer find_child_property() and list_child_properties()
Last modified: 2010-10-30 18:08:51 UTC
Created attachment 169460 [details] [review] diff incl test case This is a few lines to wrap gtk_container_class_find_child_property() and gtk_container_class_list_child_properties(). It's adapted from the corresponding GObject code and a bit of sharing with it might be possible in the future. I've got it setup to croak on a non-container, which is unlike the GObject bit giving empty/undef. As long as an @ISA is sensible then I suppose the code isn't reached for a non-object/non-container anyway, so it probably doesn't matter much what it does for that case. Starting strictly with a croak could always be loosened in the future.
Terrific patch! Committed. Thanks.
I see I did something wrong to the apidoc bit =for apidoc Gtk2::Container::list_child_properties which doesn't come out in final pod. What should it look like for one of these dual ALIAS func thingies? (I thought I copied what GObject.xs had ...)
Some experimentation suggests that the '=for apidoc' line needs to match the ALIAS line completely in order for Glib::GenPod to pick up the POD. I haven't investigated much further, but I just fixed this particular instance.