RE: [PHP-GTK] RE: Changing color/style on a scrollbar inaGtkScrolledWindow
| From: | Steph | Date: | Sun, 01 Aug 2004 02:05:40 +0000 |
| Subject: | RE: [PHP-GTK] RE: Changing color/style on a scrollbar inaGtkScrolledWindow | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-4909@lists.php.net to get a copy of this message | ||
That's only for the gc style elements..
> -----Original Message-----
> From: Andrei Zmievski [mailto:andrei@gravitonic.com]
> Sent: 01 August 2004 02:08
> To: Steph
> Cc: Madeleine D.; php-gtk-general@lists.php.net
> Subject: Re: [PHP-GTK] RE: Changing color/style on a scrollbar
> inaGtkScrolledWindow
>
>
> On Sun, 01 Aug 2004, Steph wrote:
> > $style = $swin->style;
> > $red = new GdkColor('#FF0000');
> > $green = new GdkColor('#00FF00');
> > $blue = new GdkColor('#0000FF');
> > $style->bg[GTK_STATE_NORMAL] = $red;
> > $style->bg[GTK_STATE_PRELIGHT] = $green; //slider hover
> > $style->bg[GTK_STATE_ACTIVE] = $blue; //trough
> > $swin->set_style($style);
>
> What happened to allocating colors through GdkColormap? AFAIK, nothing
> has been changed to allow direct allocation of colors this way.
>
> -Andrei
>
> "There's a big difference between a movie and a film,
> but they're both worth watching." -- Unknown