[empathy] Don't display 'null' in accounts UI for unknown protocols
- From: Sjoerd Simons <sjoerds src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] Don't display 'null' in accounts UI for unknown protocols
- Date: Tue, 25 Aug 2009 14:09:33 +0000 (UTC)
commit f36e15d51645589811bb5ed1d973ec49d534e7eb
Author: Will Thompson <will thompson collabora co uk>
Date: Tue Aug 25 14:40:46 2009 +0100
Don't display 'null' in accounts UI for unknown protocols
src/empathy-accounts-dialog.c | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 982ebe7..6fa4849 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -1081,19 +1081,24 @@ accounts_dialog_button_create_clicked_cb (GtkWidget *button,
EmpathyAccountsDialog *dialog)
{
EmpathyAccountSettings *settings;
- gchar *str;
+ gchar *str;
+ const gchar *display_name;
TpConnectionManager *cm;
TpConnectionManagerProtocol *proto;
EmpathyAccountsDialogPriv *priv = GET_PRIV (dialog);
cm = empathy_protocol_chooser_dup_selected (
EMPATHY_PROTOCOL_CHOOSER (priv->combobox_protocol), &proto);
+ display_name = empathy_protocol_name_to_display_name (proto->name);
- /* Create account */
- /* To translator: %s is the protocol name */
- str = g_strdup_printf (_("New %s account"),
- empathy_protocol_name_to_display_name (proto->name));
+ if (display_name == NULL)
+ display_name = proto->name;
+ /* Create account */
+ /* To translator: %s is the name of the protocol, such as "Google Talk" or
+ * "Yahoo!
+ */
+ str = g_strdup_printf (_("New %s account"), display_name);
settings = empathy_account_settings_new (cm->name, proto->name, str);
g_free (str);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]