diff options
author | John Harper <jsh@eazel.com> | 2001-04-03 21:00:03 +0000 |
---|---|---|
committer | John Harper <jsh@src.gnome.org> | 2001-04-03 21:00:03 +0000 |
commit | dbf3da8b83fa72999fbe3bc6564415cc9fa9a7ad (patch) | |
tree | 4faa5127f4bbf7c069411beeca92c94ed224ab87 /libnautilus-extensions/nautilus-ctree.c | |
parent | f7ea58e25b70b3d675ad2d10a41892aa6bc12223 (diff) | |
download | nautilus-dbf3da8b83fa72999fbe3bc6564415cc9fa9a7ad.tar.gz |
reviewed by: Darin Adler <darin@eazel.com>
2001-04-03 John Harper <jsh@eazel.com>
reviewed by: Darin Adler <darin@eazel.com>
Fixed bug 7967 (Tree view uses non-standard colors instead of
gtk theme colors):
* libnautilus-extensions/nautilus-list.c,
libnautilus-extensions/nautilus-list.h
(nautilus_list_set_alternate_row_colors,
nautilus_list_set_background_color_offsets): new functions.
They give some control over how the list background is drawn.
The offsets function takes two offsets into the GtkStyle
structure (which should point to GdkColor structures)
* libnautilus-extensions/nautilus-ctree.c
(nautilus_ctree_init): call the above two functions with
suitable values to make the tree look like it used to, before
being derived from the NautilusList widget
Diffstat (limited to 'libnautilus-extensions/nautilus-ctree.c')
-rw-r--r-- | libnautilus-extensions/nautilus-ctree.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libnautilus-extensions/nautilus-ctree.c b/libnautilus-extensions/nautilus-ctree.c index 4337c8a0a..3c64dfef7 100644 --- a/libnautilus-extensions/nautilus-ctree.c +++ b/libnautilus-extensions/nautilus-ctree.c @@ -607,6 +607,12 @@ nautilus_ctree_init (NautilusCTree *ctree) clist->button_actions[0] |= NAUTILUS_BUTTON_EXPANDS; + /* Some random GNOME luser wants trees to look `normal' */ + nautilus_list_set_alternate_row_colors (NAUTILUS_LIST (ctree), FALSE); + nautilus_list_set_background_color_offsets (NAUTILUS_LIST (ctree), + G_STRUCT_OFFSET (GtkStyle, + base[GTK_STATE_NORMAL]), -1); + gtk_signal_connect (GTK_OBJECT (ctree), "event", GTK_SIGNAL_FUNC (nautilus_ctree_event), ctree); } |