[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master b657060 2/2: Attach download-started signals to correct WebKit co
From: |
Po Lu |
Subject: |
master b657060 2/2: Attach download-started signals to correct WebKit context |
Date: |
Sat, 20 Nov 2021 22:14:52 -0500 (EST) |
branch: master
commit b6570602cca3fffd8adcd05dadb1d64d2b1442bd
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Attach download-started signals to correct WebKit context
* src/xwidget.c (Fmake_xwidget): Use correct context.
---
src/xwidget.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/xwidget.c b/src/xwidget.c
index 35e3594..b0ff142 100644
--- a/src/xwidget.c
+++ b/src/xwidget.c
@@ -197,6 +197,10 @@ fails. */)
xw->widget_osr = webkit_web_view_new_with_context (ctx);
g_object_unref (ctx);
+ g_signal_connect (G_OBJECT (ctx),
+ "download-started",
+ G_CALLBACK (webkit_download_cb), xw);
+
webkit_web_view_load_uri (WEBKIT_WEB_VIEW (xw->widget_osr),
"about:blank");
/* webkitgtk uses GSubprocess which sets sigaction causing
@@ -252,10 +256,6 @@ fails. */)
"load-changed",
G_CALLBACK (webkit_view_load_changed_cb), xw);
- g_signal_connect (G_OBJECT (webkit_context),
- "download-started",
- G_CALLBACK (webkit_download_cb), xw);
-
g_signal_connect (G_OBJECT (xw->widget_osr),
"decide-policy",
G_CALLBACK