summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorGeoff Lankow <geoff@darktrojan.net>2018-05-31 00:56:39 +0000
committerGeoff Lankow <geoff@darktrojan.net>2018-05-31 00:59:43 +0000
commit97b2edffa6f92c0867823f796d144de9f3712a8e (patch)
tree4715376cf01e82514b1f61a1ad537128cbca6fc9 /src/libnrtype
parentAdd center mirror symmetry butons for perfect symmetry and rotate copyes cleanup (diff)
downloadinkscape-97b2edffa6f92c0867823f796d144de9f3712a8e.tar.gz
inkscape-97b2edffa6f92c0867823f796d144de9f3712a8e.zip
Fix three more instances of incorrectly escaped markup
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/font-lister.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libnrtype/font-lister.cpp b/src/libnrtype/font-lister.cpp
index 47a260714..0c0c1c29c 100644
--- a/src/libnrtype/font-lister.cpp
+++ b/src/libnrtype/font-lister.cpp
@@ -2,6 +2,7 @@
#include <config.h>
#endif
+#include <glibmm/markup.h>
#include <glibmm/regex.h>
#include <gtkmm/cellrenderertext.h>
@@ -149,7 +150,7 @@ Glib::ustring FontLister::get_font_family_markup(Gtk::TreeIter const &iter)
Glib::ustring family = row[FontList.family];
bool onSystem = row[FontList.onSystem];
- Glib::ustring family_escaped = Glib::strescape( family );
+ Glib::ustring family_escaped = Glib::Markup::escape_text( family );
Glib::ustring markup;
if (!onSystem) {
@@ -172,11 +173,11 @@ Glib::ustring FontLister::get_font_family_markup(Gtk::TreeIter const &iter)
}
if (found) {
- markup += Glib::strescape (token);
+ markup += Glib::Markup::escape_text (token);
markup += ", ";
} else {
markup += "<span strikethrough=\"true\" strikethrough_color=\"red\">";
- markup += Glib::strescape (token);
+ markup += Glib::Markup::escape_text (token);
markup += "</span>";
markup += ", ";
}
@@ -1189,7 +1190,7 @@ void font_lister_style_cell_data_func (Gtk::CellRenderer *renderer, Gtk::TreeIte
Glib::ustring family = font_lister->get_font_family();
Glib::ustring style = row[font_lister->FontStyleList.cssStyle];
- Glib::ustring style_escaped = Glib::strescape( style );
+ Glib::ustring style_escaped = Glib::Markup::escape_text( style );
Glib::ustring font_desc = family + ", " + style;
Glib::ustring markup;