g_signal_connect error invalid use of member

Posted by paultop6 on Stack Overflow See other posts from Stack Overflow or by paultop6
Published on 2010-04-20T21:10:58Z Indexed on 2010/04/20 21:13 UTC
Read the original article Hit count: 171

Filed under:
|
|
|
|

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

© Stack Overflow or respective owner

Related posts about g++

Related posts about gtk