From 0453548baedf4e060bc3785555589b551cf5b98c Mon Sep 17 00:00:00 2001 From: William Brown Date: Wed, 14 Nov 2012 23:21:58 +1030 Subject: This fixes the mismatched dbus library issue --- src/gpm-manager.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gpm-manager.c b/src/gpm-manager.c index 13b0b8d..9ee8781 100644 --- a/src/gpm-manager.c +++ b/src/gpm-manager.c @@ -1850,10 +1850,12 @@ gpm_manager_init (GpmManager *manager) gboolean check_type_cpu; gint timeout; DBusGConnection *connection; + GDBusConnection *g_connection; GError *error = NULL; manager->priv = GPM_MANAGER_GET_PRIVATE (manager); connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error); + g_connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error); /* init to unthrottled */ manager->priv->screensaver_ac_throttle_id = 0; @@ -1909,7 +1911,7 @@ gpm_manager_init (GpmManager *manager) manager->priv->kbd_backlight = gpm_kbd_backlight_new (); if (manager->priv->kbd_backlight != NULL) { gpm_kbd_backlight_register_dbus (manager->priv->kbd_backlight, - connection, + g_connection, NULL); } -- cgit v1.2.1