Re: Passing a struct through a gtk_connect_signal
- From: Rafael Peregrino da Silva <rafael bmt4 kf tu-berlin de>
- To: gtk-list redhat com, gtk-app-devel-list redhat com
- Subject: Re: Passing a struct through a gtk_connect_signal
- Date: Mon, 13 Mar 2000 20:17:19 +0100 (NFT)
Hi ALL :-)
First of all, thanks for all that replied to my e-mail.
I already knew the solution you gave me, but was wondering if there would
not be a trick to avoid the global declaration/definition of a structured
type, e.g., declaring the struct in main() as static or something like
that... The problem is that so I can't cast user_data to the right type
and I've not found any tip on this on my C books allaround (e.g.
Oualline/Practical C Programing)... By the way, I don't really see much
difference between the definition of the struct as global (and then use
the variables directly) and the definition of a structured type (with
which I would then declare a new variable into main() and then pass it to
Anyway, I'll implement the suggested solution. Thanks A LOT for the help!
Take a look at our site!
"Unshakable faith is only that
which can meet reason face to
face in every Human epoch"
] [Thread Prev