background: Escape wallpaper filename before display

https://bugzilla.gnome.org/show_bug.cgi?id=673015
This commit is contained in:
Jon McCann 2012-03-28 15:10:32 -04:00 committed by Bastien Nocera
parent 38d693b1c8
commit 46186a5f02

View file

@ -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 ("<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);