]> git.0d.be Git - empathy.git/commitdiff
Do not try to guess the Jabber server from the jid, gabble does that for
authorXavier Claessens <xclaesse@gmail.com>
Thu, 2 Aug 2007 19:03:29 +0000 (19:03 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Thu, 2 Aug 2007 19:03:29 +0000 (19:03 +0000)
2007-08-02 Xavier Claessens  <xclaesse@gmail.com>

* libempathy-gtk/empathy-account-widget-jabber.c: Do not try to guess
the Jabber server from the jid, gabble does that for us.

svn path=/trunk/; revision=228

ChangeLog
libempathy-gtk/empathy-account-widget-jabber.c

index 8120ade2dd8d0e593a8b37757c92e310c654d737..213e057d398c0df15ee34b338c4c683d8b588ea2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-08-02 Xavier Claessens  <xclaesse@gmail.com>
+
+       * libempathy-gtk/empathy-account-widget-jabber.c: Do not try to guess
+       the Jabber server from the jid, gabble does that for us.
+
 2007-08-02 Xavier Claessens  <xclaesse@gmail.com>
 
        * doc/libempathy-gtk/tmpl/empathy-account-chooser.sgml:
index 947da4a0e0a40bfad2ce6e80801d321ef737b528..df6870b506b0e27b2e2af4198bb77498e1fbb87d 100644 (file)
@@ -100,29 +100,6 @@ account_widget_jabber_entry_focus_cb (GtkWidget                 *widget,
                g_free (value);
        } else {
                mc_account_set_param_string (settings->account, param, str);
-
-               if (widget == settings->entry_id) {
-                       McProfile   *profile;
-                       const gchar *profile_name;
-
-                       /* Try to guess the server if we are using the vanilla
-                        * jabber profile. We don't have to do that with
-                        * gtalk profile. */
-                       profile = mc_account_get_profile (settings->account);
-                       profile_name = mc_profile_get_unique_name (profile);
-                       if (strcmp (profile_name, "jabber") == 0) {
-                               gchar *server;
-
-                               server = strstr (str, "@");
-                               if (server != NULL) {
-                                       /* skip the leading @ */
-                                       server++;
-                                       gtk_entry_set_text (GTK_ENTRY (settings->entry_server), server);
-                                       mc_account_set_param_string (settings->account, "server", server);
-                               }
-                       }
-                       g_object_unref (profile);
-               }
        }
 
        return FALSE;