Re: glade and closing/reopening dialogs - newbie question
| From: | Steph Fox | Date: | Thu, 31 Aug 2006 15:49:15 +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-7168@lists.php.net to get a copy of this message | ||
I don't know. Yermo had a good point about the glade widget though - the objects are implicitly 'there'. So I guess if you're a Glade-head using hide/show isn't going to impact anything. It's really a question about 'proper' code. (and yes, I'd _assume_ the same as you assumed, but it'd be nice to be certain.)
----- Original Message ----- From: "Anant Narayanan" <anant@kix.in>
To: "Steph Fox" <steph@zend.com>
Cc: <yml@dtlink.com>; <php-gtk-general@lists.php.net>
Sent: Thursday, August 31, 2006 5:49 PM
Subject: Re: [PHP-GTK] glade and closing/reopening dialogs - newbie question
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?Well, as a rough yardstick: if your application shows the dialog frequently, then it's better to maintain it. If you're showing it only once or twice, I guess recreating it is the best option. A spare widget object in the PHP application sphere shouldn't add _much_ of an overhead anyway... How big could it get? - Anant