[gnome-shell/wip/hadess/import-gnome-bluetooth: 128/133] bluetooth: Use internal gnome-bluetooth code
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/hadess/import-gnome-bluetooth: 128/133] bluetooth: Use internal gnome-bluetooth code
- Date: Tue, 2 Nov 2021 14:28:25 +0000 (UTC)
commit 687a42e40d1196c3e75256f16db0394be0c52a8e
Author: Bastien Nocera <hadess hadess net>
Date: Tue Nov 2 14:56:33 2021 +0100
bluetooth: Use internal gnome-bluetooth code
js/misc/config.js.in | 2 --
js/misc/meson.build | 1 -
js/ui/panel.js | 6 +-----
js/ui/status/bluetooth.js | 4 ++--
meson.build | 2 --
5 files changed, 3 insertions(+), 12 deletions(-)
---
diff --git a/js/misc/config.js.in b/js/misc/config.js.in
index f9210397a1..9c057bb969 100644
--- a/js/misc/config.js.in
+++ b/js/misc/config.js.in
@@ -4,8 +4,6 @@
var PACKAGE_NAME = '@PACKAGE_NAME@';
/* The version of this package */
var PACKAGE_VERSION = '@PACKAGE_VERSION@';
-/* 1 if gnome-bluetooth is available, 0 otherwise */
-var HAVE_BLUETOOTH = @HAVE_BLUETOOTH@;
/* 1 if networkmanager is available, 0 otherwise */
var HAVE_NETWORKMANAGER = @HAVE_NETWORKMANAGER@;
/* 1 if soup3 support is enabled, 0 otherwise */
diff --git a/js/misc/meson.build b/js/misc/meson.build
index 5825627111..2dff20decf 100644
--- a/js/misc/meson.build
+++ b/js/misc/meson.build
@@ -3,7 +3,6 @@ jsconf.set('PACKAGE_NAME', meson.project_name())
jsconf.set('PACKAGE_VERSION', meson.project_version())
jsconf.set('GETTEXT_PACKAGE', meson.project_name())
jsconf.set('LIBMUTTER_API_VERSION', mutter_api_version)
-jsconf.set10('HAVE_BLUETOOTH', bt_dep.found())
jsconf.set10('HAVE_NETWORKMANAGER', have_networkmanager)
jsconf.set10('HAVE_SOUP2', have_soup2)
jsconf.set('datadir', datadir)
diff --git a/js/ui/panel.js b/js/ui/panel.js
index dafba690a5..10dc9211c9 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -567,11 +567,7 @@ class AggregateMenu extends PanelMenu.Button {
else
this._network = null;
- if (Config.HAVE_BLUETOOTH)
- this._bluetooth = new imports.ui.status.bluetooth.Indicator();
- else
- this._bluetooth = null;
-
+ this._bluetooth = new imports.ui.status.bluetooth.Indicator();
this._remoteAccess = new imports.ui.status.remoteAccess.RemoteAccessApplet();
this._power = new imports.ui.status.power.Indicator();
this._powerProfiles = new imports.ui.status.powerProfiles.Indicator();
diff --git a/js/ui/status/bluetooth.js b/js/ui/status/bluetooth.js
index 98ccc3d314..da770b1d34 100644
--- a/js/ui/status/bluetooth.js
+++ b/js/ui/status/bluetooth.js
@@ -1,7 +1,7 @@
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
/* exported Indicator */
-const { Gio, GLib, GnomeBluetooth, GObject } = imports.gi;
+const { Gio, GLib, Shell, GObject } = imports.gi;
const Main = imports.ui.main;
const PanelMenu = imports.ui.panelMenu;
@@ -52,7 +52,7 @@ class Indicator extends PanelMenu.SystemIndicator {
this._syncId = 0;
this._adapter = null;
- this._client = new GnomeBluetooth.Client();
+ this._client = new Shell.BluetoothClient();
this._model = this._client.get_model();
this._model.connect('row-deleted', this._queueSync.bind(this));
this._model.connect('row-changed', this._queueSync.bind(this));
diff --git a/meson.build b/meson.build
index d4583ecf24..30f84156e2 100644
--- a/meson.build
+++ b/meson.build
@@ -32,7 +32,6 @@ startup_req = '>= 0.11'
ibus_req = '>= 1.5.19'
gnome_desktop_req = '>= 3.35.90'
-bt_req = '>= 3.9.0'
gst_req = '>= 0.11.92'
nm_req = '>= 1.10.4'
secret_req = '>= 0.18'
@@ -93,7 +92,6 @@ x11_dep = dependency('x11')
schemas_dep = dependency('gsettings-desktop-schemas', version: schemas_req)
gnome_desktop_dep = dependency('gnome-desktop-3.0', version: gnome_desktop_req)
-bt_dep = dependency('gnome-bluetooth-1.0', version: bt_req, required: false)
gst_dep = dependency('gstreamer-1.0', version: gst_req, required: false)
gst_base_dep = dependency('gstreamer-base-1.0', required: false)
pipewire_dep = dependency('libpipewire-0.3', required: false)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]