From b39526c27c44302c34fce26163919a0c4c7aecd3 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 26 Mar 2018 19:55:23 +0000 Subject: URL dispatcher support: Build phone code, even if URL dispatcher is unavailable. --- src/actions.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/actions.cpp') diff --git a/src/actions.cpp b/src/actions.cpp index d288a0e..663812c 100644 --- a/src/actions.cpp +++ b/src/actions.cpp @@ -88,7 +88,6 @@ void on_desktop_settings_activated (GSimpleAction*, GVariant*, gpointer gself) static_cast(gself)->desktop_open_settings_app(); } -#ifdef HAS_URLDISPATCHER void on_phone_appointment_activated (GSimpleAction*, GVariant *vuid, gpointer gself) { auto self = static_cast(gself); @@ -109,7 +108,6 @@ void on_phone_settings_activated (GSimpleAction*, GVariant*, gpointer gself) { static_cast(gself)->phone_open_settings_app(); } -#endif void on_set_location(GSimpleAction * /*action*/, GVariant * param, @@ -205,12 +203,11 @@ Actions::Actions(const std::shared_ptr& state): { "desktop.open-calendar-app", on_desktop_calendar_activated, "x", nullptr }, { "desktop.open-settings-app", on_desktop_settings_activated }, -#ifdef HAS_URLDISPATCHER { "phone.open-appointment", on_phone_appointment_activated, "s", nullptr }, { "phone.open-alarm-app", on_phone_alarm_activated }, { "phone.open-calendar-app", on_phone_calendar_activated, "x", nullptr }, { "phone.open-settings-app", on_phone_settings_activated }, -#endif + { "calendar-active", nullptr, nullptr, "false", on_calendar_active_changed }, { "set-location", on_set_location, "s" } }; -- cgit v1.2.3