[nautilus/wip/oholy/pathbar-default-locaton: 1/2] file-utilities: Do not use default location instead of root
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/oholy/pathbar-default-locaton: 1/2] file-utilities: Do not use default location instead of root
- Date: Fri, 20 Dec 2019 07:27:00 +0000 (UTC)
commit 30219b8dab3fff247a36a2e988e0d4f3a19bd497
Author: Ondrej Holy <oholy redhat com>
Date: Thu Dec 19 17:01:17 2019 +0100
file-utilities: Do not use default location instead of root
The default location (i.e. g_mount_get_default_location) should be
used when opening mounted, but we should not use it instead of the root
button in the path bar. Because it is currently impossible to navigate
to parent folders if default location is set. Let's change
nautilus_get_mounted_mount_for_root logic and return mount only for
root path so we can see the real root in the path bar.
https://gitlab.gnome.org/GNOME/nautilus/issues/1319
src/nautilus-file-utilities.c | 8 --------
1 file changed, 8 deletions(-)
---
diff --git a/src/nautilus-file-utilities.c b/src/nautilus-file-utilities.c
index f8afabbfe..7ff9a8c09 100644
--- a/src/nautilus-file-utilities.c
+++ b/src/nautilus-file-utilities.c
@@ -553,14 +553,6 @@ nautilus_get_mounted_mount_for_root (GFile *location)
result = g_object_ref (mount);
break;
}
-
- default_location = g_mount_get_default_location (mount);
- if (!g_file_equal (default_location, root) &&
- g_file_equal (location, default_location))
- {
- result = g_object_ref (mount);
- break;
- }
}
g_clear_object (&root);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]