From f890beb4d225a92f6abe6d06b43949c7b81b8534 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Wed, 13 Mar 2013 21:06:57 +0100 Subject: 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 --- src/window-commands.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/window-commands.c') 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); -- cgit v1.2.3