[gnome-settings-daemon] orientation: Unown the D-Bus name on Stop
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] orientation: Unown the D-Bus name on Stop
- Date: Wed, 23 Jul 2014 10:32:42 +0000 (UTC)
commit 48038154fbf40d81178e7cd915f25dc662419d3c
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jul 21 16:09:13 2014 +0200
orientation: Unown the D-Bus name on Stop
Instead of when finalizing the plugin, so that stop and starting
the plugin again works as expected.
https://bugzilla.gnome.org/show_bug.cgi?id=733507
plugins/orientation/gsd-orientation-manager.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/orientation/gsd-orientation-manager.c b/plugins/orientation/gsd-orientation-manager.c
index b052012..bf46713 100644
--- a/plugins/orientation/gsd-orientation-manager.c
+++ b/plugins/orientation/gsd-orientation-manager.c
@@ -459,6 +459,9 @@ gsd_orientation_manager_stop (GsdOrientationManager *manager)
g_debug ("Stopping orientation manager");
+ if (manager->priv->name_id != 0)
+ g_bus_unown_name (manager->priv->name_id);
+
g_clear_object (&p->settings);
g_clear_pointer (&p->sysfs_path, g_free);
g_clear_pointer (&p->introspection_data, g_dbus_node_info_unref);
@@ -480,9 +483,6 @@ gsd_orientation_manager_finalize (GObject *object)
if (orientation_manager->priv->start_idle_id != 0)
g_source_remove (orientation_manager->priv->start_idle_id);
- if (orientation_manager->priv->name_id != 0)
- g_bus_unown_name (orientation_manager->priv->name_id);
-
G_OBJECT_CLASS (gsd_orientation_manager_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]