aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-05-16 12:59:03 -0500
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-28 10:17:14 +0200
commit39571b0e05c78627d233b2f77250de459d73f4a6 (patch)
tree275260eeace7790c5763d3ed8668386e417d7e24 /src
parent557e10a031b886dc670bdf5918c3984edbace5ac (diff)
downloadayatana-indicator-power-39571b0e05c78627d233b2f77250de459d73f4a6.tar.gz
ayatana-indicator-power-39571b0e05c78627d233b2f77250de459d73f4a6.tar.bz2
ayatana-indicator-power-39571b0e05c78627d233b2f77250de459d73f4a6.zip
fix cmake warning of the test apps' dependency on the service library
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt5
-rw-r--r--src/notifier.c2
2 files changed, 1 insertions, 6 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a5e6c57..bf85b77 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,8 +1,3 @@
-set (SERVICE_LIB "ayatanaindicatorpowerservice")
-set (SERVICE_EXEC "ayatana-indicator-power-service")
-
-add_definitions(-DG_LOG_DOMAIN="ayatana-indicator-power")
-
if(URLDISPATCHER_FOUND)
add_definitions( -DHAS_URLDISPATCHER )
endif()
diff --git a/src/notifier.c b/src/notifier.c
index da5c5d5..d982ac2 100644
--- a/src/notifier.c
+++ b/src/notifier.c
@@ -489,7 +489,7 @@ indicator_power_notifier_init (IndicatorPowerNotifier * self)
p->cancellable = g_cancellable_new();
- if (!instance_count++ && !notify_init("ayatana-indicator-power-service"))
+ if (!instance_count++ && !notify_init(SERVICE_EXEC))
g_critical("Unable to initialize libnotify! Notifications might not be shown.");
#ifdef HAS_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS