Re: GtkComboBoxEntry



On 01/20/2005 10:43:13 AM, Johnny wrote:

How can text be placed into the entry of the combobox? I'm trying this but get errors:
>
> gtk_entry_set_text(GTK_ENTRY(set_value_combo->entry),
temp_string);
>

you have to use this syntax:

gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(set_value_combo)->entry),
temp_string);

If set_value_combo is a GtkComboBoxEntry, as your subject line suggests, see <http://developer.gnome.org/doc/API/2.0/gtk/migrating-GtkCombo.html> for some guidance. If it's a GtkCombo, as Johnny seems to believe, see the same document!

Peter




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