[nautilus/wip/oholy/pathbar-default-locaton: 2/2] gtkplacesview: Update to latest code
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/oholy/pathbar-default-locaton: 2/2] gtkplacesview: Update to latest code
- Date: Mon, 6 Jan 2020 13:34:51 +0000 (UTC)
commit 72d7e86ef31cbfe914368d215d64c7939f7341ce
Author: Ondrej Holy <oholy redhat com>
Date: Thu Dec 19 17:37:52 2019 +0100
gtkplacesview: Update to latest code
Fixes: https://gitlab.gnome.org/GNOME/nautilus/issues/1319
src/gtk/nautilusgtkplacesview.c | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/src/gtk/nautilusgtkplacesview.c b/src/gtk/nautilusgtkplacesview.c
index 11735a8a1..d9d5b5535 100644
--- a/src/gtk/nautilusgtkplacesview.c
+++ b/src/gtk/nautilusgtkplacesview.c
@@ -1262,7 +1262,21 @@ server_mount_ready_cb (GObject *source_file,
gtk_entry_set_text (GTK_ENTRY (priv->address_entry), "");
if (priv->should_open_location)
- emit_open_location (view, location, priv->open_flags);
+ {
+ GMount *mount;
+ GFile *root;
+
+ mount = g_file_find_enclosing_mount (location, priv->cancellable, NULL);
+ if (mount)
+ {
+ root = g_mount_get_default_location (mount);
+
+ emit_open_location (view, root, priv->open_flags);
+
+ g_object_unref (root);
+ g_object_unref (mount);
+ }
+ }
}
update_places (view);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]