[gnome-shell] network: don't return null from NMConnectionDevice._getStatus()
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] network: don't return null from NMConnectionDevice._getStatus()
- Date: Sat, 31 Aug 2013 16:52:47 +0000 (UTC)
commit 5a9f0c24b407a4fddff2ac1a29357a8fc94a4d5e
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Mon Aug 19 23:14:15 2013 +0200
network: don't return null from NMConnectionDevice._getStatus()
StLabel complains set you set the text to NULL
https://bugzilla.gnome.org/show_bug.cgi?id=706262
js/ui/status/network.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 376cb2c..20157f4 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -352,12 +352,12 @@ const NMConnectionDevice = new Lang.Class({
_getStatus: function() {
if (!this._device)
- return null;
+ return '';
switch(this._device.state) {
case NetworkManager.DeviceState.DISCONNECTED:
case NetworkManager.DeviceState.ACTIVATED:
- return null;
+ return '';
case NetworkManager.DeviceState.UNMANAGED:
/* Translators: this is for network devices that are physically present but are not
under NetworkManager's control (and thus cannot be used in the menu) */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]