From d1da958db07dd7d3338213b97914bfba715e8b6a Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sat, 2 Dec 2017 20:39:29 +0100 Subject: url-dispatcher: Properly build-time disable url-dispatcher support. --- src/service.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/service.vala') 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"); } -- cgit v1.2.3