Re: GtkButton bg color
- From: Michael Cronenworth <mike cchtml com>
- To: gtk-app-devel-list gnome org
- Subject: Re: GtkButton bg color
- Date: Mon, 30 Apr 2012 08:17:12 -0500
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.
[
Date Prev][Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]