Selection Color in GtkCTree
- From: "Richard A. Hogaboom" <rah atc ll mit edu>
- To: gtk-list gnome org
- Subject: Selection Color in GtkCTree
- Date: Mon, 7 Jul 2003 11:03:41 -0400 (EDT)
I want to have a GtkCTree(GTK 1.2+) that has multiple selections of different
colors that are all set programatically. I've tried
gdk_gc_set_foreground(style->fg_gc[GTK_STATE_SELECTED], &color_red);
gtk_ctree_select(tree, widget);
gdk_gc_set_foreground(style->fg_gc[GTK_STATE_SELECTED], &color_green);
gtk_ctree_select(tree, other_widget);
but this only changes all the selected widgets to the last color(green).
There are 5 states, 7 gc's in a style, and both fore/back ground colors.
Some combination must actually do it. Has anybody tried this? with maybe
some example code?
Dick
-------------
Richard Hogaboom
MIT / Lincoln Laboratory
244 Wood St.
Lexington, MA 02173-9108
voice: (781)-981-0276
fax: (781)-981-3220
hogaboom ll mit edu
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]