diff options
author | Javier Jardón <javier.jardon@codethink.co.uk> | 2011-06-27 16:45:26 +0100 |
---|---|---|
committer | Javier Jardón <javier.jardon@codethink.co.uk> | 2011-06-27 16:45:26 +0100 |
commit | 65ab8e5387aa25f86c868c243a90b4b5174b6532 (patch) | |
tree | c9c26afacde01419acac529a1fcb2cf4bcfb0b3f /src/power-service.c | |
parent | e9f91cffa10b6d00743674faf516dff8e3e13311 (diff) | |
download | ayatana-indicator-power-65ab8e5387aa25f86c868c243a90b4b5174b6532.tar.gz ayatana-indicator-power-65ab8e5387aa25f86c868c243a90b4b5174b6532.tar.bz2 ayatana-indicator-power-65ab8e5387aa25f86c868c243a90b4b5174b6532.zip |
Implement power dbus service interface
Diffstat (limited to 'src/power-service.c')
-rw-r--r-- | src/power-service.c | 7 |
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); |