Hi Guys,
More GTK questions, im trying to compile some code and im getting the following error:
error: invalid use of member (did you forget the ‘&’ ?)
This is comming from the g_signal_connect call:
g_signal_connect ((gpointer) Drawing_Area_CPU, "expose-event",
G_CALLBACK (graph_expose), NULL);
Drawing_Area_CPU is a GtkWidget* and graph_expose is defined as:
gboolean graph_expose(GtkWidget *widget, GdkEventExpose *event, gpointer data);
So far as i can tell im doing everything right, but still i get this error. Can anyone help please?
Regards
Paul
UPDATE:
Sorry guys, i got confused, my graph_expose function is in a class, and im trying to do the g_signal_connects from the constructor of that class, would that affect this problem in any way?