[gtk-list] Background color in GtkText
- From: tile primenet com
- To: gtk-list redhat com
- Subject: [gtk-list] Background color in GtkText
- Date: Sun, 06 Sep 1998 17:15:35 -0700 (MST)
According to Jeremy Wise:
| I also tried using the style method, by changing
| style->bg[ GTK_STATE_NORMAL ] to background, but still had no luck.
This is the step in the right direction, but you're using the wrong array.
Here's how I would do it...
style = gtk_style_new ();
style->fg[GTK_STATE_NORMAL] = foreground;
style->text[GTK_STATE_NORMAL] = foreground;
style->base[GTK_STATE_NORMAL] = background; /* base not bg */
gtk_widget_set_style (GTK_WIDGET (entry), style);
Hope this helps.
] [Thread Prev