[epiphany] window-commands: do not show favicon.ico downloads in the UI



commit f890beb4d225a92f6abe6d06b43949c7b81b8534
Author: Xan Lopez <xan igalia com>
Date:   Wed Mar 13 21:06:57 2013 +0100

    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 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/window-commands.c b/src/window-commands.c
index 87f140e..323453f 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]