aboutsummaryrefslogtreecommitdiff
path: root/src/service.vala
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-12-02 20:39:29 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-12-02 20:39:29 +0100
commitd1da958db07dd7d3338213b97914bfba715e8b6a (patch)
treee2218fd6bd570152ae079ef6bba71889917d9c9c /src/service.vala
parentf31a081b02fa1cc3952d5efa31770ac5dd5a94ce (diff)
downloadayatana-indicator-sound-d1da958db07dd7d3338213b97914bfba715e8b6a.tar.gz
ayatana-indicator-sound-d1da958db07dd7d3338213b97914bfba715e8b6a.tar.bz2
ayatana-indicator-sound-d1da958db07dd7d3338213b97914bfba715e8b6a.zip
url-dispatcher: Properly build-time disable url-dispatcher support.
Diffstat (limited to 'src/service.vala')
-rw-r--r--src/service.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/service.vala b/src/service.vala
index 4e7d5e9..76f2574 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -191,7 +191,7 @@ public class IndicatorSound.Service: Object {
{ "root", null, null, "@a{sv} {}", null },
{ "scroll", activate_scroll_action, "i", null, null },
{ "desktop-settings", activate_desktop_settings, null, null, null },
-#if URLDISPATCHER_FOUND
+#if HAS_URLDISPATCHER
{ "phone-settings", activate_phone_settings, null, null, null },
#endif
{ "indicator-shown", null, null, "@b false", null },
@@ -253,7 +253,7 @@ public class IndicatorSound.Service: Object {
unowned string env = Environment.get_variable ("DESKTOP_SESSION");
string cmd;
-#if URLDISPATCHER_FOUND
+#if HAS_URLDISPATCHER
if (Environment.get_variable ("MIR_SOCKET") != null)
{
UrlDispatch.send ("settings:///system/sound");
@@ -277,7 +277,7 @@ public class IndicatorSound.Service: Object {
}
}
-#if URLDISPATCHER_FOUND
+#if HAS_URLDISPATCHER
void activate_phone_settings (SimpleAction action, Variant? param) {
UrlDispatch.send ("settings:///system/sound");
}