RE: Change background color in GTK 3

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

 



Thank you Jean

Victor


>
> This is https://bugzilla.gnome.org/show_bug.cgi?id=656461
>
> Regards,
> Jean
>

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

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux