GNOME Bugzilla – Bug 142758
Add Gtk::ComboBoxEntry::get_entry()
Last modified: 2004-12-22 21:47:04 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.
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.
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...
Yes, let's add this to gtkmm.
Done.