From 261d7fcb4b47e3e2c8f62d2c5c7a8c297e320203 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Thu, 17 Apr 2008 13:11:02 +0000 Subject: Escape text in strings using Pango markup. Fixes bug #528529 (Frederic Peters). svn path=/trunk/; revision=959 --- libempathy-gtk/empathy-accounts-dialog.c | 3 ++- libempathy-gtk/empathy-spell-dialog.c | 2 +- libempathy-gtk/empathy-theme-boxes.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libempathy-gtk/empathy-accounts-dialog.c b/libempathy-gtk/empathy-accounts-dialog.c index be0f67a8e..b57766521 100644 --- a/libempathy-gtk/empathy-accounts-dialog.c +++ b/libempathy-gtk/empathy-accounts-dialog.c @@ -317,7 +317,8 @@ accounts_dialog_update_account (EmpathyAccountsDialog *dialog, gtk_widget_set_tooltip_text (dialog->image_type, mc_profile_get_display_name (profile)); - text = g_strdup_printf ("%s", mc_account_get_display_name (account)); + text = g_markup_printf_escaped ("%s", + mc_account_get_display_name (account)); gtk_label_set_markup (GTK_LABEL (dialog->label_name), text); g_free (text); } diff --git a/libempathy-gtk/empathy-spell-dialog.c b/libempathy-gtk/empathy-spell-dialog.c index 830cfd0fa..d7701d19c 100644 --- a/libempathy-gtk/empathy-spell-dialog.c +++ b/libempathy-gtk/empathy-spell-dialog.c @@ -261,7 +261,7 @@ empathy_spell_dialog_show (EmpathyChat *chat, g_object_unref (gui); - str = g_strdup_printf ("%s:\n%s", + str = g_markup_printf_escaped ("%s:\n%s", _("Suggestions for the word"), word); diff --git a/libempathy-gtk/empathy-theme-boxes.c b/libempathy-gtk/empathy-theme-boxes.c index 06c35cae8..94f7abaf9 100644 --- a/libempathy-gtk/empathy-theme-boxes.c +++ b/libempathy-gtk/empathy-theme-boxes.c @@ -590,7 +590,7 @@ theme_boxes_maybe_append_header (EmpathyTheme *theme, G_CALLBACK (table_size_allocate_cb), box, 0); - str = g_strdup_printf ("%s", name); + str = g_markup_printf_escaped ("%s", name); label1 = g_object_new (GTK_TYPE_LABEL, "label", str, -- cgit v1.2.3