Re: Parameter passing and signal connect
- From: Nathan Bullock <bullock cs ualberta ca>
- To: gtk-app-devel-list gnome org
- Subject: Re: Parameter passing and signal connect
- Date: Fri, 6 Jul 2001 11:31:02 -0600
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]