aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/gossip-account-widget-jabber.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-05-24 07:01:46 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-05-24 07:01:46 +0800
commit726dec7bfdafeae5d1cbaf00149aa0659ce589a4 (patch)
treec69bb33a1a7c50dddc37cf1be09b26ba128bcf06 /libempathy-gtk/gossip-account-widget-jabber.c
parenta7b98a1b882d17da63c9165042282db78aff508b (diff)
downloadgsoc2013-empathy-726dec7bfdafeae5d1cbaf00149aa0659ce589a4.tar
gsoc2013-empathy-726dec7bfdafeae5d1cbaf00149aa0659ce589a4.tar.gz
gsoc2013-empathy-726dec7bfdafeae5d1cbaf00149aa0659ce589a4.tar.bz2
gsoc2013-empathy-726dec7bfdafeae5d1cbaf00149aa0659ce589a4.tar.lz
gsoc2013-empathy-726dec7bfdafeae5d1cbaf00149aa0659ce589a4.tar.xz
gsoc2013-empathy-726dec7bfdafeae5d1cbaf00149aa0659ce589a4.tar.zst
gsoc2013-empathy-726dec7bfdafeae5d1cbaf00149aa0659ce589a4.zip
New objects: GossipAccountChooser and GossipNewChatroom, we can now join
2007-05-24 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/gossip-account-chooser.c: * libempathy-gtk/gossip-new-chatroom-dialog.c: * libempathy-gtk/gossip-account-widget-jabber.c: * libempathy-gtk/gossip-account-chooser.h: * libempathy-gtk/gossip-new-chatroom-dialog.h: * libempathy-gtk/gossip-group-chat.c: * libempathy-gtk/empathy-main-window.c: * libempathy-gtk/gossip-new-chatroom-dialog.glade: * libempathy-gtk/gossip-account-widget-jabber.glade: * libempathy-gtk/Makefile.am: * libempathy/empathy-tp-chatroom.c: * data/gtalk.profile: * data/jabber.profile: * data/salut.profile: * data/Makefile.am: * data/empathy.desktop.in.in: * data/msn.profile: * data/irc.profile: New objects: GossipAccountChooser and GossipNewChatroom, we can now join any chatroom. Adding IRC profile. svn path=/trunk/; revision=89
Diffstat (limited to 'libempathy-gtk/gossip-account-widget-jabber.c')
-rw-r--r--libempathy-gtk/gossip-account-widget-jabber.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libempathy-gtk/gossip-account-widget-jabber.c b/libempathy-gtk/gossip-account-widget-jabber.c
index 8282777bd..e7334b4b5 100644
--- a/libempathy-gtk/gossip-account-widget-jabber.c
+++ b/libempathy-gtk/gossip-account-widget-jabber.c
@@ -30,6 +30,8 @@
#include <gtk/gtk.h>
#include <glade/glade.h>
+#include <libmissioncontrol/mc-profile.h>
+
#include <libempathy/gossip-utils.h>
#include "gossip-account-widget-jabber.h"
@@ -187,6 +189,18 @@ account_widget_jabber_setup (GossipAccountWidgetJabber *settings)
mc_account_get_param_string (settings->account, "password", &password);
mc_account_get_param_boolean (settings->account, "old-ssl", &old_ssl);
+ if (!id) {
+ McProfile *profile;
+ const gchar *server;
+
+ profile = mc_account_get_profile (settings->account);
+ server = mc_profile_get_default_account_domain (profile);
+ if (server) {
+ id = g_strconcat ("user@", server, NULL);
+ }
+ g_object_unref (profile);
+ }
+
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (settings->checkbutton_ssl), old_ssl);
gtk_entry_set_text (GTK_ENTRY (settings->entry_id), id ? id : "");
gtk_entry_set_text (GTK_ENTRY (settings->entry_password), password ? password : "");