Re: signal/slot question
- From: Owen Taylor <owt1 cornell edu>
- To: Robert Wilhelm <robert physiol med tu-muenchen de>
- Cc: gtk-list redhat com
- Subject: Re: signal/slot question
- Date: 03 Mar 1998 13:00:07 -0500
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]