[nautilus/gnome-3-0] application: don't redirect windows on computer:// when unmounting



commit 54bd80fe015091a877b910ef78a47f05bbc1227f
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun Apr 3 20:53:40 2011 -0400

    application: don't redirect windows on computer:// when unmounting
    
    It's confusing now that we don't have a desktop. Redirect to the user
    home instead.
    
    This also has the side effect of fixing
    https://bugzilla.gnome.org/show_bug.cgi?id=615963

 src/nautilus-application.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 1f7ff0d..cf9fa79 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -830,7 +830,7 @@ mount_removed_callback (GVolumeMonitor *monitor,
 		    slot != force_no_close_slot) {
 			nautilus_window_pane_slot_close (slot->pane, slot);
 		} else {
-			computer = g_file_new_for_uri ("computer:///");
+			computer = g_file_new_for_path (g_get_home_dir ());
 			nautilus_window_slot_go_to (slot, computer, FALSE);
 			g_object_unref(computer);
 		}



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