Re: Deactivate window close button

From: Date: Sun, 19 Sep 2004 20:10:12 +0000
Subject: Re: Deactivate window close button
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5100@lists.php.net to get a copy of this message
Hi
Well, it is easy. just connect the delete-event to a function that call hide method.
But this doesn't work for me on non-modal dialog windows running on win32, > For non-modal dialog windows you must call gtk::main again 'cause the window is always closed when you press the close button... and it's own gtk::main loop seems to be destroyed...
You connect the "delete-event" of the gtkwindow. The callback function decides what happens: if it returns "true", the window is kept open, if it returns false, the window is closed and destroyed. Regards/MfG, Christian Weiske -- XMMS is playing now:

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.gtk.general (#5100) next »