Re: Gtk+ progress bar color



On Wed, 2017-03-08 at 13:30 +0000, Rúben Rodrigues wrote:
Yes, doesn't work for me..  Because:

gtk_widget_modify_bg(GTK_WIDGET(gtk_builder_get_object(builder,"Menu_
Birds_ProgressBr")),GTK_STATE_NORMAL, 
&red);

This changed background color, and this

 
gtk_widget_modify_fg(GTK_WIDGET(gtk_builder_get_object(builder,"Menu_
Birds_ProgressBar")),GTK_STATE_NORMAL, &red);

Change text color. I want to change bar color..

Well, than we have to ask Mr Bassi or Google :-) Or look at the code...

http://stackoverflow.com/questions/11172804/pygobject-gtk-entry-changing-progress-bar-color

So please try gtk.STATE_PRELIGHT.


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