Re: [gtk-list] Re: Can't preempt WM destroy event



Yasushi Shoji <yashi@yashi.com> writes:
> >-    "destroy", (GtkSignalFunc)on_sub_destroy, NULL);
> >+    "delete-event", (GtkSignalFunc)on_sub_destroy, NULL);
> > 
> >   printf("main: top=%p, sub=%p\n", top, sub);
> 
> should do it.

Note that you also have to change the callback signature to match
delete_event.

Havoc



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