[gnome-settings-daemon] wacom: Unown the name when the plugin stops
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] wacom: Unown the name when the plugin stops
- Date: Thu, 10 Mar 2016 16:40:13 +0000 (UTC)
commit 986a2aa181e80f74497ed4d87e309dcb92bdce78
Author: Bastien Nocera <hadess hadess net>
Date: Thu Mar 10 17:17:12 2016 +0100
wacom: Unown the name when the plugin stops
So that we can disable the plugin and run the test binary instead.
plugins/wacom/gsd-wacom-manager.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index d4677ca..9c03d5a 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -1821,6 +1821,11 @@ gsd_wacom_manager_stop (GsdWacomManager *manager)
g_debug ("Stopping wacom manager");
+ if (manager->priv->name_id != 0) {
+ g_bus_unown_name (manager->priv->name_id);
+ manager->priv->name_id = 0;
+ }
+
if (p->dbus_register_object_id) {
g_dbus_connection_unregister_object (p->dbus_connection,
p->dbus_register_object_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]