Skip to content

Commit

Permalink
shell: Escape bookmark title
Browse files Browse the repository at this point in the history
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
  • Loading branch information
José Aliste authored and Felipe Borges committed Oct 16, 2015
1 parent d81f36e commit e001400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/ev-sidebar-bookmarks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit e001400

Please sign in to comment.