Re: Colors in a tree view
- From: Gyözö Both <gyboth bygfoot com>
- To: gtk-app-devel-list gnome org, Arne Caspari <arne datafloater de>
- Cc:
- Subject: Re: Colors in a tree view
- Date: Mon, 29 Aug 2005 13:11:43 +0200
Hi!
I want to change the color of the text in single entries of a tree
view. Does anybody know how to do this?
Thanks,
/Arne
i'm not sure what you mean by 'entry', but i know of two ways to
colour individual cells in a treeview:
1. use the markup property to render text
(gtk_tree_view_column_add_attribute(col, renderer, "markup", colnumber))
and print text with pango markup ("<span background='white'
foreground='red'>your text</span>") into the cells.
2. use a custom cell renderer that sets the "foreground" property of
the renderer in the cell data function: g_object_set(renderer,
"foreground", "red", NULL).
gyözö
--
Ed Sullivan will be around as long as someone else has talent.
-- Fred Allen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]