Commit f79f1342 authored by Guillaume Desmottes's avatar Guillaume Desmottes

set the server field of Google Talk account

This should solve connection issue with buggy router (#601089).
parent 8dd1f0d5
......@@ -416,11 +416,19 @@ account_assistant_protocol_changed_cb (GtkComboBox *chooser,
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);
{
empathy_account_settings_set_icon_name_async (settings, "im-google-talk",
NULL, NULL);
/* We should not have to set the server but that may cause issue with
* buggy router. */
empathy_account_settings_set_string (settings, "server",
"talk.google.com");
}
else if (is_facebook)
empathy_account_settings_set_icon_name_async (settings, "im-facebook",
NULL, NULL);
{
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);
......
......@@ -583,11 +583,19 @@ accounts_dialog_setup_ui_to_add_account (EmpathyAccountsDialog *dialog)
g_free (str);
if (is_gtalk)
empathy_account_settings_set_icon_name_async (settings, "im-google-talk",
NULL, NULL);
{
empathy_account_settings_set_icon_name_async (settings, "im-google-talk",
NULL, NULL);
/* We should not have to set the server but that may cause issue with
* buggy router. */
empathy_account_settings_set_string (settings, "server",
"talk.google.com");
}
else if (is_facebook)
empathy_account_settings_set_icon_name_async (settings, "im-facebook",
NULL, NULL);
{
empathy_account_settings_set_icon_name_async (settings, "im-facebook",
NULL, NULL);
}
accounts_dialog_add (dialog, settings);
accounts_dialog_model_set_selected (dialog, settings);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment