[nautilus] window-manage-views: scroll to the selected location when opening an URI



commit 97802bc3f6cfbd464eae6e4375cc8f7d71a218af
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Sep 12 15:32:05 2011 -0400

    window-manage-views: scroll to the selected location when opening an URI
    
    When opening nautilus with a preselected URI, scroll the window to that
    location in addition to selecting the view element.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=658843

 src/nautilus-window-manage-views.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-window-manage-views.c b/src/nautilus-window-manage-views.c
index 66d47cf..8e1f3d8 100644
--- a/src/nautilus-window-manage-views.c
+++ b/src/nautilus-window-manage-views.c
@@ -891,10 +891,12 @@ got_file_info_for_view_selection_callback (NautilusFile *file,
 		}
 
 		g_clear_object (&slot->pending_location);
+		g_free (slot->pending_scroll_to);
 	
 		slot->pending_location = nautilus_file_get_parent_location (file);
 		slot->pending_selection = g_list_prepend (NULL, nautilus_file_ref (file));
 		slot->determine_view_file = nautilus_file_get_parent (file);
+		slot->pending_scroll_to = nautilus_file_get_uri (file);
 
 		nautilus_file_invalidate_all_attributes (slot->determine_view_file);
 		nautilus_file_call_when_ready (slot->determine_view_file,



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