Hey, I've never used the paramater gpointer data in
the gtk_signal_connect object, would it be similar to this?
struct foo
{
...
gint x,y,z;
};
typedef struct foo bar;
int main(int argc, char *argv[])
{
bar variable;
...
gtk_signal_connect(...,variable);
} myfunction(..., gpointer data)
{
...
data->x = 1;
data->y = 2;
data->z = 3;
}
Would that work?
P.S. I know this works in CPP but if I go
gtk_signal_connect(...,&variable) to directly access the structure would
that work? I would prefer to directly access the Widgets for speed and
ease.
|