styles and rc files.

I do not quite understand how to make them work together.

What I have is:

    list = gtk_list_new ();

    list_item = gtk_list_item_new_with_label ("Hello");

    gtk_container_add (GTK_CONTAINER (list), list_item);

    gtk_widget_set_name (list_item, "fuzzy");

My ~/.filerc has the following:

style "fuzzy"
    bg[NORMAL] = { 0.50, 0.50, 0.50 }

widget "*GtkList.fuzzy" style "fuzzy"

I do not get gray background for my list item.  Why?

I checked the value of gtk_widget_path (list_item), it ends with GtkList.fuzzy.


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