[gnome-settings-daemon] cursor: Avoid warnings when D-Bus isn't ready
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] cursor: Avoid warnings when D-Bus isn't ready
- Date: Sat, 5 Oct 2013 16:22:32 +0000 (UTC)
commit cca624755d90ea294c0f9753b2e1a6de75f85eeb
Author: Bastien Nocera <hadess hadess net>
Date: Sat Oct 5 17:35:48 2013 +0200
cursor: Avoid warnings when D-Bus isn't ready
Don't send out signals if we didn't manage to own the name
(running as a stand-alone program for example).
plugins/cursor/gsd-cursor-manager.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/cursor/gsd-cursor-manager.c b/plugins/cursor/gsd-cursor-manager.c
index 99d1719..202ce6c 100644
--- a/plugins/cursor/gsd-cursor-manager.c
+++ b/plugins/cursor/gsd-cursor-manager.c
@@ -155,6 +155,9 @@ set_osk_enabled (GsdCursorManager *manager,
g_debug ("Switching the OSK to %s", enabled ? "enabled" : "disabled");
manager->priv->show_osk = enabled;
+ if (manager->priv->dbus_connection == NULL)
+ return;
+
builder = g_variant_builder_new (G_VARIANT_TYPE_ARRAY);
g_variant_builder_add (builder,
"{sv}",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]