Re: Background color in CList



nevermind, after I took another dive thru some of the headerfiles
I found something called "base" instead of the "bg"/"fg"-states, it
was not mentioned in the tuturial, most of you here probably already
knew it, but I'll just post it here in case someone else searches for
the problem =) 

...in your resource-file:

style "my_clist"
{
  base[<state>] = { 1.0, 0.0, 0.0 }
}

best regards,
Morten Nielsen


Morten Nielsen <mni netnord dk> writes:

Hi, can anyone show me how to set the background color in a CList?
its not just the row-background, the entire background, so
gtk_clist_set_background() isnt enough, im currently using a
resource-file, but that doesnt seem to work with it, so I have
tried using gtk_widget_set_style on GTK_CLIST(CList)->clist_window,
but i cant seem to get that to work either =/

I have been fiddling with this for several hours now, i just cant 
make it happen, anyone know how to do it?

best regards,
Morten Nielsen


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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