Re: glade and closing/reopening dialogs - newbie question

From: Date: Thu, 31 Aug 2006 15:51:44 +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-7167@lists.php.net to get a copy of this message
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 ----------------------------------------------------------------------------

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