From e0014008dc388708380560e4b7a10146866146c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Aliste?= Date: Tue, 13 Oct 2015 12:06:53 -0300 Subject: [PATCH] shell: Escape bookmark title Since we are using a GMarkup rendered for the title, we need to escape text so characters like & will be correctly rendered by the TextView. https://bugzilla.gnome.org/show_bug.cgi?id=663019 --- shell/ev-sidebar-bookmarks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/ev-sidebar-bookmarks.c b/shell/ev-sidebar-bookmarks.c index 33863b16..328aea54 100644 --- a/shell/ev-sidebar-bookmarks.c +++ b/shell/ev-sidebar-bookmarks.c @@ -259,7 +259,7 @@ ev_sidebar_bookmarks_bookmark_renamed (GtkCellRendererText *renderer, gtk_tree_path_free (path); bm.page = page; - bm.title = g_strdup (new_text); + bm.title = g_markup_escape_text (new_text, -1); ev_bookmarks_update (priv->bookmarks, &bm); }