Re: Getting a value from a Gtk2::ComboBoxEntry




Daniel Flemming said:
However, if the user does type, get_active just returns a -1. How do you find
out what the text the user typed was? You can't just use a get_text method
like you can with a Gtk2::Entry, and while the Gtk2::ComboBoxEntry widget is a
container, it doesn't seem to have any children set up by default.

according to
http://developer.gnome.org/doc/API/2.0/gtk/GtkComboBoxEntry.html#gtk-combo-box-entry-new-with-model
, it's GTK_ENTRY (GTK_BIN (combo_box_entry)->child), which translates to perl
as $combo_box_entry->child (or $combo_box_entry->get_child).  does that not
work?


-- 
muppet <scott at asofyet dot org>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]