>
> I'm trying to connect text entry widget, so I wrote in callback.c:
>
> void on_button1_clicked (GtkButton *button, gpointer user_data)
> {
> GtkWidget *a;
> a = get_widget(GTK_WIDGET(button), "entry1");
> gtk_entry_set_text( a, "some text");
> }
>
> ...and after autoconf and make;
> .
> .
> .
> callbacks.c: In function `on_button1_clicked':
> callbacks.c:19: warning: passing arg 1 of `gtk_entry_set_text' from incompatible
>pointer type
> How to avoid that? Is it or isn't mistake, Compiled program works fine.
Hi,
Just do a cast (or macro, you choose) like
gtk_entry_set_text(GTK_ENTRY(a), "some text");
Bira
--
Ubirata Azevedo Ignacio
Suporte ao usuario
Universidade de Vale do Rio dos Sinos - Unisinos
RS - Brasil
Linux User #125117
+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.