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

Message: 4
Date: Thu, 24 Mar 2005 07:27:31 +0100 (CET)
From: "Hubert Sokolowski" <[EMAIL PROTECTED]>
Subject: Re: Change color of widgets
To: gtk-app-devel-list@gnome.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;charset=iso-8859-2

HI,

On Wed, 23 Mar 2005 18:16:36 +0100, Hubert SokoÂowski
<[EMAIL PROTECTED]> wrote:

> http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#gtk-widget-modify-bg
another way would be to use themes and two different gtkrc files.

Can you point me any sample source code? Probably any (preferably small) project which uses this technique?

try this code to change the background of all widgets
gtk_rc_parse_string("style \"background\"\n"
                      "{\n"
                      "bg[NORMAL] = \"#646464\"\n"
                      "}"
                      "widget_class \"*\" style \"background\"");

hs


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


I called gtk_rc_parse_string with #000000 for background color but nothing has happended. What am I missing here?

Thanks.
--
"Simplicity is the ultimate sophistication." - Leonardo DaVinci.
"Complexity is simplicity that has failed." - Adrian Hoe, June 23 2004.
http://adrianhoe.com
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to