Re: progress bar color
- From: Nick Soffe <nick soffe bioch ox ac uk>
- To: edscott wilson garcia <edscott imp mx>
- Cc: <gtk-list gnome org>
- Subject: Re: progress bar color
- Date: Thu, 7 Aug 2003 09:24:25 +0100 (GMT Daylight Time)
Thanks edscott,
Yes that's what I tried first. There must be something else wrong with my
program. Thanks for confirming that it should work.
Nick Soffe.
On 6 Aug 2003, edscott wilson garcia wrote:
> On mi? 2003-08-06 at 06:11, Nick Soffe wrote:
> > Hi,
> > I am reluctant to ask this and my only excuse is that I have never before
> > had a problem setting widget colors with either gtk1.2 or 2.X. Anyway here
> > goes! How do I change the color of the bar in a gtk progress bar in GTK2.2
> > I have tried all the usual gtk_widget_modify fg,bg etc and after searching
> > the archives have tried PRELIGHT as well as the usual NORMAL and ACTIVE
> > options (this was suggested to someone a while ago but probably for
> > gtk1.2) For me however the bar color stays obstinately blue! Any polite
> > help very gratefully received.
> > Nick Soffe.
>
> gtk_widget_modify_bg(battmon->battstatus, GTK_STATE_PRELIGHT,
> &(battmon->colorC));
>
> works for me (replace battmon->battstatus,&(battmon->colorC) for the
> appropiate variables)
>
> Edscott
>
>
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > gtk-list mailing list
> > gtk-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gtk-list
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]