RE: How to change color of GtkCellRendererProgress ?





Sorry this is a bad answer.

Of course you can do this!! and that is no reason not to use GTK. You can use the themes, or if you need 
individual progress bars to be different colors, you can easily derive a GtkCellRenderProgressFooBar class 
from the GtkCellRendererProgress, which does this, and if it is useful enough, maybe the rest of us will use 
it in our app, and submit it for inclusion.

I'm surprised it is not in the default functionality, but there are a lot of ways you can do this.



From: kcc1967 gmail com
Date: Mon, 2 Aug 2010 10:21:31 +0800
Subject: Re: How to change color of GtkCellRendererProgress ?
To: jardasmid gmail com
CC: gtk-app-devel-list gnome org

On Mon, Aug 2, 2010 at 2:46 AM, Jaroslav Šmíd <jardasmid gmail com> wrote:
You can't. The only way to change this is to modify theme you use.

That's bad news to me.
I were planned to use it for a simple histogram application but color is
required feature ...  Thanks anyway.

Regards
KC

On Sat, Jul 31, 2010 at 6:33 AM, Kuang-Chun Cheng
<kccheng linuxdaq-labs com> wrote:
Hi,

As subject said, how to change color of GtkCellRendererProgress ?
Either color of text or bar is OK.   This looks like a simple question, but
I can't find anything from Google yet.

Thanks a lot.

Regards,
KC
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




--
Jaroslav Šmíd
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
                                          


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]