summaryrefslogtreecommitdiff
path: root/src/up-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/up-main.c')
-rw-r--r--src/up-main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/up-main.c b/src/up-main.c
index 281ea28..9f2cb24 100644
--- a/src/up-main.c
+++ b/src/up-main.c
@@ -40,6 +40,7 @@
#include "up-daemon.h"
#include "up-qos.h"
+#include "up-kbd-backlight.h"
#include "up-wakeups.h"
#define DEVKIT_POWER_SERVICE_NAME "org.freedesktop.UPower"
@@ -125,6 +126,7 @@ main (gint argc, gchar **argv)
GError *error = NULL;
UpDaemon *daemon = NULL;
UpQos *qos = NULL;
+ UpKbdBacklight *kbd_backlight = NULL;
UpWakeups *wakeups = NULL;
GOptionContext *context;
DBusGProxy *bus_proxy;
@@ -182,6 +184,7 @@ main (gint argc, gchar **argv)
egg_debug ("Starting upowerd version %s", PACKAGE_VERSION);
qos = up_qos_new ();
+ kbd_backlight = up_kbd_backlight_new ();
wakeups = up_wakeups_new ();
daemon = up_daemon_new ();
loop = g_main_loop_new (NULL, FALSE);
@@ -209,6 +212,8 @@ main (gint argc, gchar **argv)
out:
if (qos != NULL)
g_object_unref (qos);
+ if (kbd_backlight != NULL)
+ g_object_unref (kbd_backlight);
if (wakeups != NULL)
g_object_unref (wakeups);
if (daemon != NULL)