Confusion about callback-type



There seems to be a bit of confusion about the types of callbacks in the 
tutorial and in most of the examples in the gtk distribution.

The tutorial says this:
void callback_func(GtkWidget *widget, gpointer *callback_data);

I suppose that "gpointer *callback_data" should really be "gpointer 
callback_data". This might be confusing for newbies (like myself).

The same confusion exists in the gtk examples. Look at this:
helloworld/helloworld.c:gint delete_event(GtkWidget *widget, gpointer data)
helloworld2/helloworld2.c:void delete_event (GtkWidget *widget, gpointer *data)

/ Alex




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]