Re: [gtk-list] Re: Fundamental Problems...
- From: Nicolas GEORGE <george clipper ens fr>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Fundamental Problems...
- Date: Mon, 8 May 2000 23:38:41 +0200 (CEST)
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]