nautilus r14718 - in trunk: . src/file-manager



Author: nbenitez
Date: Sun Oct 12 14:57:45 2008
New Revision: 14718
URL: http://svn.gnome.org/viewvc/nautilus?rev=14718&view=rev

Log:
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.


Modified:
   trunk/ChangeLog
   trunk/src/file-manager/fm-icon-view.c

Modified: trunk/src/file-manager/fm-icon-view.c
==============================================================================
--- trunk/src/file-manager/fm-icon-view.c	(original)
+++ trunk/src/file-manager/fm-icon-view.c	Sun Oct 12 14:57:45 2008
@@ -167,6 +167,7 @@
 								       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 (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 @@
 	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));
 	}
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]