[gnome-control-center] network: Make the hidden network UI match the new mockups
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Make the hidden network UI match the new mockups
- Date: Mon, 30 Jul 2012 08:06:30 +0000 (UTC)
commit f7af831ff62e7975cb2b5128d3e9536ca079b3d8
Author: Richard Hughes <richard hughsie com>
Date: Mon Jul 30 08:53:43 2012 +0100
network: Make the hidden network UI match the new mockups
panels/network/net-device-wifi.c | 21 +++++++--------------
1 files changed, 7 insertions(+), 14 deletions(-)
---
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index 761cbdb..d01e845 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -185,18 +185,20 @@ add_access_point_other (NetDeviceWifi *device_wifi)
NetDeviceWifiPrivate *priv = device_wifi->priv;
GtkListStore *liststore_network;
GtkTreeIter treeiter;
+ gchar *title;
liststore_network = GTK_LIST_STORE (gtk_builder_get_object (priv->builder,
"liststore_network"));
+ /* TRANSLATORS: this is when the access point is not listed in
+ * the dropdown (or hidden) and the user has to select another
+ * entry manually */
+ title = g_strdup_printf ("<b>%s</b>", _("Connect to a Hidden Network"));
gtk_list_store_append (liststore_network, &treeiter);
gtk_list_store_set (liststore_network,
&treeiter,
COLUMN_ID, "ap-other...",
- /* TRANSLATORS: this is when the access point is not listed
- * in the dropdown (or hidden) and the user has to select
- * another entry manually */
- COLUMN_TITLE, C_("Wireless access point", "Other..."),
+ COLUMN_TITLE, title,
/* always last */
COLUMN_SORT, "",
COLUMN_STRENGTH, 0,
@@ -205,6 +207,7 @@ add_access_point_other (NetDeviceWifi *device_wifi)
COLUMN_AP_IN_RANGE, FALSE,
COLUMN_AP_IS_SAVED, FALSE,
-1);
+ g_free (title);
}
static GPtrArray *
@@ -1084,16 +1087,6 @@ wireless_ap_model_sort_cb (GtkTreeModel *model,
COLUMN_AP_IN_RANGE, &ap_b,
-1);
- /* special case blank entries to the bottom */
- if (g_strcmp0 (str_a, "") == 0) {
- retval = 1;
- goto out;
- }
- if (g_strcmp0 (str_b, "") == 0) {
- retval = -1;
- goto out;
- }
-
/* active entry first */
if (active_a) {
retval = -1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]