diff options
author | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2013-06-26 21:29:31 +0800 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2013-06-26 21:29:31 +0800 |
commit | 5d36322c998cc4de8f6633205b85c1b854684e12 (patch) | |
tree | 1153846161deed2b691f07be5c2ec336e7e08963 /src | |
parent | 8e692d867aa5a7679b8123a6c3f32d06c6bb0d56 (diff) | |
download | gsoc2013-empathy-5d36322c998cc4de8f6633205b85c1b854684e12.tar.gz gsoc2013-empathy-5d36322c998cc4de8f6633205b85c1b854684e12.tar.zst gsoc2013-empathy-5d36322c998cc4de8f6633205b85c1b854684e12.zip |
AccountsDialog: Truncate too long account names
This prevent strings to be too big.
https://bugzilla.gnome.org/show_bug.cgi?id=702095
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-accounts-dialog.c | 6 |
1 files 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 ("<b>%s</b>", display_name); + text = g_markup_printf_escaped ("<b>%.50s</b>", 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, |