I've used this code successfully:

--------------

style "text"
{
  font = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
  fg[NORMAL] = { 1.0, 1.0, 1.0 }
  base[NORMAL] = {   0,   0,   0 }
}

style "mystyle1" = "text"
{
  font = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
  fg[NORMAL] = { 1.0, 1.0, 1.0 }
}

style "mystyle2" = "text"
{
  font = "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
  fg[NORMAL] = { 0, 0, 0 }
}

widget_class "*GtkText" style "text"

-------------

# Use style1
rc_parse_string('widget "*mywidget*" style "mystyle1"')
mywidget.set_name(mywidget)

# Use style2
rc_parse_string('widget "*mywidget*" style "mystyle2"')
mywidget.set_name(mywidget)

-------------

It may not be the best way to do it now, but a year ago, it was just about the
only way.

BTW, I found that if the text is being placed in a button, it doesn't work to
set the style of the button's fg.  You need to make a separate text widget.

Jeff
-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to