Re: Request for GtkWidget::set_visible(boolean) method

From: Date: Tue, 28 Mar 2006 14:36:34 +0000
Subject: Re: Request for GtkWidget::set_visible(boolean) method
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2687@lists.php.net to get a copy of this message
Christian Weiske wrote: > Currently, the only way to show/hide a widget in gtk2 is to use the > show() or hide() method. It is not possible to call a method with a > boolean parameter (as in e.g. set_sensitive(boolean)) to dynamically > modify the visibility of the widget. I think this is a good idea, but I would add a second optional boolean parameter that determines if the method should call hide/show or hide_all/show_all. I have attached a patch that doesn't work. I don't know why it doesn't work but it doesn't. If anyone could point me in the right direction for making it work, I would appreciate it. Everything compiles, and the method is callable and I added a return value to verify that the values passed in are correct. It just doesn't hide the widget when I call it. Thanks, -- Scott Mattocks Author of the soon to be published: Pro PHP-GTK http://www.crisscott.com

« previous php.gtk.dev (#2687) next »