diff src/gtkconn.c @ 8252:10a41e67a800

[gaim-migrate @ 8975] I'm tired, so I probably broke something... 1. clean up warnings trying to put chats into the blist before the blist is there to put chats in 2. clean up warnings trying to mess with the buddy pounce menu before the buddy pounce menu is there to be messed with 3. clean up warnings with reconnecting and the progress bars in the connection dialog, i think 4. re-order things so the tab doesn't go grey if it's already red. this annoyed me. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 13 Feb 2004 07:48:19 +0000
parents 0a0501566843
children 031900a8420d
line wrap: on
line diff
--- a/src/gtkconn.c	Fri Feb 13 05:56:17 2004 +0000
+++ b/src/gtkconn.c	Fri Feb 13 07:48:19 2004 +0000
@@ -54,14 +54,13 @@
 
 static void kill_meter(struct signon_meter *meter, const char *text)
 {
-	if(!meter->progress)
+	if(gtk_progress_bar_get_fraction(GTK_PROGRESS_BAR(meter->progress)) == 1)
 		return;
 
 	gtk_widget_set_sensitive(meter->button, FALSE);
 	gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(meter->progress), 1);
 	gtk_label_set_text(GTK_LABEL(meter->status), text);
 	meter_win->active_count--;
-	meter->progress = NULL;
 
 	if (meter_win->active_count == 0) {
 		gtk_widget_destroy(meter_win->window);