aboutsummaryrefslogtreecommitdiff
path: root/src/power-service.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/power-service.c')
-rw-r--r--src/power-service.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/power-service.c b/src/power-service.c
index bca079b..daaea41 100644
--- a/src/power-service.c
+++ b/src/power-service.c
@@ -35,13 +35,13 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include <libindicator/indicator-service.h>
+#include "power-service-dbus.h"
#include "dbus-shared-names.h"
static IndicatorService *service = NULL;
static GMainLoop *mainloop = NULL;
static DbusmenuServer *server = NULL;
-/*TODO Do we need this?*/
-/*static PowerServiceDbus *dbus_interface = NULL;*/
+static PowerServiceDbus *dbus_interface = NULL;
/* Repsonds to the service object saying it's time to shutdown.
It stops the mainloop. */
@@ -133,8 +133,7 @@ main (gint argc,
build_menus (root_menuitem);
/* Setup dbus interface */
- /*TODO*/
- /*dbus_interface = g_object_new (POWER_SERVICE_DBUS_TYPE, NULL);*/
+ dbus_interface = g_object_new (POWER_SERVICE_DBUS_TYPE, NULL);
mainloop = g_main_loop_new (NULL, FALSE);
g_main_loop_run(mainloop);