diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-02-11 20:34:09 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-02-12 00:01:37 +0800 |
commit | d5c50301939772d752c7f8789a9b5ae81334fab3 (patch) | |
tree | 7070ff37419303cde3fdbd46e7201cef1d4fb624 /src/empathy-account-assistant.c | |
parent | 0d6a5a8caef60613531a96f5f81b55c811200ec8 (diff) | |
download | gsoc2013-empathy-d5c50301939772d752c7f8789a9b5ae81334fab3.tar gsoc2013-empathy-d5c50301939772d752c7f8789a9b5ae81334fab3.tar.gz gsoc2013-empathy-d5c50301939772d752c7f8789a9b5ae81334fab3.tar.bz2 gsoc2013-empathy-d5c50301939772d752c7f8789a9b5ae81334fab3.tar.lz gsoc2013-empathy-d5c50301939772d752c7f8789a9b5ae81334fab3.tar.xz gsoc2013-empathy-d5c50301939772d752c7f8789a9b5ae81334fab3.tar.zst gsoc2013-empathy-d5c50301939772d752c7f8789a9b5ae81334fab3.zip |
add is_facebook arg to empathy_protocol_chooser_dup_selected
So the assistant and accounts dialog can special case facebook accounts.
Diffstat (limited to 'src/empathy-account-assistant.c')
-rw-r--r-- | src/empathy-account-assistant.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/empathy-account-assistant.c b/src/empathy-account-assistant.c index 58ff1aa2c..99c505b36 100644 --- a/src/empathy-account-assistant.c +++ b/src/empathy-account-assistant.c @@ -390,28 +390,38 @@ account_assistant_protocol_changed_cb (GtkComboBox *chooser, char *str; GtkWidget *account_widget; EmpathyAccountWidget *widget_object = NULL; - gboolean is_gtalk; + gboolean is_gtalk, is_facebook; + const gchar *name; priv = GET_PRIV (self); cm = empathy_protocol_chooser_dup_selected ( - EMPATHY_PROTOCOL_CHOOSER (chooser), &proto, &is_gtalk); + EMPATHY_PROTOCOL_CHOOSER (chooser), &proto, &is_gtalk, &is_facebook); if (cm == NULL || proto == NULL) /* we are not ready yet */ return; /* Create account */ + if (is_gtalk) + name = "gtalk"; + else if (is_facebook) + name = "facebook"; + else + name = proto->name; + /* To translator: %s is the protocol name */ str = g_strdup_printf (_("New %s account"), - empathy_protocol_name_to_display_name ( - is_gtalk ? "gtalk" : proto->name)); + empathy_protocol_name_to_display_name (name)); settings = empathy_account_settings_new (cm->name, proto->name, str); if (is_gtalk) empathy_account_settings_set_icon_name_async (settings, "im-google-talk", NULL, NULL); + else if (is_facebook) + empathy_account_settings_set_icon_name_async (settings, "im-facebook", + NULL, NULL); if (priv->first_resp == RESPONSE_CREATE_ACCOUNT) empathy_account_settings_set_boolean (settings, "register", TRUE); |