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

Reply via email to