summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWilliam Brown <[email protected]>2012-11-14 23:21:58 +1030
committerWilliam Brown <[email protected]>2012-11-14 23:21:58 +1030
commit0453548baedf4e060bc3785555589b551cf5b98c (patch)
tree34f787ab0ceb12cd5ef1330e34d5726ece4afe89 /src
parentfbe4f6cc621eab7520e72463434d192cf64c878d (diff)
downloadmate-power-manager-0453548baedf4e060bc3785555589b551cf5b98c.tar.bz2
mate-power-manager-0453548baedf4e060bc3785555589b551cf5b98c.tar.xz
This fixes the mismatched dbus library issue
Diffstat (limited to 'src')
-rw-r--r--src/gpm-manager.c4
1 files changed, 3 insertions, 1 deletions
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);
}