From 958ca1c04a62b20a9887eb8a8d1fbf8baa55204e Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Fri, 11 Mar 2011 02:02:17 +0000 Subject: [PATCH] The checkbox is currently useless when the download is complete --- src/download.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/download.c b/src/download.c index ca8ff6f..711f680 100644 --- a/src/download.c +++ b/src/download.c @@ -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(