[gnome-control-center] network: Fix display of some characters in WiFi AP names



commit d4723d396c18648a1ea96d0f054e16e30df7f50f
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]