Re: [gtk-list] [Q] Using idle() with gtkmm
- From: Havoc Pennington <rhpennin midway uchicago edu>
- To: Jonathan Belson <jon dookie demon co uk>
- cc: gtk-list redhat com
- Subject: Re: [gtk-list] [Q] Using idle() with gtkmm
- Date: Wed, 23 Sep 1998 08:41:47 -0500 (CDT)
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]