From b960661abb0f5ba8c047c57ee81898cc3569e442 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Fri, 27 Aug 2021 14:57:13 +0200 Subject: Drop lomiri-url-dispatcher --- CMakeLists.txt | 8 ------- src/CMakeLists.txt | 62 ++++++++++++++++-------------------------------------- src/service.vala | 4 ---- 3 files changed, 18 insertions(+), 56 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e83d738..67aa92d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,14 +49,6 @@ pkg_check_modules( ) include_directories(${PULSEAUDIO_INCLUDE_DIRS}) -set(URL_DISPATCHER_REQUIRED_VERSION 0) - -pkg_check_modules( - URLDISPATCHER - lomiri-url-dispatcher>=${URL_DISPATCHER_REQUIRED_VERSION} -) -include_directories(${URLDISPATCHER_INCLUDE_DIRS}) - pkg_check_modules( SOUNDSERVICE REQUIRED gee-0.8 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) -- cgit v1.2.3