diff options
author | Robert Tari <robert@tari.in> | 2021-08-27 14:57:13 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-08-28 13:54:08 +0200 |
commit | b960661abb0f5ba8c047c57ee81898cc3569e442 (patch) | |
tree | ffeaeeb39167ec6ebf32f13ec83725b2d8b001b6 /src | |
parent | 781af2ce90d68b6034524f5bf2242b70792e2b9f (diff) | |
download | ayatana-indicator-sound-b960661abb0f5ba8c047c57ee81898cc3569e442.tar.gz ayatana-indicator-sound-b960661abb0f5ba8c047c57ee81898cc3569e442.tar.bz2 ayatana-indicator-sound-b960661abb0f5ba8c047c57ee81898cc3569e442.zip |
Drop lomiri-url-dispatcher
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 62 | ||||
-rw-r--r-- | src/service.vala | 4 |
2 files changed, 18 insertions, 48 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7dae84a..c76f4f2 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -6,11 +6,6 @@ set(HEADER_PATH "${CMAKE_CURRENT_BINARY_DIR}/indicator-sound-service.h") set(SYMBOLS_PATH "${CMAKE_CURRENT_BINARY_DIR}/indicator-sound-service.def") set(VAPI_PATH "${CMAKE_CURRENT_BINARY_DIR}/indicator-sound-service.vapi") -if(URLDISPATCHER_FOUND) - set (VALA_DEFINE_URLDISPATCHER "--define=HAS_URLDISPATCHER") - set (VALA_PKG_URLDISPATCHER "lomiri-url-dispatcher") -endif() - if(EXISTS "/usr/share/glib-2.0/schemas/com.ubuntu.sound.gschema.xml") set (VALA_DEFINE_UBUNTU_SOUND_SCHEMA "--define=HAS_UBUNTU_SOUND_SCHEMA") endif() @@ -67,7 +62,6 @@ vala_init(ayatana-indicator-sound-service --vapidir=${CMAKE_SOURCE_DIR}/vapi/ --vapidir=. --pkg=bus-watcher - ${VALA_DEFINE_URLDISPATCHER} ${VALA_DEFINE_UBUNTU_SOUND_SCHEMA} ${VALA_DEFINE_ACCTSERVICE_PRIVACY_SETTINGS} ${VALA_DEFINE_ACCTSERVICE_SOUND_SETTINGS} @@ -89,43 +83,24 @@ vala_add(ayatana-indicator-sound-service DEPENDS notification ) -if(URLDISPATCHER_FOUND) - vala_add(ayatana-indicator-sound-service - service.vala - DEPENDS - sound-menu - volume-control - volume-control-pulse - notification - info-notification - volume-warning - options - options-gsettings - media-player - media-player-list - mpris2-interfaces - accounts-service-user - accounts-service-access - ) -else() - vala_add(ayatana-indicator-sound-service - service.vala - DEPENDS - sound-menu - volume-control - volume-control-pulse - notification - info-notification - volume-warning - options - options-gsettings - media-player - media-player-list - mpris2-interfaces - accounts-service-user - accounts-service-access - ) -endif() + +vala_add(ayatana-indicator-sound-service + service.vala + DEPENDS + sound-menu + volume-control + volume-control-pulse + notification + info-notification + volume-warning + options + options-gsettings + media-player + media-player-list + mpris2-interfaces + accounts-service-user + accounts-service-access +) vala_add(ayatana-indicator-sound-service options.vala @@ -305,7 +280,6 @@ add_library( target_link_libraries( indicator-sound-service-lib ${SOUNDSERVICE_LIBRARIES} - ${URLDISPATCHER_LIBRARIES} -lm ) diff --git a/src/service.vala b/src/service.vala index 78c0f99..803e09f 100644 --- a/src/service.vala +++ b/src/service.vala @@ -193,9 +193,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 HAS_URLDISPATCHER { "phone-settings", activate_phone_settings, null, null, null }, -#endif { "indicator-shown", null, null, "@b false", null }, }; @@ -273,11 +271,9 @@ public class IndicatorSound.Service: Object { } } -#if HAS_URLDISPATCHER void activate_phone_settings (SimpleAction action, Variant? param) { AyatanaCommon.utils_open_url("settings:///system/sound"); } -#endif /* Returns a serialized version of @icon_name suited for the panel */ static Variant serialize_themed_icon (string icon_name) |