Re: invalid cast from 'GtkButton' to 'GtkEntry'

I tryed somethig similar too.
The problem is that I need to fix the Part where says :
myApp.c: In function ‘btn_clicked’:
myApp.c:3:36: warning: unused parameter ‘widget’ [-Wunused-parameter]
 static void btn_clicked(GtkWidget *widget, gpointer data)
And your "FIXED" code does Include that.

I need to compile this code with GCC, using the following:
gcc -Wall -Wextra myApp.c -o myApp `pkg-config --cflags --libs gtk+-3.0 `

I can't silence it with (void)widget;, but this is not what I need.

View this message in context:
Sent from the Gtk+ - General mailing list archive at

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