diff options
Diffstat (limited to 'src/xwidget.c')
| -rw-r--r-- | src/xwidget.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/xwidget.c b/src/xwidget.c index a67dc0ecf4d..c7f0594728c 100644 --- a/src/xwidget.c +++ b/src/xwidget.c | |||
| @@ -392,8 +392,7 @@ webkit_javascript_finished_cb (GObject *webview, | |||
| 392 | /* FIXME: This might lead to disaster if LISP_CALLBACK’s object | 392 | /* FIXME: This might lead to disaster if LISP_CALLBACK’s object |
| 393 | was garbage collected before now. See the FIXME in | 393 | was garbage collected before now. See the FIXME in |
| 394 | Fxwidget_webkit_execute_script. */ | 394 | Fxwidget_webkit_execute_script. */ |
| 395 | store_xwidget_js_callback_event (xw, XIL ((intptr_t) lisp_callback), | 395 | store_xwidget_js_callback_event (xw, XPL (lisp_callback), lisp_value); |
| 396 | lisp_value); | ||
| 397 | } | 396 | } |
| 398 | 397 | ||
| 399 | 398 | ||
| @@ -723,7 +722,7 @@ argument procedure FUN.*/) | |||
| 723 | /* FIXME: This hack might lead to disaster if FUN is garbage | 722 | /* FIXME: This hack might lead to disaster if FUN is garbage |
| 724 | collected before store_xwidget_js_callback_event makes it visible | 723 | collected before store_xwidget_js_callback_event makes it visible |
| 725 | to Lisp again. See the FIXME in webkit_javascript_finished_cb. */ | 724 | to Lisp again. See the FIXME in webkit_javascript_finished_cb. */ |
| 726 | gpointer callback_arg = (gpointer) (intptr_t) XLI (fun); | 725 | gpointer callback_arg = XLP (fun); |
| 727 | 726 | ||
| 728 | /* JavaScript execution happens asynchronously. If an elisp | 727 | /* JavaScript execution happens asynchronously. If an elisp |
| 729 | callback function is provided we pass it to the C callback | 728 | callback function is provided we pass it to the C callback |