[gnome-control-center/gnome-3-8] network: Fix display of some characters in WiFi AP names
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-8] network: Fix display of some characters in WiFi AP names
- Date: Tue, 26 Mar 2013 17:44:09 +0000 (UTC)
commit 18d72f5f12a73d0590a18d2e73970d8c51be7bf1
Author: Bastien Nocera <hadess hadess net>
Date: Tue Mar 26 18:42:17 2013 +0100
network: Fix display of some characters in WiFi AP names
The old interface used to use markup to display Wi-Fi AP names,
but the new one didn't, but we were still escaping the AP name.
https://bugzilla.gnome.org/show_bug.cgi?id=695515
panels/network/net-device-wifi.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index 34dcd9d..c5ddeb9 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -1451,7 +1451,7 @@ make_row (GtkSizeGroup *rows,
GtkWidget *row;
GtkWidget *widget;
GtkWidget *box;
- gchar *title;
+ const gchar *title;
gboolean active;
gboolean in_range;
gboolean connecting;
@@ -1479,7 +1479,7 @@ make_row (GtkSizeGroup *rows,
timestamp = 0;
}
- title = g_markup_escape_text (nm_utils_escape_ssid (ssid->data, ssid->len), -1);
+ title = nm_utils_escape_ssid (ssid->data, ssid->len);
if (ap != NULL) {
in_range = TRUE;
@@ -1596,8 +1596,6 @@ make_row (GtkSizeGroup *rows,
gtk_widget_show_all (row);
- g_free (title);
-
g_object_set_data (G_OBJECT (row), "ap", ap);
g_object_set_data (G_OBJECT (row), "connection", connection);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]