Re: [gtk-list] Re: styles and rc files.



On Mon, 25 Jan 1999, Michael Sobolev wrote:

> I wrote:
> > 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 }
make this
     base[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.
> 
> I still cannot make it working, does anybody have any hints?

the list items use the `base' field of the GtkStyle structures to set their
background when sensitive, so it is initially white.

> 
> --
> Mike
> 

---
ciaoTJ



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