Newbie question about signal handler args



Hi all,


When I connect to a signal

gtk_signal_connect( GTK_OBJECT( button ), "focus-in-event",
                              GTK_SIGNAL_FUNC( buttonHandler ), argToPass );

In my handler,

void buttonHandler( GtkWidget *widget, gpointer *data )
{
}

I think that (*data) should be my "argToPass", but is "widget" a pointer to the button that got the focus change event?

Thanks,

Larry



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