aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-04-17 21:11:02 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-04-17 21:11:02 +0800
commit261d7fcb4b47e3e2c8f62d2c5c7a8c297e320203 (patch)
treef0b01472699241284e3cf09887cad5d4e8c8a8dc
parent50d0c4d95f0ba238040961776b2c6600fb94d835 (diff)
downloadgsoc2013-empathy-261d7fcb4b47e3e2c8f62d2c5c7a8c297e320203.tar
gsoc2013-empathy-261d7fcb4b47e3e2c8f62d2c5c7a8c297e320203.tar.gz
gsoc2013-empathy-261d7fcb4b47e3e2c8f62d2c5c7a8c297e320203.tar.bz2
gsoc2013-empathy-261d7fcb4b47e3e2c8f62d2c5c7a8c297e320203.tar.lz
gsoc2013-empathy-261d7fcb4b47e3e2c8f62d2c5c7a8c297e320203.tar.xz
gsoc2013-empathy-261d7fcb4b47e3e2c8f62d2c5c7a8c297e320203.tar.zst
gsoc2013-empathy-261d7fcb4b47e3e2c8f62d2c5c7a8c297e320203.zip
Escape text in strings using Pango markup. Fixes bug #528529 (Frederic Peters).
svn path=/trunk/; revision=959
-rw-r--r--libempathy-gtk/empathy-accounts-dialog.c3
-rw-r--r--libempathy-gtk/empathy-spell-dialog.c2
-rw-r--r--libempathy-gtk/empathy-theme-boxes.c2
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 ("<big><b>%s</b></big>", mc_account_get_display_name (account));
+ text = g_markup_printf_escaped ("<big><b>%s</b></big>",
+ 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<b>%s</b>",
+ str = g_markup_printf_escaped ("%s:\n<b>%s</b>",
_("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 ("<b>%s</b>", name);
+ str = g_markup_printf_escaped ("<b>%s</b>", name);
label1 = g_object_new (GTK_TYPE_LABEL,
"label", str,