[gtk+/wip/gbsneto/other-locations: 13/13] placesview: send internal open flag on signal
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/gbsneto/other-locations: 13/13] placesview: send internal open flag on signal
- Date: Wed, 24 Jun 2015 13:52:13 +0000 (UTC)
commit d8a818ca3da7f9ae79fbd8a037fc82ba0e4a4239
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Jun 24 10:46:06 2015 -0300
placesview: send internal open flag on signal
gtk/gtkplacesview.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c
index 13fb91b..ff4c393 100644
--- a/gtk/gtkplacesview.c
+++ b/gtk/gtkplacesview.c
@@ -643,13 +643,13 @@ location_mount_ready_callback (GObject *source_file,
should_show = parse_error (error);
g_clear_error (&error);
}
- else
+
+ if (should_show)
{
server_list_add_server (location);
- }
- if (should_show)
- emit_open_location (GTK_PLACES_VIEW (user_data), location, GTK_PLACES_OPEN_NORMAL);
+ emit_open_location (GTK_PLACES_VIEW (user_data), location, priv->open_flags);
+ }
}
static void
@@ -688,7 +688,7 @@ volume_mount_ready_callback (GObject *source_volume,
mount = g_volume_get_mount (volume);
root = g_mount_get_root (mount);
- g_signal_emit (user_data, places_view_signals [OPEN_LOCATION], 0, root, GTK_PLACES_OPEN_NORMAL);
+ g_signal_emit (user_data, places_view_signals [OPEN_LOCATION], 0, root, priv->open_flags);
g_object_unref (mount);
g_object_unref (root);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]