28 lines
1.0 KiB
Diff
28 lines
1.0 KiB
Diff
|
From ae5b16f873869bce935cfaafad1964340f47e7d3 Mon Sep 17 00:00:00 2001
|
||
|
From: Jon McCann <jmccann@redhat.com>
|
||
|
Date: Wed, 28 Mar 2012 19:10:32 +0000
|
||
|
Subject: background: Escape wallpaper filename before display
|
||
|
|
||
|
https://bugzilla.gnome.org/show_bug.cgi?id=673015
|
||
|
---
|
||
|
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);
|
||
|
|
||
|
--
|
||
|
cgit v0.9.0.2
|