diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-shell.c | 4 | ||||
-rw-r--r-- | src/popup-commands.c | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c index a44c923dd..6afb29886 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -606,9 +606,7 @@ download_started_cb (WebKitWebContext *web_context, } window = gtk_application_get_active_window (GTK_APPLICATION (shell)); - - ed = ephy_download_new_for_download (download); - ephy_download_set_window (ed, GTK_WIDGET (window)); + ed = ephy_download_new_for_download (download, GTK_WINDOW (window)); } #endif diff --git a/src/popup-commands.c b/src/popup-commands.c index e010c2671..c9177886c 100644 --- a/src/popup-commands.c +++ b/src/popup-commands.c @@ -245,8 +245,7 @@ save_property_url (GtkAction *action, ephy_embed_event_get_property (event, property, &value); location = g_value_get_string (&value); - download = ephy_download_new_for_uri (location); - ephy_download_set_window (download, GTK_WIDGET (window)); + download = ephy_download_new_for_uri (location, GTK_WINDOW (window)); if (ask_dest) { @@ -348,8 +347,7 @@ popup_cmd_set_image_as_background (GtkAction *action, ephy_embed_event_get_property (event, "image-uri", &value); location = g_value_get_string (&value); - download = ephy_download_new_for_uri (location); - ephy_download_set_window (download, GTK_WIDGET (window)); + download = ephy_download_new_for_uri (location, GTK_WINDOW (window)); base = g_path_get_basename (location); base_converted = g_filename_from_utf8 (base, -1, NULL, NULL, NULL); @@ -459,7 +457,7 @@ save_temp_source (const char *address) if (dest == NULL) return; dest_uri = g_filename_to_uri (dest, NULL, NULL); - download = ephy_download_new_for_uri (address); + download = ephy_download_new_for_uri (address, NULL); ephy_download_set_destination_uri (download, dest_uri); g_signal_connect (download, "completed", |