[Glade-users] why doesn't this work - gtk_entry_set_text



Hi

I have this code

GtkWidget *test;
GtkWidget *notebook;
GladeXML *xml;
const gchar *string[1];

test=glade_xml_get_widget(xml,"entry1");
string[0]=gtk_entry_get_text(GTK_ENTRY(test));

/* update notebook widget */
notebook=glade_xml_get_widget(xml,"textview1");
gtk_entry_set_text(GTK_ENTRY(notebook),string[0]);

But it doesn't seem to work.
What am i doing wrong?

Thanks




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