Why can't I overwrite style specified in one gtkrc file?

Posted by PP on Stack Overflow See other posts from Stack Overflow or by PP
Published on 2010-04-22T11:39:27Z Indexed on 2010/04/22 11:43 UTC
Read the original article Hit count: 354

Filed under:
|

In my Gtk+ application i am having two gtkrc files.
Which i have added using:

gchar *rcfile;
rcfile = g_build_filename( "user", "themes", "xyz", "gtk-2.0", "gtkrc", NULL);
gtk_rc_parse( rcfile );
g_free( rcfile );

rcfile = g_build_filename( "my_rc_foler", "gtkrc", NULL);
gtk_rc_add_default_file( rcfile );
g_free( rcfile );

I tried to overwrite some of the styles provided by default rc file.
but i fails to do so. like i have over written GtkLable style as follows

In My rc file:

style "my-theme-label"
{
    xthickness = 1 
    ythickness = 1 

    bg[NORMAL]       = "#FFFFFF"
    bg[ACTIVE]       = "#FFFFFF"
    bg[PRELIGHT]     = "#FFFFFF"
    bg[SELECTED]     = "#FFFFFF"
    bg[INSENSITIVE]  = "#FFFFFF"

    fg[NORMAL]       = "#FFFFFF"
    fg[INSENSITIVE]  = "#FFFFFF"
    fg[PRELIGHT]     = "#FFFFFF"
    fg[SELECTED]     = "#FFFFFF"
    fg[ACTIVE]       = "#FFFFFF"

    text[NORMAL]      = "#FFFFFF"
    text[INSENSITIVE] = "#434346"
    text[PRELIGHT]    = "#FFFFFF"
    text[SELECTED]    = "#FFFFFF"
    text[ACTIVE]      = "#FFFFFF"

    base[NORMAL]      = "#000000"
    base[INSENSITIVE] = "#00FF00"
    base[PRELIGHT]    = "#0000ff"
    base[SELECTED]    = "#FF00FF"
    base[ACTIVE]      = "#F39638"
}

class "GtkLabel" style "tc-theme-label"

but still it does not show any effect on GtkLables that i am using in my app.

© Stack Overflow or respective owner

Related posts about gtk

Related posts about gtk+