Re: Getting a value from a Gtk2::ComboBoxEntry
- From: "A. Pagaltzis" <pagaltzis gmx de>
- To: gtk-perl-list gnome org
- Subject: Re: Getting a value from a Gtk2::ComboBoxEntry
- Date: Tue, 12 Oct 2004 22:40:09 +0200
* Daniel Flemming <danflemming mac com> [2004-10-12 21:45]:
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.
Are you sure? It IS_A Gtk2::Bin and the Gtk+ docs say
You can get the GtkEntry from a GtkComboBoxEntry using
GTK_ENTRY (GTK_BIN (combo_box_entry)->child).
so you should well be able to retrieve the string using
the child() method.
Regards,
--
Aristotle
@j = ((qw)" Just " )), @a = ((qw " another" )),
@p = ((qw " Perl " )), @h = ((qw " hacker " )),
(()),),(s""@j,",s (" )))g), print
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]