intercepting signals
| From: | Tony Leake | Date: | Wed, 20 Aug 2003 09:46:10 +0000 |
| Subject: | intercepting signals | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-3717@lists.php.net to get a copy of this message | ||
Hi,
I have a need to create a dialog box that the user cannot close with the
X in the top left of the window.
I tried using GtkWindow(GTK_WINDOW_POPUP) but on linux I get no border
round the window at all which is no good for what I want to do.
I have managed to bodge it by adding a handler function for destroy
signal and recreating the window, then setting a flag when I really do
want to close the window. This is not very elegant though.
Is there a more correct way to catch the signal and not letting it close
the window?
Thanks
tony
--
There are two ways to write error-free programs; only the third one
works.