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 142758 - Add Gtk::ComboBoxEntry::get_entry()
Add Gtk::ComboBoxEntry::get_entry()
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: general
2.4
Other All
: Normal enhancement
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2004-05-19 02:09 UTC by Daniel Elstner
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Daniel Elstner 2004-05-19 02:09:47 UTC
I think it'd be nice to add a get_entry() method to Gtk::ComboBoxEntry in order
to avoid the need to dynamic_cast<> the result of Gtk::Bin::get_child().  This
would probably boil down to:

    _WRAP_METHOD(Entry* get_entry(), gtk_bin_get_child)

Not terribly important, though.
Comment 1 Murray Cumming 2004-05-25 19:12:13 UTC
We would need to double-check that is _always an Entry, and maybe add the
function to GTK+.

When adding this to gtkmm, remember to add a const overload too.
Comment 2 Daniel Elstner 2004-05-25 19:22:52 UTC
The GTK+ documentation explicitely states that one should use
gtk_bin_get_child() to get the GtkEntry.  I reckon such a function were rather
pointless in plain GTK+ since most of the time, you have to use explicit casts
anyway...
Comment 3 Murray Cumming 2004-10-06 12:12:48 UTC
Yes, let's add this to gtkmm.
Comment 4 Murray Cumming 2004-10-09 19:48:16 UTC
Done.