After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 99425 - Missing accessors in GtkPaned for child1 and child2
Missing accessors in GtkPaned for child1 and child2
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.0.x
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 588339
 
 
Reported: 2002-11-24 16:42 UTC by Frédéric LESPEZ
Modified: 2011-02-04 16:12 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Patch with new functions. (1.68 KB, patch)
2004-01-12 21:56 UTC, Federico Mena Quintero
none Details | Review
Updated patch. (1.71 KB, patch)
2004-01-16 05:05 UTC, Federico Mena Quintero
none Details | Review

Description Frédéric LESPEZ 2002-11-24 16:42:45 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.
Comment 1 Owen Taylor 2002-11-25 17:36:56 UTC
Note that there is no gtk_bin_get_child() either currently
and that's a _much_ more frequent need.
Comment 2 Anders Carlsson 2002-11-25 20:32:26 UTC
Actually, there is a gtk_bin_get_child
Comment 3 Dave Cook 2003-08-06 05:40:31 UTC
This would still be a nice feature.  Currently you have to dig down to
the children of the children, which is not obvious.
Comment 4 Federico Mena Quintero 2004-01-12 21:56:22 UTC
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.
Comment 5 Federico Mena Quintero 2004-01-12 21:56:58 UTC
Created attachment 23283 [details] [review]
Patch with new functions.
Comment 6 Matthias Clasen 2004-01-13 14:36:23 UTC
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)
Comment 7 Federico Mena Quintero 2004-01-16 05:04:19 UTC
Oops, you are right.  Attaching new patch.
Comment 8 Federico Mena Quintero 2004-01-16 05:05:02 UTC
Created attachment 23426 [details] [review]
Updated patch.
Comment 9 Federico Mena Quintero 2004-01-20 23:07:55 UTC
Committed per Matthias's approval.