From 8ed26c6a506feec75e37cf285450a23ac7c8a689 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Fri, 4 Jan 2013 10:54:26 +0100 Subject: ephy-download: Make EphyDownload:window a construct only property It's always set right after the download object is created and it doesn't have any effect when it's set after the download has been added to the embed shell. This way we can make sure that when the download is added to the embed shell the parent window has already been set if there's any. --- src/ephy-shell.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/ephy-shell.c') 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 -- cgit v1.2.3