aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-account-assistant.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2009-08-28 20:42:42 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-08-31 23:40:15 +0800
commit75d28a9ddb083210eddf98e40b420c366fc1d805 (patch)
tree66de50bfe0650dcfdc7608f9ca952c36bf86139e /src/empathy-account-assistant.c
parent2a59b87c17d5bc66a72d3509247a3e2650559a67 (diff)
downloadgsoc2013-empathy-75d28a9ddb083210eddf98e40b420c366fc1d805.tar
gsoc2013-empathy-75d28a9ddb083210eddf98e40b420c366fc1d805.tar.gz
gsoc2013-empathy-75d28a9ddb083210eddf98e40b420c366fc1d805.tar.bz2
gsoc2013-empathy-75d28a9ddb083210eddf98e40b420c366fc1d805.tar.lz
gsoc2013-empathy-75d28a9ddb083210eddf98e40b420c366fc1d805.tar.xz
gsoc2013-empathy-75d28a9ddb083210eddf98e40b420c366fc1d805.tar.zst
gsoc2013-empathy-75d28a9ddb083210eddf98e40b420c366fc1d805.zip
Use the new APIs in the assistant and the dialog
Diffstat (limited to 'src/empathy-account-assistant.c')
-rw-r--r--src/empathy-account-assistant.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/empathy-account-assistant.c b/src/empathy-account-assistant.c
index c8379ae02..9c55b3654 100644
--- a/src/empathy-account-assistant.c
+++ b/src/empathy-account-assistant.c
@@ -305,11 +305,12 @@ account_assistant_protocol_changed_cb (GtkComboBox *chooser,
char *str;
GtkWidget *account_widget;
EmpathyAccountWidget *widget_object = NULL;
+ gboolean is_gtalk;
priv = GET_PRIV (self);
cm = empathy_protocol_chooser_dup_selected (
- EMPATHY_PROTOCOL_CHOOSER (chooser), &proto);
+ EMPATHY_PROTOCOL_CHOOSER (chooser), &proto, &is_gtalk);
if (cm == NULL || proto == NULL)
/* we are not ready yet */
@@ -317,10 +318,15 @@ account_assistant_protocol_changed_cb (GtkComboBox *chooser,
/* Create account */
/* To translator: %s is the protocol name */
- str = g_strdup_printf (_("New %s account"), proto->name);
+ str = g_strdup_printf (_("New %s account"),
+ empathy_protocol_name_to_display_name (
+ is_gtalk ? "gtalk" : proto->name));
settings = empathy_account_settings_new (cm->name, proto->name, str);
+ empathy_account_settings_set_icon_name_async (settings, "im-google-talk",
+ NULL, NULL);
+
if (priv->first_resp == RESPONSE_CREATE_ACCOUNT)
empathy_account_settings_set_boolean (settings, "register", TRUE);