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 618739 - Derivation from GtkWidget and usage of GtkBuilder
Derivation from GtkWidget and usage of GtkBuilder
Status: RESOLVED DUPLICATE of bug 612036
Product: gtk+
Classification: Platform
Component: Widget: Other
2.20.x
Other All
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2010-05-15 19:51 UTC by Mathias Brodala
Modified: 2010-05-17 22:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mathias Brodala 2010-05-15 19:51:39 UTC
One feature I have been dreaming of since ages is the following: being able to derive from a GtkWidget AND use GtkBuilder to initialize the derived widget from a UI description.

ATM one has two choices:

1) Derive from GtkWidget, get all the goodies for free, including easy integration into containers and the like.
   Disadvantage: one has to code each and every aspect by hand.

2) Load a widget from a UI description which allows for easy setup of trivial and sometimes more complex constructs.
   Disadvantage: the current object can only hold the widget as member, not BE it. Integration thus always involves reaching into the internals of the object to work with the widget.

Thus my request: allow for using GtkBuilder to initialize the widget directly into the current object.
Comment 1 Matthias Clasen 2010-05-17 22:41:17 UTC

*** This bug has been marked as a duplicate of bug 612036 ***