aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <descalante@igalia.com>2010-03-03 08:15:39 +0800
committerDiego Escalante Urrelo <descalante@igalia.com>2010-03-16 07:29:58 +0800
commitbf651210c6201168d4aee664f13f3581fcdab0e2 (patch)
tree00c743783b64077e1f63b4c5bc8de0bba0753007 /embed
parent6e9c6949dd01796615439f39d2322fc57490782f (diff)
downloadgsoc2013-epiphany-bf651210c6201168d4aee664f13f3581fcdab0e2.tar
gsoc2013-epiphany-bf651210c6201168d4aee664f13f3581fcdab0e2.tar.gz
gsoc2013-epiphany-bf651210c6201168d4aee664f13f3581fcdab0e2.tar.bz2
gsoc2013-epiphany-bf651210c6201168d4aee664f13f3581fcdab0e2.tar.lz
gsoc2013-epiphany-bf651210c6201168d4aee664f13f3581fcdab0e2.tar.xz
gsoc2013-epiphany-bf651210c6201168d4aee664f13f3581fcdab0e2.tar.zst
gsoc2013-epiphany-bf651210c6201168d4aee664f13f3581fcdab0e2.zip
downloader-view: fix controls sensitivity
When there are no downloads left, the Pause/Cancel buttons should not be sensitive. Bug #611779
Diffstat (limited to 'embed')
-rw-r--r--embed/downloader-view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index b87b9b2fb..0ec321059 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);
}
}