summaryrefslogtreecommitdiff
path: root/src/gpm-manager.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-03-09 16:11:14 +0100
committerStefano Karapetsas <[email protected]>2014-03-09 16:11:14 +0100
commit8cb168b752f4130e88daefa400bb9bf07cf18227 (patch)
tree0403f625ab5c9bace167d49787ac2ca873d327d6 /src/gpm-manager.c
parent079471200ad1b05952ea1bef5c65979f552134b6 (diff)
parent0d07b0bbc9a76b5401bee7f0c8132af8e8d558ff (diff)
downloadmate-power-manager-8cb168b752f4130e88daefa400bb9bf07cf18227.tar.bz2
mate-power-manager-8cb168b752f4130e88daefa400bb9bf07cf18227.tar.xz
Merge pull request #60 from Firstyear/master
Add DBUS interface to kbdbacklight control
Diffstat (limited to 'src/gpm-manager.c')
-rw-r--r--src/gpm-manager.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gpm-manager.c b/src/gpm-manager.c
index 7561b22..6ca9dea 100644
--- a/src/gpm-manager.c
+++ b/src/gpm-manager.c
@@ -63,6 +63,7 @@
#include "gpm-disks.h"
#include "org.mate.PowerManager.Backlight.h"
+#include "org.mate.PowerManager.KbdBacklight.h"
static void gpm_manager_finalize (GObject *object);
@@ -1988,9 +1989,11 @@ 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,
- g_connection,
- NULL);
+ dbus_g_object_type_install_info (GPM_TYPE_KBD_BACKLIGHT,
+ &dbus_glib_gpm_kbd_backlight_object_info);
+ dbus_g_connection_register_g_object (connection, GPM_DBUS_PATH_KBD_BACKLIGHT,
+ G_OBJECT (manager->priv->kbd_backlight));
+
}
manager->priv->idle = gpm_idle_new ();