nautilus r13700 - in trunk: . src



Author: alexl
Date: Wed Feb  6 16:11:37 2008
New Revision: 13700
URL: http://svn.gnome.org/viewvc/nautilus?rev=13700&view=rev

Log:
2008-02-06  Alexander Larsson  <alexl redhat com>

        * src/nautilus-window-manage-views.c:
        (nautilus_window_reload):
	Selection is already GFiles now, no need to
	convert from uris (#514458)
	Patch from John Millikin




Modified:
   trunk/ChangeLog
   trunk/src/nautilus-window-manage-views.c

Modified: trunk/src/nautilus-window-manage-views.c
==============================================================================
--- trunk/src/nautilus-window-manage-views.c	(original)
+++ trunk/src/nautilus-window-manage-views.c	Wed Feb  6 16:11:37 2008
@@ -1916,7 +1916,6 @@
 {
 	GFile *location;
         char *current_pos;
-	GList *selection_uris, *l;
 	GList *selection;
 	
         g_return_if_fail (NAUTILUS_IS_WINDOW (window));
@@ -1933,13 +1932,7 @@
 	selection = NULL;
 	if (window->content_view != NULL) {
 		current_pos = nautilus_view_get_first_visible_file (window->content_view);
-		selection_uris = nautilus_view_get_selection (window->content_view);
-		selection = NULL;
-		for (l = selection_uris; l != NULL; l = l->next) {
-			selection = g_list_prepend (selection, g_file_new_for_uri (l->data));
-		}
-		eel_g_list_free_deep (selection_uris);
-		selection = g_list_reverse (selection);
+		selection = nautilus_view_get_selection (window->content_view);
 	}
 	begin_location_change
 		(window, location, selection,



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