diff options
author | Xan Lopez <xan@igalia.com> | 2013-03-14 04:06:57 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2013-03-14 04:06:57 +0800 |
commit | f890beb4d225a92f6abe6d06b43949c7b81b8534 (patch) | |
tree | d672e36968604d5db2b09f8fb5c9969edd26ce37 /src/window-commands.c | |
parent | 71bb5c11d290d5762d14a705aee825b6411e669c (diff) | |
download | gsoc2013-epiphany-f890beb4d225a92f6abe6d06b43949c7b81b8534.tar gsoc2013-epiphany-f890beb4d225a92f6abe6d06b43949c7b81b8534.tar.gz gsoc2013-epiphany-f890beb4d225a92f6abe6d06b43949c7b81b8534.tar.bz2 gsoc2013-epiphany-f890beb4d225a92f6abe6d06b43949c7b81b8534.tar.lz gsoc2013-epiphany-f890beb4d225a92f6abe6d06b43949c7b81b8534.tar.xz gsoc2013-epiphany-f890beb4d225a92f6abe6d06b43949c7b81b8534.tar.zst gsoc2013-epiphany-f890beb4d225a92f6abe6d06b43949c7b81b8534.zip |
window-commands: do not show favicon.ico downloads in the UI
These are internal to the web app creation process, the user should
not see them.
https://bugzilla.gnome.org/show_bug.cgi?id=695793
Diffstat (limited to 'src/window-commands.c')
-rw-r--r-- | src/window-commands.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/window-commands.c b/src/window-commands.c index 87f140e90..323453fc2 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -625,6 +625,12 @@ download_icon_and_set_image (EphyApplicationDialogData *data) #ifdef HAVE_WEBKIT2 download = webkit_web_context_download_uri (webkit_web_context_get_default (), data->icon_href); + /* We do not want this download to show up in the UI, so let's + * set 'ephy-download-set' to make Epiphany think this is + * already there. */ + /* FIXME: it's probably better to just do this in a clean way + * instead of using this workaround. */ + g_object_set_data (G_OBJECT (download), "ephy-download-set", GINT_TO_POINTER (TRUE)); #else request = webkit_network_request_new (data->icon_href); download = webkit_download_new (request); |