[network-manager-applet] menu: show BT connections when no other devices are available (rh #532049)
- From: Dan Williams <dcbw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [network-manager-applet] menu: show BT connections when no other devices are available (rh #532049)
- Date: Sat, 7 Nov 2009 05:36:46 +0000 (UTC)
commit 099692db6039cfdd713ccce8e49a69de268581e1
Author: Dan Williams <dcbw redhat com>
Date: Fri Nov 6 21:35:34 2009 -0800
menu: show BT connections when no other devices are available (rh #532049)
src/applet.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/applet.c b/src/applet.c
index b7674f8..3279e1a 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -1420,6 +1420,7 @@ nma_menu_add_devices (GtkWidget *menu, NMApplet *applet)
gint n_usable_wifi_devices = 0;
gint n_wired_devices = 0;
gint n_mb_devices = 0;
+ gint n_bt_devices = 0;
int i;
temp = nm_client_get_devices (applet->nm_client);
@@ -1444,9 +1445,11 @@ nma_menu_add_devices (GtkWidget *menu, NMApplet *applet)
n_wired_devices++;
else if (NM_IS_CDMA_DEVICE (device) || NM_IS_GSM_DEVICE (device))
n_mb_devices++;
+ else if (NM_IS_DEVICE_BT (device))
+ n_bt_devices++;
}
- if (!n_wired_devices && !n_wifi_devices && !n_mb_devices) {
+ if (!n_wired_devices && !n_wifi_devices && !n_mb_devices && !n_bt_devices) {
nma_menu_add_text_item (menu, _("No network devices available"));
goto out;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]