gtk+ 1.8, problem with resources



Hi,

I want to set a special font for some label widget (called 'Label_busy'), an the BG of this widget
should be red and the FG white.

I use the following resource string:

 char STYLES[2048] = 
      "style 'big_font' { font = '-adobe-helvetica-medium-r-normal-*-24-240-75-75-p-130-iso8859-1' f
g[NORMAL] = '#ffffff' bg[NORMAL] = '#ff0000'}"
      "widget 'Busy.*.Label_busy' style 'big_font'";

What happens? The font for the label is correctly set, but the fg and bg colors do not change.

If I use the following widget-line:

       "widget '*' style 'big_font'"

then the font for  a l l  widgets is correctly set, and the fg and bg too. Can somebody tell
me what I'm doing wrong?

Regards

Joachim Backes

--

Joachim Backes <backes@rhrk.uni-kl.de>       | Univ. of Kaiserslautern
Computer Center, Supercomputing Division     | Phone: +49-631-205-2438 
D-67653 Kaiserslautern, PO Box 3049, Germany | Fax:   +49-631-205-3056 
---------------------------------------------+------------------------
WWW: http://sgi400.rhrk.uni-kl.de/home/staff/backes.html  





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]