From 46186a5f0227602ae0af1103ef1927926b794328 Mon Sep 17 00:00:00 2001 From: Jon McCann Date: Wed, 28 Mar 2012 15:10:32 -0400 Subject: [PATCH] background: Escape wallpaper filename before display https://bugzilla.gnome.org/show_bug.cgi?id=673015 --- panels/background/cc-background-panel.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/panels/background/cc-background-panel.c b/panels/background/cc-background-panel.c index fc856e748..7eeca0804 100644 --- a/panels/background/cc-background-panel.c +++ b/panels/background/cc-background-panel.c @@ -349,8 +349,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 ("%s", escaped); + g_free (escaped); - markup = g_strdup_printf ("%s", cc_background_item_get_name (priv->current_background)); gtk_label_set_markup (GTK_LABEL (WID ("background-label")), markup); g_free (markup);