GNOME Bugzilla – Bug 99425
Missing accessors in GtkPaned for child1 and child2
Last modified: 2011-02-04 16:12:26 UTC
GtkPaned have two attributes (child1 and child2) for which it would be nice to have handy accessors like gtk_paned_get_child1 () and gtk_paned _get_child2 () Currently you have to use gtk_container_get_children () and play with with a GList or access them directly.
Note that there is no gtk_bin_get_child() either currently and that's a _much_ more frequent need.
Actually, there is a gtk_bin_get_child
This would still be a nice feature. Currently you have to dig down to the children of the children, which is not obvious.
See the attached patch; this is the ChangeLog: 2004-01-12 Federico Mena Quintero <federico@ximian.com> Fix #99425, add accessor functions for GtkPaned's children. * gtk/gtkpaned.c (gtk_paned_get_child1): New function. (gtk_paned_get_child2): New function.
Created attachment 23283 [details] [review] Patch with new functions.
Doc nit-picking: Your doc comments are missing "Since: 2.4" markers, and #NULL should be %NULL (# is for links to structs/functions/typedefs/macros, and % is for simple constants which we don't want to link everytime)
Oops, you are right. Attaching new patch.
Created attachment 23426 [details] [review] Updated patch.
Committed per Matthias's approval.