Re: Parameter passing and signal connect



Take a look at the documentation on the web under GtkWidget (Base Class for
a drawing area). The prototype for the function which is called by the 
"button-press-event" looks like this:

gboolean
user_function (GtkWidget *widget, GdkEventButton *event,
               gpointer user_data);

Therefore the user data you send as the fourth argument in the
gtk_signal_connect will come to the third argument of your handler
function. (Just change the NULL to whatever user data you want to send.)

Hope this answers your question.

Nathan




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