Re: glade and closing/reopening dialogs - newbie question
| From: | Steph Fox | Date: | Thu, 31 Aug 2006 15:29:05 +0000 |
| Subject: | Re: glade and closing/reopening dialogs - newbie question | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-7160@lists.php.net to get a copy of this message | ||
Hi Yermo,
*Warning: not a Glade guru*
It would make sense to me to create that dialog window manually in the callback functions itself, rather than via Glade. No?
- Steph
----- Original Message ----- From: "Yermo Lamers" <yml@dtlink.com>
To: <php-gtk-general@lists.php.net>
Sent: Thursday, August 31, 2006 5:26 PM
Subject: [PHP-GTK] glade and closing/reopening dialogs - newbie question
What is the correct way to close a dialog window in a glade based application? I have a dialog window I raise based on a menu selection. I have a CANCEL button. When CANCEL is pressed I call the destroy() method on the dialog window. However, using the destroy() method (or clicking on the X in the upper right on the window) seems to completely destroy the widget so that future calls to $glade->get_widget("dialog1"); return false. Is this behavior intentional? If so, how do I "recreate" the widget if I want to redisplay it? ----------------------------------------------------------------------------DTLink Software http://www.dtlink.com Business and Finance Software Engineering---------------------------------------------------------------------------- -- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php