Gottipati Aravind, dans le message (.gtk.general:2936), a �crit :
> Lets say I have 3 variables x, i and t. How do I pass these as data to a
> typical callback function (I dont want to declare them as global
> variables).
typedef struct {
type_of_x x;
type_of_i i;
type_of_t t;
} StructToPass_x_i_t;
StructToPass_x_i_t data;
data = g_new(StructToPass_x_i_t,1);
data->x = x;
data->i = i;
data->t = t;
.... and then pass data to the callback.
--
To unsubscribe: mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
- [gtk-list] Fundamental Problems... Ankit Mohan
- [gtk-list] Re: Fundamental Problems... Jeroen Benckhuijsen
- [gtk-list] Data in callbacks and use of Glade Thames
- [gtk-list] Re: Data in callbacks and use ... Thomas Mailund
- [gtk-list] Re: Data in callbacks and use ... Damon Chaplin
- [gtk-list] Re: Fundamental Problems... Gottipati Aravind
- [gtk-list] Re: Fundamental Problems... Nicolas GEORGE
- [gtk-list] Re: Fundamental Problems... Eric Hegstrom
- [gtk-list] Re: Fundamental Problems... Jeroen Benckhuijsen
- [gtk-list] Re: Fundamental Problems... Gottipati Aravind
