Re: GtkButton bg color
- From: Steve <iteration69 gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: GtkButton bg color
- Date: Mon, 30 Apr 2012 17:04:45 -0400
On Mon, 30 Apr 2012 08:17:12 -0500
Michael Cronenworth <mike cchtml com> wrote:
Steve wrote:
Any chance you can provide an example of a button with a background
color?
GdkColor colorGreen = { 0x0000, 0x90ff, 0xeeff, 0x90ff };
// without mouse hovering
gtk_widget_modify_bg( button, GTK_STATE_NORMAL, &colorGreen );
// with mouse hovering
gtk_widget_modify_bg( button, GTK_STATE_PRELIGHT, &colorGreen );
If this doesn't work, you must be using a GTK theme that is overriding
the coloring of widgets.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Must be a theme then, as that code essentially identical to what i
tried in the first place.
So if the problem is a theme how can i force my colors?
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]