Re: Change color of widgets (Santhosh)




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

Message: 4
Date: Thu, 24 Mar 2005 07:27:31 +0100 (CET)
From: "Hubert Sokolowski" <h sokolowski wsisiz edu pl>
Subject: Re: Change color of widgets
To: gtk-app-devel-list gnome org
Message-ID: <18635 80 51 9 3 1111645651 squirrel poczta wsisiz edu pl>
Content-Type: text/plain;charset=iso-8859-2

HI,

On Wed, 23 Mar 2005 18:16:36 +0100, Hubert SokoÂowski
<h sokolowski wsisiz edu pl> 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



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