Re: signal/slot question




Robert Wilhelm <robert@physiol.med.tu-muenchen.de> writes:

> Doing a gtk_signal_connect(), the data (last argument) does not reach
> the callback function.
> 
> What I am doing wrong here?
> 
> Robert
> 
> #include <gtk/gtk.h>
> 
> static void  cb(GtkWidget* widget, gpointer data)
> {
>   printf("cb %p %p %p\n",widget,data, *(void **) data);
> }

Try 

  static void 
  cb (GtkWidget *widget, GdkEventButton *event, gpointer data)

_event signals take an extra argument which is a pointer
to the GDK event structure. 

Regards,
                                        Owen



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