Re: [gtk-list] Fwd: Re: Calling function w/ multiple parameters
- From: "Michael J. Hammel" <mjhammel fastlane net>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Fwd: Re: Calling function w/ multiple parameters
- Date: Thu, 4 Jun 1998 13:12:15 -0600 (MDT)
In a previous message, ajam says:
> >Continuing my previous message, I opted to use a pointer to a
> >structure to pass all the parameters to my function through
> >the use of the fourth argument of "gtk_signal_connect()",
> >which is actually expecting a "gpointer". Well, it doesn't
> >work. No surprise here. Is there a Macro or other method
> >in order to be able to send this pointer to the function?
Does your callback routine expect this gpointer as its second or third
argument? Some signals will pass this back as the 2nd parameter to your
callback, others pass it back as the 3rd. In the latter case the 2nd arg
is actually a pointer to an GtkEvent structure so you can tell what event
actually caused the callback to be called.
--
Michael J. Hammel | I hope that after I die people will say of me:
The Graphics Muse | "That guy sure owed me alot of money."
mjhammel@graphics-muse.org | Deep Thoughts by Jack Handey
http://www.graphics-muse.org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]