Re: g_signal_connect problem



Lorenzo Delana wrote:

I dont' understand why this simple code doens't work:


gint cb_button( GtkWidget* widget,
               GdkEvent* event,
                                    ^^^^^^^^^^^^^^^^^^
There's your problem. A callback for GtkButton's "clicked" signal doesn't have a parameter GdkEvent *event. Your function should be declared as cb_button (GtkWidget *widget, gpointer callback_data)






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