aboutsummaryrefslogtreecommitdiff
path: root/src/phone.vala
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-08-27 14:05:43 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-28 14:22:15 +0200
commit3e045e899da78878f5f1da5f4d31ed05ad8aa008 (patch)
treeff6deeb31da0c4786f7ae7d522399dec04bb392a /src/phone.vala
parentf9dcff7b3a42082ad3ba6076991ed8aa7df9b6a8 (diff)
downloadayatana-indicator-bluetooth-3e045e899da78878f5f1da5f4d31ed05ad8aa008.tar.gz
ayatana-indicator-bluetooth-3e045e899da78878f5f1da5f4d31ed05ad8aa008.tar.bz2
ayatana-indicator-bluetooth-3e045e899da78878f5f1da5f4d31ed05ad8aa008.zip
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
Diffstat (limited to 'src/phone.vala')
-rw-r--r--src/phone.vala12
1 files changed, 3 insertions, 9 deletions
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 <charles.kerr@canonical.com>
+ * Robert Tari <robert@tari.in>
*/
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 ()