Re: [gtk-list] Bug in delivering of delete_event gtk-99.2??




Richie Bielak <richieb@netlabs.net> writse:

> I'm just starting with GTK and I think I found a bug. The pointer to
> user data passed into
> the callback routine for "delete_event" signal seems to be garbage. I'm
> using GTK 99.2.

Actually, you just found a bug in the tutorial. Like all
signals ending in _event (and a few others), "delete_event"
takes three arguments.

Try changing, 

> void  delete_event (GtkWidget *widget, gpointer data)

to

void  delete_event (GtkWidget *widget, GtkEvent *event, gpointer data)

Regards,
                                        Owen

(Anybody want to fix the tutorial and/or the FAQ?)



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