I searched the archives, docs, and faq, but did not find the answer to this.These settings can be changed in the gtkrc file. Note however that the settings are intended for theme authors. If you set them explicitly for your app, then your app would not fit in with the rest of the apps on the desktop (the user might have specifically picked their theme because they like that shade of grey). Note also that set_rules_hint() should only be used for multi-column lists/trees where it will actually help the user line up items in the row.
I am using treeview and liststore in an application. I have 'rules-hint' turned on so that I am getting every other row in a different color. The only problem is that the alternate color is a dull gray. I want to be able to pick a different color like 'light blue'. I read in the docs that the treeview has a style property called 'odd-number-rows' or something like that. I tried every which way I could think of to set that property to a gdkcolor, but it didn't work.
I'm pretty sure I could set this in my default rc file, but I couldn't figure out the proper syntax for that either.
Any help would be greatly appreciated.
The gtkrc directives would look something like this:
style "mystyle" {
GtkTreeView::even_row_color = "xxxx"
GtkTreeView::odd_row_color = "yyyy"
}You could use this to create a custom theme if you don't like how trees display on your desktop.
James.
-- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
