Hi,
I'm having trouble getting the contents of a gtk edit box. I'm trying
to use this code :
void
on_sql_window1_toolbar1_execute_button1_pressed (GtkButton *button,
gpointer user_data)
{
gchar *text;
GtkWidget *owner, textedit;
owner = GTK_WIDGET( gtk_widget_get_toplevel (GTK_WIDGET ( button ) ) );
textedit = lookup_widget(owner, "sql_window1_text_edit1");
text = gtk_editable_get_chars(G TK_TEXT(textedit), 0, -1);
// Just for testing purpose :
cout << text << endl;
// gtk_widget_destroy (owner);
}
But it won't compile. I've looked through the gtk edit box example in the gtk
tutorial, but this function is not used in the example :-(
Thanks in advance !
Jasper
--
__ _ linux! : kernel 2.2.11/i686
/ / (_)__ __ ____ __ : oracle 8 on rh5.2
/ /__/ / _ \/ // /\ \/ / : last command : ll
/____/_/_//_/\_,_/ /_/\_\ : load 0.33 0.30 0.34
+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.