]> git.0d.be Git - empathy.git/commitdiff
set the server field of Google Talk account
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 4 Mar 2010 17:38:24 +0000 (18:38 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 4 Mar 2010 17:56:10 +0000 (18:56 +0100)
This should solve connection issue with buggy router (#601089).

src/empathy-account-assistant.c
src/empathy-accounts-dialog.c

index 089b11f646c900381fc0f5826c9aead4c1783d41..e5c5e80c2ba60e08f7715c2520911c41a48d73fe 100644 (file)
@@ -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);
index 6999d59f1ce0cb8fc2348fa5fa3d66c57f8b1f2c..5162e0b8e88077d9031d8a6ebdde66823b8739cf 100644 (file)
@@ -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);