diff options
author | Monsta <[email protected]> | 2015-01-06 13:44:12 +0300 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2015-03-15 22:45:54 +0100 |
commit | 6e2c6dfc8d2092a3125738075cdf16858091265b (patch) | |
tree | f4bb444cf74463799bf941a2823de70337c66d84 /src | |
parent | 821e4a1be8a16a59316c5cca1f200b667c0c93d1 (diff) | |
download | eom-6e2c6dfc8d2092a3125738075cdf16858091265b.tar.bz2 eom-6e2c6dfc8d2092a3125738075cdf16858091265b.tar.xz |
error message area: properly escape the error message markup
cherry-picked from here:
https://git.gnome.org/browse/eog/commit/?id=edb39d51119e6bc4447582d720023f1788421893
Diffstat (limited to 'src')
-rw-r--r-- | src/eom-error-message-area.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/eom-error-message-area.c b/src/eom-error-message-area.c index ea54316..3a4a2f4 100644 --- a/src/eom-error-message-area.c +++ b/src/eom-error-message-area.c @@ -60,7 +60,7 @@ set_message_area_text_and_icon (GtkInfoBar *message_area, gtk_widget_show (vbox); gtk_box_pack_start (GTK_BOX (hbox_content), vbox, TRUE, TRUE, 0); - primary_markup = g_strdup_printf ("<b>%s</b>", primary_text); + primary_markup = g_markup_printf_escaped ("<b>%s</b>", primary_text); primary_label = gtk_label_new (primary_markup); g_free (primary_markup); @@ -75,9 +75,9 @@ set_message_area_text_and_icon (GtkInfoBar *message_area, gtk_label_set_selectable (GTK_LABEL (primary_label), TRUE); - if (secondary_text != NULL) { - secondary_markup = g_strdup_printf ("<small>%s</small>", - secondary_text); + if (secondary_text != NULL) { + secondary_markup = g_markup_printf_escaped ("<small>%s</small>", + secondary_text); secondary_label = gtk_label_new (secondary_markup); g_free (secondary_markup); |