I'm using lookup_widget() in a callback for a menuitem.
on_preferences_activate (GtkWidget *menuitem,
txt_server = lookup_widget(GTK_WIDGET(menuitem), "txt_server");
GtkWidget* combo = lookup_widget(GTK_WIDGET(menuitem), "cmb_prefix");
gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (combo)->entry), server_type);
I've seen lookup_widget used in other programs and they work fine, but when I run my program lookup_widget() prints
** (patcher:6391): WARNING **: Widget not found: txt_server
** (patcher:6391): WARNING **: Widget not found: cmb_prefix
I've checked the names of the widgets, they are valid in callbacks for buttons, but it doesn't work with menuitems.