aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-07-21 00:50:24 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-07-21 00:50:24 -0500
commitb08f9b096f956b528ad974a30828a809b827efef (patch)
tree656289e55e8ed415bc552fa99904e240c30744ec /src/main.c
parent6ea2db56307d04ac8dba4bcf929cd716f4840359 (diff)
downloadayatana-indicator-power-b08f9b096f956b528ad974a30828a809b827efef.tar.gz
ayatana-indicator-power-b08f9b096f956b528ad974a30828a809b827efef.tar.bz2
ayatana-indicator-power-b08f9b096f956b528ad974a30828a809b827efef.zip
second draft of low battery power notifications, still a work in progress
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 70b7f2a..d7953e6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -25,7 +25,6 @@
#include "device.h"
#include "device-provider-upower.h"
-#include "notifier.h"
#include "service.h"
/***
@@ -43,7 +42,6 @@ int
main (int argc G_GNUC_UNUSED, char ** argv G_GNUC_UNUSED)
{
IndicatorPowerDeviceProvider * device_provider;
- IndicatorPowerNotifier * notifier;
IndicatorPowerService * service;
GMainLoop * loop;
@@ -54,7 +52,6 @@ main (int argc G_GNUC_UNUSED, char ** argv G_GNUC_UNUSED)
/* run */
device_provider = indicator_power_device_provider_upower_new ();
- notifier = indicator_power_notifier_new (device_provider);
service = indicator_power_service_new (device_provider);
loop = g_main_loop_new (NULL, FALSE);
g_signal_connect (service, INDICATOR_POWER_SERVICE_SIGNAL_NAME_LOST,
@@ -64,7 +61,6 @@ main (int argc G_GNUC_UNUSED, char ** argv G_GNUC_UNUSED)
/* cleanup */
g_main_loop_unref (loop);
g_clear_object (&service);
- g_clear_object (&notifier);
g_clear_object (&device_provider);
return 0;
}