Re: [gtk-list] EventBox's problem




On Fri, 8 May 1998, NGUYEN wrote:
> 
> void callback(GtkWidget *widget,gpointer *data)
>

I think your callback should be like:
gint callback (GtkWidget * widget, GdkEventButton * e, gpointer data)

There are two problems, one is that you said gpointer * when you want just
gpointer (no *), and the other is that you're getting a button event as
arg 2 rather than your data. Oh, also you should return TRUE if you handle
the event, and FALSE if it should be passed along to other handlers.

HTH,

Havoc Pennington ==== http://pobox.com/~hp



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