diff options
author | Gabor Kelemen <kelemeng@gnome.hu> | 2010-09-11 06:32:59 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-09-11 06:32:59 +0800 |
commit | ff35bad1dec98abf76844fe661b6225b8ed4ba7b (patch) | |
tree | e8f0e6a98309ad35c6e2eb4f4d7d15fa164bf9fd | |
parent | a96676f44616b7d4debe98efdeee2c6f2be1d033 (diff) | |
download | gsoc2013-evolution-ff35bad1dec98abf76844fe661b6225b8ed4ba7b.tar gsoc2013-evolution-ff35bad1dec98abf76844fe661b6225b8ed4ba7b.tar.gz gsoc2013-evolution-ff35bad1dec98abf76844fe661b6225b8ed4ba7b.tar.bz2 gsoc2013-evolution-ff35bad1dec98abf76844fe661b6225b8ed4ba7b.tar.lz gsoc2013-evolution-ff35bad1dec98abf76844fe661b6225b8ed4ba7b.tar.xz gsoc2013-evolution-ff35bad1dec98abf76844fe661b6225b8ed4ba7b.tar.zst gsoc2013-evolution-ff35bad1dec98abf76844fe661b6225b8ed4ba7b.zip |
Bug 629253 - Remove unnecessary markup
-rw-r--r-- | capplet/settings/mail-account-view.c | 24 | ||||
-rw-r--r-- | capplet/settings/mail-settings-view.c | 2 |
2 files changed, 19 insertions, 7 deletions
diff --git a/capplet/settings/mail-account-view.c b/capplet/settings/mail-account-view.c index 7da2215f8d..4af8b09b18 100644 --- a/capplet/settings/mail-account-view.c +++ b/capplet/settings/mail-account-view.c @@ -461,7 +461,7 @@ create_review (MailAccountView *view) gtk_table_set_row_spacings ((GtkTable *)table, 4); label = gtk_label_new (NULL); - buff = g_strconcat ("<span size=\"large\" weight=\"bold\">", _("Personal details:"), "</span>", NULL); + buff = g_markup_printf_escaped ("<span size=\"large\" weight=\"bold\">%s</span>", _("Personal details:")); gtk_label_set_markup ((GtkLabel *)label, buff); g_free (buff); gtk_widget_show (label); @@ -487,13 +487,17 @@ create_review (MailAccountView *view) gtk_table_attach ((GtkTable *)table, box, 1, 2, 2, 3, GTK_EXPAND|GTK_FILL, GTK_SHRINK, INDENTATION, 0); label = gtk_label_new (NULL); - gtk_label_set_markup ((GtkLabel *)label, _("<span size=\"large\" weight=\"bold\">Details:</span>")); + buff = g_markup_printf_escaped ("<span size=\"large\" weight=\"bold\">%s</span>", _("Details:")); + 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, INDENTATION, 0); label = gtk_label_new (NULL); - gtk_label_set_markup ((GtkLabel *)label, _("<span size=\"large\" weight=\"bold\">Receiving</span>")); + buff = g_markup_printf_escaped ("<span size=\"large\" weight=\"bold\">%s</span>", _("Receiving")); + gtk_label_set_markup ((GtkLabel *)label, buff); + g_free (buff); gtk_widget_show (label); PACK_BOXF(label); gtk_table_attach ((GtkTable *)table, box, 1, 2, 3, 4, GTK_EXPAND|GTK_FILL, GTK_SHRINK, INDENTATION, 0); @@ -542,7 +546,9 @@ create_review (MailAccountView *view) return NULL; label = gtk_label_new (NULL); - gtk_label_set_markup ((GtkLabel *)label, _("<span size=\"large\" weight=\"bold\">Sending</span>")); + buff = g_markup_printf_escaped ("<span size=\"large\" weight=\"bold\">%s</span>", _("Sending")); + gtk_label_set_markup ((GtkLabel *)label, buff); + g_free (buff); gtk_widget_show (label); PACK_BOXF(label); gtk_table_attach ((GtkTable *)table, box, 2, 3, 3, 4, GTK_EXPAND|GTK_FILL, GTK_SHRINK, INDENTATION, 0); @@ -714,6 +720,7 @@ mav_next_pressed (GtkButton *button, MailAccountView *mav) g_strrstr(account->source->url, "googlemail"))) { /* Google accounts*/ GtkWidget *tmp; + gchar *buff; mav->priv->is_gmail = TRUE; mav->priv->gcontacts = gtk_check_button_new_with_label (_("Setup Google contacts with Evolution")); @@ -730,7 +737,9 @@ mav_next_pressed (GtkButton *button, MailAccountView *mav) gtk_widget_show (mav->priv->gmail_info_label); tmp = gtk_label_new (NULL); - gtk_label_set_markup ((GtkLabel *)tmp, _("<span size=\"large\" weight=\"bold\">Google account settings:</span>")); + buff = g_markup_printf_escaped ("<span size=\"large\" weight=\"bold\">%s</span>", _("Google account settings:")); + gtk_label_set_markup ((GtkLabel *)tmp, buff); + g_free (buff); gtk_widget_show(tmp); #define PACK_IN_BOX(wid,child,num) { GtkWidget *tbox; tbox = gtk_hbox_new (FALSE, 0); gtk_box_pack_start ((GtkBox *)tbox, child, FALSE, FALSE, num); gtk_widget_show (tbox); gtk_box_pack_start ((GtkBox *)wid, tbox, FALSE, FALSE, 0); } @@ -751,6 +760,7 @@ mav_next_pressed (GtkButton *button, MailAccountView *mav) GtkWidget *tmp; gchar *cal_name; GtkWidget *tmpbox; + gchar *buff; mav->priv->is_yahoo = TRUE; printf("Google account: %s\n", account->source->url); @@ -765,7 +775,9 @@ mav_next_pressed (GtkButton *button, MailAccountView *mav) gtk_widget_show (mav->priv->gmail_info_label); tmp = gtk_label_new (NULL); - gtk_label_set_markup ((GtkLabel *)tmp, _("<span size=\"large\" weight=\"bold\">Yahoo account settings:</span>")); + buff = g_markup_printf_escaped ("<span size=\"large\" weight=\"bold\">%s</span>", _("Yahoo account settings:")); + gtk_label_set_markup ((GtkLabel *)tmp, buff); + g_free (buff); gtk_widget_show(tmp); #define PACK_IN_BOX(wid,child,num) { GtkWidget *tbox; tbox = gtk_hbox_new (FALSE, 0); gtk_box_pack_start ((GtkBox *)tbox, child, FALSE, FALSE, num); gtk_widget_show (tbox); gtk_box_pack_start ((GtkBox *)wid, tbox, FALSE, FALSE, 0); } diff --git a/capplet/settings/mail-settings-view.c b/capplet/settings/mail-settings-view.c index 25a87cfbd4..aa19e6d4d1 100644 --- a/capplet/settings/mail-settings-view.c +++ b/capplet/settings/mail-settings-view.c @@ -181,7 +181,7 @@ msv_regen_view (MailSettingsView *acview) gtk_container_foreach((GtkContainer *)acview->priv->box, (GtkCallback)gtk_widget_destroy, NULL); label = gtk_label_new (NULL); - buff = g_strconcat ("<span size=\"large\" weight=\"bold\">", _("Account management"), "</span>", NULL); + buff = g_markup_printf_escaped ("<span size=\"large\" weight=\"bold\">%s</span>", _("Account management")); gtk_label_set_markup ((GtkLabel *)label, buff); g_free (buff); PACK_BOX(label,12); |