[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: R: GtkTreeView and row separator?
- From: Johan Ankarloo <johan ankarloo volvo com>
- To: "David M. Cook" <dave davidcook org>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: R: GtkTreeView and row separator?
- Date: 29 Jul 2003 14:40:43 +0200
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
example?
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,
> > foreground=6-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
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]