[eog] EogErrorMessageArea: Properly escape the error message markup
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] EogErrorMessageArea: Properly escape the error message markup
- Date: Sat, 10 Mar 2012 14:25:04 +0000 (UTC)
commit edb39d51119e6bc4447582d720023f1788421893
Author: Felix Riemann <friemann gnome org>
Date: Sat Mar 10 15:11:38 2012 +0100
EogErrorMessageArea: Properly escape the error message markup
Fixes broken error messages when printing messages containing markup
characters like '<' and '>'.
src/eog-error-message-area.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/eog-error-message-area.c b/src/eog-error-message-area.c
index f1d2ffb..29ac476 100644
--- a/src/eog-error-message-area.c
+++ b/src/eog-error-message-area.c
@@ -67,7 +67,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);
@@ -83,8 +83,8 @@ 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);
+ secondary_markup = g_markup_printf_escaped ("<small>%s</small>",
+ secondary_text);
secondary_label = gtk_label_new (secondary_markup);
g_free (secondary_markup);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]