Re: newbie q: proper way to exit
| From: | Steph | Date: | Tue, 19 Mar 2002 17:23:37 +0000 |
| Subject: | Re: newbie q: proper way to exit | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1596@lists.php.net to get a copy of this message | ||
Hi Karl,
It doesn't matter, as Michael says, but you'll find that most apps have the main window
for the application so that when it is destroyed, gtk::main_quit() is called. The children are
destroyed as part of the window's destruction. Linking the window's delete-event to your
quit routine prevents the situation where the window and its contents are destroyed but the loop
continues to run.
http://gtk.php.net/manual/en - check out GtkWindow, and
the GtkWidget signal 'delete-event'.
----- Original Message -----
From: "Karl Pietri" <kpietri@nvps.net>
To: <php-gtk-general@lists.php.net>
Sent: Tuesday, March 19, 2002 4:45 PM
Subject: [PHP-GTK] newbie q: proper way to exit
> What is the proper way to end an application. Should all the windows and
> such be destroyed before gtk::main_quit() is called? or does it not matter?
>
>
> -Karl
>
>
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>