Re: R: GtkTreeView and row separator?

What language are you using here? I can't find the "addcolumn" function
anywhere. Do you set this on every cell renderer and if so you can only
set the background as far as i have seen. Do you have some more complete

On Tue, 2003-07-29 at 14:26, David M. Cook wrote:
On Tue, Jul 29, 2003 at 04:54:56AM -0700, David M. Cook wrote:

[..., 5, "red",  6, "blue"]
[..., 5, "blue", 6, "red"]

Then when adding your columns, even cells get their background from column 
5 and odd ones from 6 and vice-versa for foreground:

for i in range(ntreeviewcols):
    treeview.addcolumn(colname, cell, ..., cell_background=5+i%2,

I actually tried this, and it works well for a list, but for a tree it looks
ragged in the first column, I think because of the expanders.

The other issue is what to do when inserting or deleting a row.  You'd have
to update the store for every row after that one.

Dave Cook
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org

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