Move the 'File System' shortcut down the list in the sidebar.

This commit is contained in:
ajacoutot 2011-07-25 10:07:43 +00:00
parent ba1cb73380
commit 98c6bef38a
2 changed files with 51 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.7 2011/07/14 13:29:01 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.8 2011/07/25 10:07:43 ajacoutot Exp $
COMMENT= GNOME file manager
@ -16,7 +16,7 @@ COMMENT= GNOME file manager
GNOME_PROJECT= nautilus
GNOME_VERSION= 3.0.2
REVISION= 1
REVISION= 2
SHARED_LIBS += nautilus-extension 3.0 # 5.0

View File

@ -0,0 +1,49 @@
$OpenBSD: patch-src_nautilus-places-sidebar_c,v 1.1 2011/07/25 10:07:43 ajacoutot Exp $
From 2bbbc01dc6429e948aed0bbf077e1b77880352ee Mon Sep 17 00:00:00 2001
From: Antoine Jacoutot <ajacoutot@openbsd.org>
Date: Fri, 15 Jul 2011 14:13:36 +0000
Subject: Move the 'File System' shortcut down the list in the sidebar.
--- src/nautilus-places-sidebar.c.orig Tue May 24 20:46:25 2011
+++ src/nautilus-places-sidebar.c Mon Jul 25 12:06:53 2011
@@ -675,19 +675,6 @@ update_places (NautilusPlacesSidebar *sidebar)
g_free (desktop_path);
}
- /* file system root */
- mount_uri = "file:///"; /* No need to strdup */
- icon = g_themed_icon_new (NAUTILUS_ICON_FILESYSTEM);
- last_iter = add_place (sidebar, PLACES_BUILT_IN,
- SECTION_COMPUTER,
- _("File System"), icon,
- mount_uri, NULL, NULL, NULL, 0,
- _("Open the contents of the File System"));
- g_object_unref (icon);
- compare_for_selection (sidebar,
- location, mount_uri, last_uri,
- &last_iter, &select_path);
-
/* XDG directories */
for (index = 0; index < G_USER_N_DIRECTORIES; index++) {
@@ -771,6 +758,19 @@ update_places (NautilusPlacesSidebar *sidebar)
g_free (tooltip);
}
g_list_free (mounts);
+
+ /* file system root */
+ mount_uri = "file:///"; /* No need to strdup */
+ icon = g_themed_icon_new (NAUTILUS_ICON_FILESYSTEM);
+ last_iter = add_place (sidebar, PLACES_BUILT_IN,
+ SECTION_COMPUTER,
+ _("File System"), icon,
+ mount_uri, NULL, NULL, NULL, 0,
+ _("Open the contents of the File System"));
+ g_object_unref (icon);
+ compare_for_selection (sidebar,
+ location, mount_uri, last_uri,
+ &last_iter, &select_path);
mount_uri = "trash:///"; /* No need to strdup */
icon = nautilus_trash_monitor_get_icon ();