[Glade-users] function pointers and signals



Hi,

using glade-GUI I have added a signal for a button. In "Object" field
I want to insert a function-pointer for a generic function:

void on_button_clicked(GtkButton * button, gpointer user_data)
{
        ...
        void (* func) (gint) = user_data;
        ...
}

but in run-time I got "user_data = 0x0".

Is it possible past in Glade-GUI a function pointer?

Thanks,
Giulio




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