diff options
author | Diego Escalante Urrelo <descalante@igalia.com> | 2010-03-03 08:15:39 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <descalante@igalia.com> | 2010-03-16 07:29:58 +0800 |
commit | bf651210c6201168d4aee664f13f3581fcdab0e2 (patch) | |
tree | 00c743783b64077e1f63b4c5bc8de0bba0753007 /embed | |
parent | 6e9c6949dd01796615439f39d2322fc57490782f (diff) | |
download | gsoc2013-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.c | 3 |
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); } } |