Re: Problem with filechooser (defined with Glade)

From: Date: Wed, 25 Jul 2007 18:21:32 +0000
Subject: Re: Problem with filechooser (defined with Glade)
References: 1 2 3 4 5 6  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7993@lists.php.net to get a copy of this message
Malk0 wrote:
fact u should use hide_all() and show_all() most of the time to ensure all childs widget to get correctly repaint on the screen.
No you do not. Why waste the CPU cycles recursively flying down the widget tree when all you need to do is hide the container? hide() the container (window) and show() the container, children will still be there unaffected. The very first time you create a window is really the only time you need show_all() for this kind of thing. - bob. Malk0 wrote:
you're welcome :) happy to be helpfull you can find the most common signal list here: http://gtk.php.net/manual/en/gtk.gtkwidget.php regarding the set_visible i think it can work correctly by passing the second argument to true, as explain here: http://gtk.php.net/manual/en/gtk.gtkwidget.method.set_visible.php in fact u should use hide_all() and show_all() most of the time to ensure all childs widget to get correctly repaint on the screen. i don't remember when i came to use this but the only place i know about this is http://gtk.php.net/manual/en/gtk.gtkwidget.method.show_all.php but at least now you know it ;) regards nathan On 7/25/07, Bernard Fouch� <bernard.fouche@kuantic.com> wrote:
Thanks Malk0, it now works! However for a GTK newbie like me all these signal names are so close one to each other (delete, delete-event, destroy) that I've trouble to figure what signal to use! Also where can I read that I should have used hide/show instead of set_visible? Bernard


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