Re: Opening and closing a toplevel
| From: | James Cameron | Date: | Fri, 22 Nov 2002 03:21:30 +0000 |
| Subject: | Re: Opening and closing a toplevel | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-2700@lists.php.net to get a copy of this message | ||
Hey, great!
Not only did I fix the problem by patiently working with you, I
introduced you to the valuable documentation that you'll need to ...
... cause more mail. ;-)
In summary, for windows that you expect the user to be able to close
using window management and re-open later ...
- connect a 'delete_event' signal to the GtkWindow,
- return 'true' from that signal, after calling hide(),
This translates the close-destroy into a hide.
I think the main window should have a 'delete_event' callback; when I've
forgotten one I've ended up with a process still on my system with no
windows attached.
http://gtk.php.net/docs.php is the documentation web page.
--
James Cameron mailto:quozl@us.netrek.org http://quozl.netrek.org/