On Mon, Dec 07, 2009 at 07:52:02PM -0800, Steve Harrington wrote:
I have an application using GtkComboBoxEntry with a simple 2-column
int/char * ListEntry model. If the user enters data in the box (as
opposed to using a pull-down selector) I can access the index with
David is right,
you should get the entry pointer with gtk_bin_get_child, and after that
you handle this entry as any other entry:
entry = gtk_bin_get_child (GTK_BIN (combo_entry));
gtk_entry_set_text (GTK_ENTRY (entry), );
In GTK 2.0 you can also use this:
gtk_entry_set_text (GTK_ENTRY
GTK+ 2.18.5 is now available for download at:
ftp://ftp.gtk.org/pub/gtk/2.18/
http://download.gnome.org/sources/gtk+/2.18/
md5 sums:
3047875309f7f6030e03b0a95cf99c8c gtk+-2.18.5.tar.bz2
c60a0792c3065787f560d2c39ec0893b gtk+-2.18.5.tar.gz
sha1 sums:
ddb004f0f92f7c8e3b84237e05fcf0ef5affc79c
Carlos Pereira wrote:
David is right,
you should get the entry pointer with gtk_bin_get_child, and after
that you handle this entry as any other entry:
entry = gtk_bin_get_child (GTK_BIN (combo_entry));
gtk_entry_set_text (GTK_ENTRY (entry), );
In GTK 2.0 you can also use this: