[gnome-control-center] color: Escape profile titles that have markup in the titles



commit 104aadaca9194cd99f217f10b3e9d735a3cc9cda
Author: Richard Hughes <richard hughsie com>
Date:   Thu Sep 15 09:30:14 2011 +0100

    color: Escape profile titles that have markup in the titles
    
    This ensures we can show profiles with '<', '>' and '&' in the title.
    
    Resolves https://bugzilla.gnome.org/show_bug.cgi?id=659127

 panels/color/cc-color-panel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c
index 3de281e..210ddc1 100644
--- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c
@@ -1364,7 +1364,7 @@ gcm_prefs_get_profile_title (CcColorPanel *prefs, CdProfile *profile)
   title = cd_profile_get_title (profile);
   if (title != NULL)
     {
-      string = g_strdup (title);
+      string = g_markup_escape_text (title, -1);
       goto out;
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]