[gnome-control-center] background: Escape wallpaper filename before display
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] background: Escape wallpaper filename before display
- Date: Thu, 14 Jun 2012 17:08:44 +0000 (UTC)
commit 46186a5f0227602ae0af1103ef1927926b794328
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 fc856e7..7eeca08 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 ("<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]