On Fri, Feb 11, 2000 at 09:10:47AM +0100, Joachim Backes wrote:
> I want to set the background of some or all wigdets during creation
> time using the gtk_rc_parse_string() function.
>
> The piece of code I'm using looks as follows:
>
> gtk_rc_parse_string("style \"background\"\n"
> "{\n"
> "bg[NORMAL] = \"646464\"\n"
> "}"
> "widget_class \"*\" style \"background\""
> );
>
> When running my app, I get the following err msg:
>
> -:3: error: invalid string constant "646464", expected valid string constant
The color specs follow the X standard for numerically specifying a
color. You need a sharp sign (#) in front of the six digits.
Pseudo-patch follows:
gtk_rc_parse_string("style \"background\"\n"
"{\n"
- "bg[NORMAL] = \"646464\"\n"
+ "bg[NORMAL] = \"+646464\"\n"
"}"
"widget_class \"*\" style \"background\""
-- John Kodis.
--
To unsubscribe: mail -s unsubscribe [EMAIL PROTECTED] < /dev/null