[gnome-shell/wip/aggregate-menu: 39/56] network: Make Bluetooth devices into Modem devices
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/aggregate-menu: 39/56] network: Make Bluetooth devices into Modem devices
- Date: Tue, 16 Jul 2013 20:57:19 +0000 (UTC)
commit 2bf66483d24888d14d2cef6d05e4531d3ccc8399
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Jul 15 13:36:20 2013 -0400
network: Make Bluetooth devices into Modem devices
We shouldn't differentiate between mobile devices depending
on the type of connection technology they use.
js/ui/status/network.js | 32 +-------------------------------
1 files changed, 1 insertions(+), 31 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 9681e8c..b07a99e 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -539,36 +539,6 @@ const NMDeviceModem = new Lang.Class({
}
});
-const NMDeviceBluetooth = new Lang.Class({
- Name: 'NMDeviceBluetooth',
- Extends: NMDevice,
-
- _init: function(client, device, connections) {
- device._description = _("Bluetooth");
-
- this.category = NMConnectionCategory.WWAN;
-
- this.parent(client, device, connections);
- },
-
- _activateAutomaticConnection: function() {
- // FIXME: DUN devices are configured like modems, so
- // We need to spawn the mobile wizard
- // but the network panel doesn't support bluetooth at the moment
- // so we just create an empty connection and hope
- // that this phone supports PAN
-
- this.parent();
- },
-
- getIndicatorIcon: function() {
- if (this._device.active_connection.state == NetworkManager.ActiveConnectionState.ACTIVATING)
- return 'network-wired-acquiring-symbolic';
- else
- return 'network-wired-symbolic';
- },
-});
-
const NMWirelessDialogItem = new Lang.Class({
Name: 'NMWirelessDialogItem',
@@ -1153,7 +1123,7 @@ const NMApplet = new Lang.Class({
this._dtypes = { };
this._dtypes[NetworkManager.DeviceType.WIFI] = NMDeviceWireless;
this._dtypes[NetworkManager.DeviceType.MODEM] = NMDeviceModem;
- this._dtypes[NetworkManager.DeviceType.BT] = NMDeviceBluetooth;
+ this._dtypes[NetworkManager.DeviceType.BT] = NMDeviceModem;
// TODO: WiMax support
// Connection types
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]