aboutsummaryrefslogtreecommitdiff
path: root/src/notifier.c
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2022-02-18 03:33:25 +0100
committerRobert Tari <robert@tari.in>2022-02-18 08:21:59 +0100
commit627d6852c6511c5f9498d77df57010435f2cd518 (patch)
tree581273e8d06a28f3a8fa51e291d0b429ce3ed1e6 /src/notifier.c
parentb12fb0e3278c13ea79a4e4354a492f9cfb80ae4f (diff)
downloadayatana-indicator-power-627d6852c6511c5f9498d77df57010435f2cd518.tar.gz
ayatana-indicator-power-627d6852c6511c5f9498d77df57010435f2cd518.tar.bz2
ayatana-indicator-power-627d6852c6511c5f9498d77df57010435f2cd518.zip
Make Lomiri features configurable at build time
Diffstat (limited to 'src/notifier.c')
-rw-r--r--src/notifier.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/notifier.c b/src/notifier.c
index f8eda71..ba30ae5 100644
--- a/src/notifier.c
+++ b/src/notifier.c
@@ -21,7 +21,7 @@
#include "datafiles.h"
-#ifdef HAS_LOMIRI_SCHEMAS
+#ifdef LOMIRI_FEATURES_ENABLED
#include "dbus-accounts-sound.h"
#endif
@@ -86,7 +86,7 @@ typedef struct
gboolean actions_supported;
GCancellable * cancellable;
- #ifdef HAS_LOMIRI_SCHEMAS
+ #ifdef LOMIRI_FEATURES_ENABLED
DbusAccountsServiceSound * accounts_service_sound_proxy;
gboolean accounts_service_sound_proxy_pending;
#endif
@@ -147,7 +147,7 @@ get_battery_power_level (IndicatorPowerDevice * battery)
**** Sounds
***/
-#ifdef HAS_LOMIRI_SCHEMAS
+#ifdef LOMIRI_FEATURES_ENABLED
static void
on_sound_proxy_ready (GObject * source_object G_GNUC_UNUSED,
GAsyncResult * res,
@@ -309,7 +309,7 @@ notification_show(IndicatorPowerNotifier * self)
if (are_actions_supported(self))
{
- #ifdef HAS_LOMIRI_SCHEMAS
+ #ifdef LOMIRI_FEATURES_ENABLED
if (!silent_mode(self))
#endif
{
@@ -454,7 +454,7 @@ my_dispose (GObject * o)
indicator_power_notifier_set_battery (self, NULL);
g_clear_object (&p->dbus_battery);
- #ifdef HAS_LOMIRI_SCHEMAS
+ #ifdef LOMIRI_FEATURES_ENABLED
g_clear_object (&p->accounts_service_sound_proxy);
#endif
@@ -491,7 +491,7 @@ indicator_power_notifier_init (IndicatorPowerNotifier * self)
if (!instance_count++ && !notify_init(SERVICE_EXEC))
g_critical("Unable to initialize libnotify! Notifications might not be shown.");
- #ifdef HAS_LOMIRI_SCHEMAS
+ #ifdef LOMIRI_FEATURES_ENABLED
p->accounts_service_sound_proxy_pending = TRUE;
gchar* object_path = g_strdup_printf("/org/freedesktop/Accounts/User%lu", (gulong)getuid());
dbus_accounts_service_sound_proxy_new_for_bus(