From 3e045e899da78878f5f1da5f4d31ed05ad8aa008 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Fri, 27 Aug 2021 14:05:43 +0200 Subject: Replace code with libayatana-common functions - CMakeLists.txt: Add libayatana-common build dependency - src/CMakeLists.txt: Add AyatanaCommon package to ayatana-indicator-bluetooth-service - src/phone.vala: Replace local code with libayatana-common functions - src/desktop.vala: Replace local code with libayatana-common functions - vapi/lomiri-url-dispatcher.vapi: Drop file --- src/phone.vala | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src/phone.vala') diff --git a/src/phone.vala b/src/phone.vala index 3490768..075096f 100644 --- a/src/phone.vala +++ b/src/phone.vala @@ -1,5 +1,6 @@ /* * Copyright 2013 Canonical Ltd. + * Copyright 2021 Robert Tari * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,6 +16,7 @@ * * Authors: * Charles Kerr + * Robert Tari */ class Phone: Profile @@ -62,15 +64,7 @@ class Phone: Profile void show_settings (string panel) { - -#if HAS_URLDISPATCHER - - LomiriUrlDispatch.send ("settings:///system/bluetooth"); - -#endif - - return; - + AyatanaCommon.utils_open_url("settings:///system/bluetooth"); } Action create_settings_action () -- cgit v1.2.3