[gnome-control-center] network: Sort Wireless first
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Sort Wireless first
- Date: Thu, 14 Jun 2012 09:38:01 +0000 (UTC)
commit 398ca18a71e2f8e7c85c071bbc1d9c2e630b10f4
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jun 13 22:01:04 2012 -0400
network: Sort Wireless first
This is the most common case, and is the page we want to end up
on when we're coming from the shell menu.
https://bugzilla.gnome.org/show_bug.cgi?id=677791
Signed-off-by: Richard Hughes <richard hughsie com>
panels/network/panel-common.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/panels/network/panel-common.c b/panels/network/panel-common.c
index 25b6356..aa2a020 100644
--- a/panels/network/panel-common.c
+++ b/panels/network/panel-common.c
@@ -113,6 +113,7 @@ panel_device_to_localized_string (NMDevice *device)
* panel_device_to_sortable_string:
*
* Try to return order of approximate connection speed.
+ * But sort wifi first, since thats the common case.
**/
const gchar *
panel_device_to_sortable_string (NMDevice *device)
@@ -121,10 +122,10 @@ panel_device_to_sortable_string (NMDevice *device)
NMDeviceModemCapabilities caps;
switch (nm_device_get_device_type (device)) {
case NM_DEVICE_TYPE_ETHERNET:
- value = "1";
+ value = "2";
break;
case NM_DEVICE_TYPE_WIFI:
- value = "2";
+ value = "1";
break;
case NM_DEVICE_TYPE_MODEM:
caps = nm_device_modem_get_current_capabilities (NM_DEVICE_MODEM (device));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]