[evince] shell: Escape bookmark title



commit e0014008dc388708380560e4b7a10146866146c4
Author: José Aliste <jaliste src gnome org>
Date:   Tue Oct 13 12:06:53 2015 -0300

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/shell/ev-sidebar-bookmarks.c b/shell/ev-sidebar-bookmarks.c
index 33863b1..328aea5 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);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]