From 91020b05a3107e4ae51d7aa33dc0bebe5b668e6d Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 23 Apr 2010 11:20:50 +0200 Subject: Bug #360461 - Avoid markup in translatable messages --- capplet/settings/mail-account-view.c | 13 ++++++++++--- capplet/settings/mail-settings-view.c | 5 ++++- 2 files changed, 14 insertions(+), 4 deletions(-) (limited to 'capplet/settings') diff --git a/capplet/settings/mail-account-view.c b/capplet/settings/mail-account-view.c index 8c488af5b4..6e2299b308 100644 --- a/capplet/settings/mail-account-view.c +++ b/capplet/settings/mail-account-view.c @@ -169,6 +169,7 @@ create_review (MailAccountView *view) gchar *uri; gchar *enc; CamelURL *url; + gchar *buff; uri = (gchar *)e_account_get_string(em_account_editor_get_modified_account(view->edit), E_ACCOUNT_SOURCE_URL); if (!uri || (url = camel_url_new(uri, NULL)) == NULL) @@ -178,7 +179,9 @@ create_review (MailAccountView *view) gtk_table_set_row_spacings ((GtkTable *)table, 4); label = gtk_label_new (NULL); - gtk_label_set_markup ((GtkLabel *)label, _("Personal details:")); + buff = g_strconcat ("", _("Personal details:"), "", NULL); + gtk_label_set_markup ((GtkLabel *)label, buff); + g_free (buff); gtk_widget_show (label); PACK_BOXF(label) gtk_table_attach ((GtkTable *)table, box, 0, 1, 0, 1, GTK_EXPAND|GTK_FILL, GTK_SHRINK, 10, 3); @@ -202,7 +205,9 @@ create_review (MailAccountView *view) gtk_table_attach ((GtkTable *)table, box, 1, 2, 2, 3, GTK_EXPAND|GTK_FILL, GTK_SHRINK, 10, 3); label = gtk_label_new (NULL); - gtk_label_set_markup ((GtkLabel *)label, _("Receiving details:")); + buff = g_strconcat ("", _("Receiving details:"), "", NULL); + gtk_label_set_markup ((GtkLabel *)label, buff); + g_free (buff); gtk_widget_show (label); PACK_BOXF(label); gtk_table_attach ((GtkTable *)table, box, 0, 1, 3, 4, GTK_EXPAND|GTK_FILL, GTK_SHRINK, 10, 3); @@ -250,7 +255,9 @@ create_review (MailAccountView *view) return NULL; label = gtk_label_new (NULL); - gtk_label_set_markup ((GtkLabel *)label, _("Sending details:")); + buff = g_strconcat ("", _("Sending details:"), "", NULL); + gtk_label_set_markup ((GtkLabel *)label, buff); + g_free (buff); gtk_widget_show (label); PACK_BOXF(label); gtk_table_attach ((GtkTable *)table, box, 0, 1, 8, 9, GTK_EXPAND|GTK_FILL, GTK_SHRINK, 10, 3); diff --git a/capplet/settings/mail-settings-view.c b/capplet/settings/mail-settings-view.c index ee5858c893..25a87cfbd4 100644 --- a/capplet/settings/mail-settings-view.c +++ b/capplet/settings/mail-settings-view.c @@ -176,11 +176,14 @@ msv_regen_view (MailSettingsView *acview) EAccountList *accounts = acview->priv->accounts; EIterator *node; GtkWidget *box, *label; + gchar *buff; gtk_container_foreach((GtkContainer *)acview->priv->box, (GtkCallback)gtk_widget_destroy, NULL); label = gtk_label_new (NULL); - gtk_label_set_markup ((GtkLabel *)label, _("Account management")); + buff = g_strconcat ("", _("Account management"), "", NULL); + gtk_label_set_markup ((GtkLabel *)label, buff); + g_free (buff); PACK_BOX(label,12); node = e_list_get_iterator ((EList *) accounts); -- cgit