src/gtkconn.c

changeset 8252
15c6f400498a
parent 8190
405e176d3822
child 8326
3a9112dbecea
--- 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);

mercurial