aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/gossip-new-chatroom-dialog.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-05-25 19:05:23 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-05-25 19:05:23 +0800
commitc946da8f9810d4f56c02f5147ff7265cb30e23cc (patch)
treeb20fc7de3cb5de8df4590ce505d5e8216dfc9d64 /libempathy-gtk/gossip-new-chatroom-dialog.c
parent1e3b55ae48930c42c700f29b7e7f37af4052b66f (diff)
downloadgsoc2013-empathy-c946da8f9810d4f56c02f5147ff7265cb30e23cc.tar
gsoc2013-empathy-c946da8f9810d4f56c02f5147ff7265cb30e23cc.tar.gz
gsoc2013-empathy-c946da8f9810d4f56c02f5147ff7265cb30e23cc.tar.bz2
gsoc2013-empathy-c946da8f9810d4f56c02f5147ff7265cb30e23cc.tar.lz
gsoc2013-empathy-c946da8f9810d4f56c02f5147ff7265cb30e23cc.tar.xz
gsoc2013-empathy-c946da8f9810d4f56c02f5147ff7265cb30e23cc.tar.zst
gsoc2013-empathy-c946da8f9810d4f56c02f5147ff7265cb30e23cc.zip
Do not use the server entry's value if it's hidden. Do not highlight
2007-05-25 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/gossip-new-chatroom-dialog.c: Do not use the server entry's value if it's hidden. * libempathy-gtk/gossip-contact-list-view.c:Do not highlight groups when adding them in the roster. * libempathy/empathy-tp-contact-list.c: DO not create new GossipContact object in presence/avatar/alias changed signal if we don't already know that contact from a contact list channel. This should fix DBus max pending calls limit reached in some cases. svn path=/trunk/; revision=93
Diffstat (limited to 'libempathy-gtk/gossip-new-chatroom-dialog.c')
-rw-r--r--libempathy-gtk/gossip-new-chatroom-dialog.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libempathy-gtk/gossip-new-chatroom-dialog.c b/libempathy-gtk/gossip-new-chatroom-dialog.c
index 33c6f723e..838f90a74 100644
--- a/libempathy-gtk/gossip-new-chatroom-dialog.c
+++ b/libempathy-gtk/gossip-new-chatroom-dialog.c
@@ -607,7 +607,7 @@ new_chatroom_dialog_join (GossipNewChatroomDialog *dialog)
TpConn *tp_conn;
GList *chatrooms, *l;
const gchar *room;
- const gchar *server;
+ const gchar *server = NULL;
gchar *room_name = NULL;
const gchar *room_names[2] = {NULL, NULL};
@@ -621,7 +621,9 @@ new_chatroom_dialog_join (GossipNewChatroomDialog *dialog)
}
room = gtk_entry_get_text (GTK_ENTRY (dialog->entry_room));
- server = gtk_entry_get_text (GTK_ENTRY (dialog->entry_server));
+ if (GTK_WIDGET_VISIBLE (dialog->hbox_server)) {
+ server = gtk_entry_get_text (GTK_ENTRY (dialog->entry_server));
+ }
account_chooser = GOSSIP_ACCOUNT_CHOOSER (dialog->account_chooser);
account = gossip_account_chooser_get_account (account_chooser);
mc = gossip_mission_control_new ();