Re: [gtk-list] [Q] Using idle() with gtkmm




On Wed, 23 Sep 1998, Jonathan Belson wrote:
> 
>   (Gtk_Main::instance())->idle_add((GtkFunction) &my_delete_obj, this);
> 
> my_delete_obj() is a static member which deletes the object to by
> 'this'.
>

Now you can just call delete_self() to destroy the window, and things will
(in theory at least) happen automagically for you.
 
You can pass data to a callback though:

connect_to_function(Gtk_Main::idle(),
                    my_delete_obj,
                    this);

Havoc




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