[epiphany] Do not auto-open adblock filters after download
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Do not auto-open adblock filters after download
- Date: Sun, 25 Mar 2018 21:28:03 +0000 (UTC)
commit 79fc518983166ad4e0a278893c4d1f9339219dfb
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sun Mar 25 16:26:06 2018 -0500
Do not auto-open adblock filters after download
Oooops!
https://bugzilla.gnome.org/show_bug.cgi?id=794646
embed/ephy-download.c | 4 ++++
embed/ephy-download.h | 3 ++-
embed/ephy-filters-manager.c | 1 +
3 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-download.c b/embed/ephy-download.c
index b98586d..d73d044 100644
--- a/embed/ephy-download.c
+++ b/embed/ephy-download.c
@@ -451,6 +451,10 @@ ephy_download_do_download_action (EphyDownload *download,
LOG ("ephy_download_do_download_action: none");
ret = TRUE;
break;
+ case EPHY_DOWNLOAD_ACTION_DO_NOT_AUTO_OPEN:
+ LOG ("ephy_download_do_download_action: do_not_auto_open");
+ ret = TRUE;
+ break;
default:
g_assert_not_reached ();
}
diff --git a/embed/ephy-download.h b/embed/ephy-download.h
index d243581..fff841b 100644
--- a/embed/ephy-download.h
+++ b/embed/ephy-download.h
@@ -33,7 +33,8 @@ typedef enum
{
EPHY_DOWNLOAD_ACTION_NONE,
EPHY_DOWNLOAD_ACTION_BROWSE_TO,
- EPHY_DOWNLOAD_ACTION_OPEN
+ EPHY_DOWNLOAD_ACTION_OPEN,
+ EPHY_DOWNLOAD_ACTION_DO_NOT_AUTO_OPEN
} EphyDownloadActionType;
EphyDownload *ephy_download_new (WebKitDownload *download);
diff --git a/embed/ephy-filters-manager.c b/embed/ephy-filters-manager.c
index 7e4cebc..9669704 100644
--- a/embed/ephy-filters-manager.c
+++ b/embed/ephy-filters-manager.c
@@ -148,6 +148,7 @@ start_retrieving_filter_file (EphyFiltersManager *manager,
char *path;
download = ephy_download_new_for_uri (filter_url);
+ ephy_download_set_action (download, EPHY_DOWNLOAD_ACTION_DO_NOT_AUTO_OPEN);
path = g_file_get_uri (destination);
ephy_download_set_destination_uri (download, path);
ephy_download_disable_desktop_notification (download);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]