Re: disabling GtkButton

From: Date: Thu, 11 Dec 2003 15:23:55 +0000
Subject: Re: disabling GtkButton
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-4286@lists.php.net to get a copy of this message
$button->set_sensitive(false); or $button->sensitive = false; // (might work - works on the GTK2 bindings) Regards Alan Ömer Rauf Atay wrote:
I want to disable a GtkButton. I use the following and the button is actually disabled, namely it does not respond to user actions:
       $button->unset_flags(GTK_SENSITIVE);
The problem is, the button does not change its user interface to a disabled button. I expect the button's label color to change but nothing happens. More interestingly if you are disabling a button with its own "clicked" callback function it actually does what i want. but when the callback function is for some other button or for some other signal of some other widget the ui of the button does not change at all. any comments?


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