RE: Change background color in GTK 3



This is https://bugzilla.gnome.org/show_bug.cgi?id=656461

Regards,
Jean

Le mardi 14 février 2012 à 10:00 +0100, Victor henri a écrit :
> Well I had the issue on ubuntu 11.10. On another machine using ubuntu
> 11.04 it works... 
> Is it related to theme? Anyway should't
> gtk_widget_override_background_color override theme?
> 
> Victor
> 
> > Date: Mon, 13 Feb 2012 16:39:02 -0800
> > From: nadaeck hotmail com
> > To: gtk-list gnome org
> > Subject: Change background color in GTK 3
> > 
> > 
> > Hello
> > 
> > I would like to change the background of a button in GTK3
> > 
> > In GTK2, I was doing :
> > 
> > GdkColor color;
> > gdk_color_parse ("gold",&color);
> > gtk_widget_modify_bg(GTK_WIDGET(widget), GTK_STATE_NORMAL, &color);
> > 
> > and it was working perfectly.
> > 
> > In GTK3, I am doing :
> > 
> > GdkRGBA color;
> > gdk_rgba_parse (&color, "orange");
> > gtk_widget_override_background_color(GTK_WIDGET(widget),
> > GTK_STATE_FLAG_NORMAL, &color);
> > 
> > and it doesn't work. I don't understand what I have missed
> > 
> > Thank you
> > 
> > -- 
> > View this message in context:
> http://old.nabble.com/Change-background-color-in-GTK-3-tp33319146p33319146.html
> > Sent from the Gtk+ - General mailing list archive at Nabble.com.
> > 
> > _______________________________________________
> > gtk-list mailing list
> > gtk-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gtk-list
> 
> _______________________________________________
> 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]