[gnome-control-center/gnome-3-4] background: Escape wallpaper filename before display



commit ae5b16f873869bce935cfaafad1964340f47e7d3
Author: Jon McCann <jmccann redhat com>
Date:   Wed Mar 28 15:10:32 2012 -0400

    background: Escape wallpaper filename before display
    
    https://bugzilla.gnome.org/show_bug.cgi?id=673015

 panels/background/cc-background-panel.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/panels/background/cc-background-panel.c b/panels/background/cc-background-panel.c
index 1ec9188..47a920e 100644
--- a/panels/background/cc-background-panel.c
+++ b/panels/background/cc-background-panel.c
@@ -340,8 +340,12 @@ update_preview (CcBackgroundPanelPrivate *priv,
   if (priv->current_background)
     {
       GdkColor pcolor, scolor;
+      char *escaped;
+
+      escaped = g_markup_escape_text (cc_background_item_get_name (priv->current_background), -1);
+      markup = g_strdup_printf ("<b>%s</b>", escaped);
+      g_free (escaped);
 
-      markup = g_strdup_printf ("<b>%s</b>", cc_background_item_get_name (priv->current_background));
       gtk_label_set_markup (GTK_LABEL (WID ("background-label")), markup);
       g_free (markup);
 



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