glade and closing/reopening dialogs - newbie question
| From: | Yermo Lamers | Date: | Thu, 31 Aug 2006 15:26:24 +0000 |
| Subject: | glade and closing/reopening dialogs - newbie question | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-7158@lists.php.net to get a copy of this message | ||
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
----------------------------------------------------------------------------