« Return to Thread: Arbitrary number of child windows

Re: Arbitrary number of child windows

by Holger Berndt :: Rate this Message:

Reply to Author | View in Thread

On Sa, 10.05.2008 17:11, Paul Davis wrote:

>> How do other people write their self-destructing child windows?
>
>template<class T> bool idle_deleter (T* ptr) { delete ptr; return
>false; }
>
>Glib::signal_idle.connect (sigc::bind (sigc::ptr_fun
>(idle_deleter<Window>), aWindow);
>
>done.

Very good idea indeed! Thanks, Paul.

Holger
_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

 « Return to Thread: Arbitrary number of child windows

LightInTheBox - Buy quality products at wholesale price