Struggling with resource file
- From: chanders timing com (Craig Anderson)
- To: gtk-list redhat com
- Subject: Struggling with resource file
- Date: Mon, 06 Mar 2000 13:54:49 -0700
I'm trying to assign different styles to different
types of widgets. At the end of this file are
2 attempts at assigning styles. The Gtk* line
is working. The 4 lines for widget types do not.
Can anyone help?
style "default"
{
font = "-adobe-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*"
fg[PRELIGHT] = { 0.54, 0.54, 0.54 }
fg[ACTIVE] = { 0.54, 0.54, 0.54 }
fg[NORMAL] = { 0.54, 0.54, 0.54 }
fg[INSENSITIVE] = { 0.76, 1.0, 0.53 }
fg[SELECTED] = { 0.0, 0.0, 0.49 }
bg[PRELIGHT] = { 0.063, 0.063, 0.25 }
bg[ACTIVE] = { 0.063, 0.063, 0.25 }
bg[NORMAL] = { 0.063, 0.063, 0.25 }
bg[INSENSITIVE] = { 0.063, 0.063, 0.25 }
bg[SELECTED] = { 0.063, 0.063, 0.25 }
text[PRELIGHT] = { 0.0, 0.0, 0.0}
text[ACTIVE] = { 0.0, 0.0, 0.0}
text[NORMAL] = { 0.0, 0.0, 0.0}
text[INSENSITIVE] = { 0.0, 0.0, 0.0}
text[SELECTED] = { 0.0, 0.0, 0.0}
base[PRELIGHT] = { 1.0, 1.0, 1.0 }
base[ACTIVE] = { 1.0, 1.0, 1.0 }
base[NORMAL] = { 1.0, 1.0, 1.0 }
base[INSENSITIVE] = { 1.0, 1.0, 1.0 }
base[SELECTED] = { 1.0, 1.0, 1.0 }
}
style "drawingarea" = "default"
{
bg[NORMAL] = { 0.8, 0.1, 0.1 }
}
# Trying these 4 widget_class lines
# The following 4 lines don't affect any widgets
widget_class "*Label*" style "default"
widget_class "*Entry*" style "default"
widget_class "*CList*" style "default"
widget_class "GtkDrawingArea" style "drawingarea"
# or this 1 widget_class line
# The following line applies style default
#widget_class "Gtk*" style "default"
- --===========================_ _= 5130615(404)--
------- End of Forwarded Message
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]