diff options
author | William Brown <[email protected]> | 2013-06-27 10:17:08 +0930 |
---|---|---|
committer | William Brown <[email protected]> | 2013-06-27 10:17:08 +0930 |
commit | 0d07b0bbc9a76b5401bee7f0c8132af8e8d558ff (patch) | |
tree | 730860e4f9b26d517a67ff31d2fe454f4886b1d4 /src/gpm-manager.c | |
parent | 4d842135ce677957aee8bd5bb47f875b0ece570a (diff) | |
download | mate-power-manager-0d07b0bbc9a76b5401bee7f0c8132af8e8d558ff.tar.bz2 mate-power-manager-0d07b0bbc9a76b5401bee7f0c8132af8e8d558ff.tar.xz |
RHBZ #964678 : Patch that provides DBUS interface to control KbdBacklight.
Diffstat (limited to 'src/gpm-manager.c')
-rw-r--r-- | src/gpm-manager.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gpm-manager.c b/src/gpm-manager.c index 9b697b5..6f403a9 100644 --- a/src/gpm-manager.c +++ b/src/gpm-manager.c @@ -65,6 +65,7 @@ #include "gpm-disks.h" #include "org.mate.PowerManager.Backlight.h" +#include "org.mate.PowerManager.KbdBacklight.h" static void gpm_manager_finalize (GObject *object); @@ -1997,9 +1998,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 (); |