The checkbox is currently useless when the download is complete

This commit is contained in:
Pierre Pronchery 2011-03-11 02:02:17 +00:00
parent 1b16601599
commit 958ca1c04a

View File

@ -528,6 +528,7 @@ static void _http_data_complete(GConnHttpEventData * event,
return;
}
gtk_label_set_text(GTK_LABEL(download->status), _("Complete"));
gtk_widget_set_sensitive(download->check, FALSE);
gtk_button_set_label(GTK_BUTTON(download->cancel), GTK_STOCK_CLOSE);
}
@ -660,6 +661,7 @@ static gboolean _download_on_timeout(gpointer data)
break;
}
gtk_label_set_text(GTK_LABEL(d->status), _("Complete"));
gtk_widget_set_sensitive(d->check, FALSE);
gtk_button_set_label(GTK_BUTTON(d->cancel),
GTK_STOCK_CLOSE);
d->data_received = webkit_download_get_current_size(