diff options
author | Holger Berndt <berndth@gmx.de> | 2009-07-20 22:37:53 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2009-12-10 18:08:16 +0100 |
commit | 0a5d182ac274a0b11a39daa41285fbf1d39b1e70 (patch) | |
tree | 23f5a81716d07d3f58f3d049a6e831dcb086d62e /src/nautilus-window-slot.c | |
parent | 2f843f0ed243a1c1f184c69e166c9da710fe1618 (diff) | |
download | nautilus-0a5d182ac274a0b11a39daa41285fbf1d39b1e70.tar.gz |
Also draw background of inactive pane in insensitive color when in list view
Diffstat (limited to 'src/nautilus-window-slot.c')
-rw-r--r-- | src/nautilus-window-slot.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c index dc3544d9e..f0b158082 100644 --- a/src/nautilus-window-slot.c +++ b/src/nautilus-window-slot.c @@ -28,6 +28,7 @@ #include "nautilus-window-private.h" #include "nautilus-window-manage-views.h" #include "file-manager/fm-directory-view.h" +#include "file-manager/fm-list-view.h" #include <libnautilus-private/nautilus-file.h> #include <libnautilus-private/nautilus-file-utilities.h> #include <libnautilus-private/nautilus-window-slot-info.h> @@ -407,6 +408,20 @@ nautilus_window_slot_is_in_active_pane (NautilusWindowSlot *slot, g_return_if_fail (EEL_IS_BACKGROUND (bg)); eel_background_set_active (bg, is_active); + + /* list view draws its background itself, so it needs special treatment */ + if (FM_IS_LIST_VIEW (slot->content_view)) { + GtkWidget *tree_view = GTK_WIDGET (fm_list_view_get_tree_view (FM_LIST_VIEW (slot->content_view))); + if (is_active) { + gtk_widget_modify_base (tree_view, GTK_STATE_NORMAL, NULL); + } else { + GtkStyle *style; + GdkColor color; + style = gtk_widget_get_style (tree_view); + color = style->base[GTK_STATE_INSENSITIVE]; + gtk_widget_modify_base (tree_view, GTK_STATE_NORMAL, &color); + } + } } void |