Re: glade and closing/reopening dialogs - newbie question

From: Date: Thu, 31 Aug 2006 15:40:02 +0000
Subject: Re: glade and closing/reopening dialogs - newbie question
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7165@lists.php.net to get a copy of this message
Timing is all :) ----- Original Message ----- From: "Yermo Lamers" <yml@dtlink.com> To: "Steph Fox" <steph@zend.com> Cc: <php-gtk-general@lists.php.net> Sent: Thursday, August 31, 2006 5:42 PM Subject: Re: [PHP-GTK] glade and closing/reopening dialogs - newbie question
I may have found the answer, or at least "an" answer. Instead of calling "destroy()" on the dialog I can call "hide()" which hides the dialog without completely destroying it. So what I'm guessing is that the all the objects in the glade file are created when GladeXML() is instantiated and not when you call "get_widget()". -- Yermo
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
-- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
----------------------------------------------------------------------------
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 __________ NOD32 1.1380 (20060125) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com


« previous php.gtk.general (#7165) next »