Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b6570602
Commit
b6570602
authored
Nov 21, 2021
by
Po Lu
Browse files
Attach download-started signals to correct WebKit context
* src/xwidget.c (Fmake_xwidget): Use correct context.
parent
39f3604e
Pipeline
#14086
failed with stages
in 124 minutes and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/xwidget.c
src/xwidget.c
+4
-4
No files found.
src/xwidget.c
View file @
b6570602
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment