Re: Gtk+ progress bar color



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..

THanks




On 08-03-2017 12:49, Stefan Salewski wrote:
On Wed, 2017-03-08 at 12:29 +0000, Rúben Rodrigues wrote:
Hi,

Thanks. Yes i want to change in gtk 2.x and change it in my app
only.
There's no way in proprieties?
Do the ordinary GTK2 functions not work for your case?
Like gtk_widget_modify_fg() and gtk_widget_modify_bg()


https://developer.gnome.org/gtk2/stable/GtkWidget.html#gtk-widget-modify-fg

http://stackoverflow.com/questions/99488/how-do-i-change-the-colors-of-an-arbitrary-widget-in-gtk




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