Setting a GtkLabel's INSENSITIVE color to black
- From: Brent Baccala <cosine freesoft org>
- To: gtk-app-devel-list gnome org
- Subject: Setting a GtkLabel's INSENSITIVE color to black
- Date: Sun, 21 Dec 2008 01:02:42 -0500 (EST)
Hi -
I've got an app where I want my insensitive labels to be invisible,
and I was figuring on doing this by setting their INSENSITIVE color to
be black (same as the background) in an rc file. In particular, I
really don't want to do this in the code, as it's a style thing.
I've tried the shotgun approach to no avail:
style "violet_help_label" { fg[NORMAL] = "Violet" fg[INSENSITIVE] =
"Black" fg[PRELIGHT] = "Black" fg[ACTIVE] = "Black" fg[SELECTED] =
"Black" bg[NORMAL] = "Black" bg[INSENSITIVE] = "Black" bg[PRELIGHT] =
"Black" bg[ACTIVE] = "Black" bg[SELECTED] = "Black" text[NORMAL] =
"Black" text[INSENSITIVE] = "Black" text[PRELIGHT] = "Black"
text[ACTIVE] = "Black" text[SELECTED] = "Black" base[NORMAL] = "Black"
base[INSENSITIVE] = "Black" base[PRELIGHT] = "Black" base[ACTIVE] =
"Black" base[SELECTED] = "Black" }
widget "*.*_help_label" style "violet_help_label"
Looks like no matter what I do, I've got a 50% gray stipple and
there's no way to change it from an rc file. I'm running GTK+ 2.8.20,
but I've looked at the 2.14.6 source code and it doesn't appear to
help.
Any suggestions other than coding it all into C?
Thanks.
-bwb
Brent Baccala
cosine freesoft org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]