forked from AuroraMiddleware/gtk
Merge branch 'wip/oholy/placesview-default-location' into 'master'
placesview: Always open default location after mounting See merge request GNOME/gtk!1263
This commit is contained in:
commit
0a98817a6f
@ -1243,7 +1243,21 @@ server_mount_ready_cb (GObject *source_file,
|
||||
gtk_editable_set_text (GTK_EDITABLE (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);
|
||||
|
Loading…
Reference in New Issue
Block a user