How to set Single GtkLebel Color to while using gtkrc?

Posted by PP on Stack Overflow See other posts from Stack Overflow or by PP
Published on 2010-04-23T12:18:21Z Indexed on 2010/04/23 12:23 UTC
Read the original article Hit count: 152

Filed under:
|

How to set Single GtkLebel Color to while using gtkrc?
I tried to set as follows:

In rc file:

style "tc-theme-label-white"
{
    xthickness = 1 
    ythickness = 1 

    font_name = "Sans Bold 8"

    text[NORMAL]      = "#FFFFFF"
    text[INSENSITIVE] = "#434346"
    text[PRELIGHT]    = "#FFFFFF"
    text[SELECTED]    = "#FFFFFF"
    text[ACTIVE]      = "#FFFFFF"
}
widget "*.my-theme-label" style:highest "my-theme-label"

//And in code i have written.  
Gtk *label = gtk_new_label(null);
gtk_widget_set_name(label_ptr, "my-theme-label");

Is this the write way of doing it?
as usual it is not working. :p

Thanks,
PP.

© Stack Overflow or respective owner

Related posts about gtk

Related posts about gtk+