Re: Change of color when hovering over GtkButton
| From: | Scott Mattocks | Date: | Mon, 02 May 2005 19:51:34 +0000 |
| Subject: | Re: Change of color when hovering over GtkButton | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-5821@lists.php.net to get a copy of this message | ||
Sander Knopper wrote:
I'm using php-gtk2 from cvs and when I run the buttonbox demo every time I hover over a button it changes color. Though this doesn't happen with my own scripts. As far as I can see there isn't any function in those demos to handle this so what's the trick? ;)I haven't looked into it too much, but I think it is part of the "stock button" set up. If things haven't changed too much since PHP-GTK 1, you can get the same effect using styles. (http://gtk.php.net/manual/en/gtk.gtkstyle.constructor.php) The hover effect is done by setting a value for the GTK_STATE_PRELIGHT state. Scott