Re: [gtk-list] Re: gtk-- delete/destroy confusion

Tero Pulkkinen wrote:

> >  Can you give an example of using idle_add() for this?
> class dialog : public Gtk_Dialog {
> public:
>     ...
>     /* this idle handler will be called when gtk is in its eventloop
>        next time, with nothing to do */
>     static gint my_delete_obj(dialog *a) { delete a; return 1; }

 Shouldn't this be "return 0", so that it won't be called again?


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