dysmas -
We are using an rc file to set our button colors on 2.0.1 w/o any problem.
You might want to check the rc file that comes with the install
(.../etc/gtk-2.0). In my experience this is the source of a lot of
grief. Try removing the wimp engine call first and see if that helps.
Madeleine D.
dysmas wrote:
> Hello,
>
> I dowloaded the last version of php-gtk2 (2.0.1) and hoped annoying bugs
> were fixed, but they are not.
>
> 1) Parsing of rc file is bad. In the first version of php-gtk2 it worked.
> Now you can change some colors but not all : you can change the text color
> (sometime) but background color don't work. This is unfortunate, because rc
> files were a very convenient way to change colors (you could do themes in a
> breeze like that !)
>
> Example : I have used this model for buttons :
>
> style "button"
> {
> # This shows all the possible states for a button. The only one that
> # doesn't apply is the SELECTED state.
>
> fg[PRELIGHT] = { 1.0, 1.0, 1.0 }
> bg[PRELIGHT] = { 1.0, 1.0, 1.0 }
> bg[ACTIVE] = { 1.0, 0, 0 }
> fg[ACTIVE] = { 0, 1.0, 0 }
> bg[NORMAL] = { 1.0, 1.0, 0 }
> fg[NORMAL] = { .99, 1.0, .99 } # the value defined here is used for the
> triangle of the combobox !!!!!
> bg[INSENSITIVE] = { 0.8, 0.7, 0.7 }
> fg[INSENSITIVE] = { 1.0, 0, 1.0 }
> }
>
> But only the color of the text changes. The fackground is always the
> default. In the alpha version of php-gtk2 it was working OK.
>
>
> Or is there something I am not doing well ?
>
> Thanks
>
> Dysmas
>
>
--
PHP-GTK General Mailing List (
http://gtk.php.net/)
To unsubscribe, visit:
http://www.php.net/unsub.php