Re: glade and closing/reopening dialogs - newbie question

From: Date: Thu, 31 Aug 2006 15:50:34 +0000
Subject: Re: glade and closing/reopening dialogs - newbie question
References: 1 2 3 4  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7170@lists.php.net to get a copy of this message
No, as you were with show/hide. It's the better option for Glade users, thinking it through. ----- Original Message ----- From: "Yermo Lamers" <yml@dtlink.com> To: "Steph Fox" <steph@zend.com> Cc: "Anant Narayanan" <anant@kix.in>; <php-gtk-general@lists.php.net> Sent: Thursday, August 31, 2006 5:51 PM Subject: Re: [PHP-GTK] glade and closing/reopening dialogs - newbie question
Hmmm. I'm guessing in the "destroy" it case, you would have to reload that widget from the XML file. I could just create separate glade files for each dialog and the instantiated it using GladeXML() each time ... probably wouldn't be too bad. Since I'm a noob at this, I was just putting all my dialogs in the same glade project file ...
Hmm I thought of that, but then you have the overhead of a 'spare' widget in the PHP-o-sphere. Does anyone have a way to test which is better/worse in that respect - create/destroy on demand vs show/hide and maintain the widget throughout? ----- Original Message ----- From: "Anant Narayanan" <anant@kix.in> To: <yml@dtlink.com> Cc: <php-gtk-general@lists.php.net> Sent: Thursday, August 31, 2006 5:39 PM Subject: Re: [PHP-GTK] glade and closing/reopening dialogs - newbie question
Hi Yermo,
What is the correct way to close a dialog window in a glade based application?
I would suggest you to use GtkWidget's hide() and show() methods. Simply show' your window when you need it, and hide' it when you don't. - Anant -- 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
---------------------------------------------------------------------------- __________ NOD32 1.1380 (20060125) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com


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