Hi, Jasper,
On 22-Aug-99 Jasper Spit wrote:
> 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;
I think, there is a mistake in the previous declaration. It should be:
GtkWidget *owner, *textedit;
> owner = GTK_WIDGET( gtk_widget_get_toplevel (GTK_WIDGET ( button ) ) );
> textedit = lookup_widget(owner, "sql_window1_text_edit1");
Otherwise the above asignment is not allowed :-)
> text = gtk_editable_get_chars(G TK_TEXT(textedit), 0, -1);
> // Just for testing purpose :
> cout << text << endl;
> // gtk_widget_destroy (owner);
> }
>
Regards
Joachim Backes
--
Joachim Backes <[EMAIL PROTECTED]> | Univ. of Kaiserslautern
Computer Center, Supercomputing Division | Phone: +49-631-205-2438
D-67653 Kaiserslautern, PO Box 3049, Germany | Fax: +49-631-205-3056
---------------------------------------------+------------------------
WWW: http://sgi400.rhrk.uni-kl.de/home/mitarbeiter/backes.html
+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.