[epiphany] downloader-view: fix controls sensitivity



commit bf651210c6201168d4aee664f13f3581fcdab0e2
Author: Diego Escalante Urrelo <descalante igalia com>
Date:   Tue Mar 2 19:15:39 2010 -0500

    downloader-view: fix controls sensitivity
    
    When there are no downloads left, the Pause/Cancel buttons should not be
    sensitive.
    
    Bug #611779

 embed/downloader-view.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index b87b9b2..0ec3210 100644
--- a/embed/downloader-view.c
+++ b/embed/downloader-view.c
@@ -1003,9 +1003,10 @@ downloader_view_remove_download (DownloaderView *dv, WebKitDownload *download)
 	update_status_icon (dv);
 
 	/* Close the dialog if there are no more downloads */
-
 	if (!g_hash_table_size (dv->priv->downloads_hash))
 	{
+		gtk_widget_set_sensitive (dv->priv->abort_button, FALSE);
+		gtk_widget_set_sensitive (dv->priv->pause_button, FALSE);
 		g_object_unref (dv);
 	}
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]