From 5d36322c998cc4de8f6633205b85c1b854684e12 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 26 Jun 2013 15:29:31 +0200 Subject: AccountsDialog: Truncate too long account names This prevent strings to be too big. https://bugzilla.gnome.org/show_bug.cgi?id=702095 --- src/empathy-accounts-dialog.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index e2e63dc4a..a6a45f233 100644 --- a/src/empathy-accounts-dialog.c +++ b/src/empathy-accounts-dialog.c @@ -49,7 +49,7 @@ /* The primary text of the dialog shown to the user when he is about to lose * unsaved changes */ #define PENDING_CHANGES_QUESTION_PRIMARY_TEXT \ - _("There are unsaved modifications to your %s account.") + _("There are unsaved modifications to your %.50s account.") /* The primary text of the dialog shown to the user when he is about to lose * an unsaved new account */ #define UNSAVED_NEW_ACCOUNT_QUESTION_PRIMARY_TEXT \ @@ -182,7 +182,7 @@ accounts_dialog_update_name_label (EmpathyAccountsDialog *dialog, gchar *text; EmpathyAccountsDialogPriv *priv = GET_PRIV (dialog); - text = g_markup_printf_escaped ("%s", display_name); + text = g_markup_printf_escaped ("%.50s", display_name); gtk_label_set_markup (GTK_LABEL (priv->label_name), text); g_free (text); @@ -1249,7 +1249,7 @@ accounts_dialog_remove_account_iter (EmpathyAccountsDialog *dialog, } question_dialog_primary_text = g_strdup_printf ( - _("Do you want to remove %s from your computer?"), + _("Do you want to remove %.50s from your computer?"), tp_account_get_display_name (account)); accounts_dialog_show_question_dialog (dialog, question_dialog_primary_text, -- cgit v1.2.3