Re: Change of color when hovering over GtkButton

From: Date: Mon, 02 May 2005 20:22:19 +0000
Subject: Re: Change of color when hovering over GtkButton
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5822@lists.php.net to get a copy of this message
Well, I'm using stock buttons as well, but thanx for the link, I'll look into that. Sander Op maandag 02 mei 2005 21:51, schreef u: > 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

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