aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-02-01 10:53:07 -0600
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-28 10:17:14 +0200
commitf4d66118c3a845892b32495efec3d6473e17baca (patch)
treefa61cb312c85ce9133397fc4c0c71e6494c8dbcc /src/main.c
parentb9068926a006bfcae447d3d14ef9ef50af2388ee (diff)
downloadayatana-indicator-power-f4d66118c3a845892b32495efec3d6473e17baca.tar.gz
ayatana-indicator-power-f4d66118c3a845892b32495efec3d6473e17baca.tar.bz2
ayatana-indicator-power-f4d66118c3a845892b32495efec3d6473e17baca.zip
for low power notifications, use libnotify's 'sound-file' property instead of indicator-power calling the sound player directly
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index 34185b4..ce54ae8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -25,7 +25,6 @@
#include "device.h"
#include "notifier.h"
#include "service.h"
-#include "sound-player-gst.h"
#include "testing.h"
/***
@@ -42,7 +41,6 @@ on_name_lost (gpointer instance G_GNUC_UNUSED, gpointer loop)
int
main (int argc G_GNUC_UNUSED, char ** argv G_GNUC_UNUSED)
{
- IndicatorPowerSoundPlayer * sound_player;
IndicatorPowerNotifier * notifier;
IndicatorPowerService * service;
IndicatorPowerTesting * testing;
@@ -54,8 +52,7 @@ main (int argc G_GNUC_UNUSED, char ** argv G_GNUC_UNUSED)
textdomain (GETTEXT_PACKAGE);
/* run */
- sound_player = indicator_power_sound_player_gst_new ();
- notifier = indicator_power_notifier_new (sound_player);
+ notifier = indicator_power_notifier_new();
service = indicator_power_service_new(NULL, notifier);
testing = indicator_power_testing_new (service);
loop = g_main_loop_new (NULL, FALSE);
@@ -68,6 +65,5 @@ main (int argc G_GNUC_UNUSED, char ** argv G_GNUC_UNUSED)
g_clear_object (&testing);
g_clear_object (&service);
g_clear_object (&notifier);
- g_clear_object (&sound_player);
return 0;
}