diff options
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 (); |