changeset 15289:ccb2c1401b6d

[gaim-migrate @ 18078] committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 05 Jan 2007 18:25:06 +0000
parents 8b72da628537
children fbc9a92547d8
files gtk/gtkroomlist.c
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/gtkroomlist.c	Fri Jan 05 17:20:42 2007 +0000
+++ b/gtk/gtkroomlist.c	Fri Jan 05 18:25:06 2007 +0000
@@ -129,8 +129,15 @@
 
 	gtk_container_add(GTK_CONTAINER(dialog->sw), rl->tree);
 
-	gtk_widget_set_sensitive(dialog->stop_button, TRUE);
-	gtk_widget_set_sensitive(dialog->list_button, FALSE);
+	/* some protocols (not bundled with libgaim) finish getting their
+	 * room list immediately */
+	if(gaim_roomlist_get_in_progress(dialog->roomlist)) {
+		gtk_widget_set_sensitive(dialog->stop_button, TRUE);
+		gtk_widget_set_sensitive(dialog->list_button, FALSE);
+	} else {
+		gtk_widget_set_sensitive(dialog->stop_button, FALSE);
+		gtk_widget_set_sensitive(dialog->list_button, TRUE);
+	}
 	gtk_widget_set_sensitive(dialog->add_button, FALSE);
 	gtk_widget_set_sensitive(dialog->join_button, FALSE);
 }