summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNelson Benítez León <nbenitez@svn.gnome.org>2008-10-12 14:57:45 +0000
committerNelson Benítez León <nbenitez@src.gnome.org>2008-10-12 14:57:45 +0000
commit2a68862ef29b705ae0583f86009615a629078136 (patch)
treeba38e7c69b6b2451d6af770732bda7d5b253594e /src
parente277311180665015b4d00d157b8b8c9f2fed0537 (diff)
downloadnautilus-2a68862ef29b705ae0583f86009615a629078136.tar.gz
Reveal the selection after the user sorts by some type or clicks the
2008-10-12 Nelson Benítez León <nbenitez@svn.gnome.org> * src/file-manager/fm-icon-view.c (set_sort_criterion_by_sort_type) (action_reversed_order_callback): Reveal the selection after the user sorts by some type or clicks the "reverse order" sort action. Fixes #45588. svn path=/trunk/; revision=14718
Diffstat (limited to 'src')
-rw-r--r--src/file-manager/fm-icon-view.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/file-manager/fm-icon-view.c b/src/file-manager/fm-icon-view.c
index 8065feeb7..d9dac13fd 100644
--- a/src/file-manager/fm-icon-view.c
+++ b/src/file-manager/fm-icon-view.c
@@ -167,6 +167,7 @@ static void fm_icon_view_set_directory_tighter_layout (FMIconVie
NautilusFile *file,
gboolean tighter_layout);
static gboolean fm_icon_view_supports_manual_layout (FMIconView *icon_view);
+static void fm_icon_view_reveal_selection (FMDirectoryView *view);
static const SortCriterion *get_sort_criterion_by_sort_type (NautilusFileSortType sort_type);
static void set_sort_criterion_by_sort_type (FMIconView *icon_view,
NautilusFileSortType sort_type);
@@ -1381,6 +1382,7 @@ set_sort_criterion_by_sort_type (FMIconView *icon_view,
set_sort_criterion (icon_view, sort);
nautilus_icon_container_sort (get_icon_container (icon_view));
+ fm_icon_view_reveal_selection (FM_DIRECTORY_VIEW (icon_view));
}
@@ -1395,6 +1397,7 @@ action_reversed_order_callback (GtkAction *action,
if (set_sort_reversed (icon_view,
gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)))) {
nautilus_icon_container_sort (get_icon_container (icon_view));
+ fm_icon_view_reveal_selection (FM_DIRECTORY_VIEW (icon_view));
}
}