Skip to content

Commit

Permalink
GTK: Use final with-g-async-ready-callback.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ambrevar committed May 20, 2022
1 parent 56d2cb9 commit cf6c7df
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions source/renderer/gtk.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -1811,13 +1811,12 @@ custom (the specified proxy) and none."
(within-gtk-thread
(let* ((context (webkit:webkit-web-view-web-context (gtk-object buffer)))
(cookie-manager (webkit:webkit-web-context-get-cookie-manager context)))
;; TODO: Update upstream to export and fix `with-g-async-ready-callback'.
(webkit::with-g-async-ready-callback (callback
(declare (ignorable webkit::user-data webkit::source-object))
(calispel:! result-channel
(webkit:webkit-cookie-manager-get-accept-policy-finish
cookie-manager
webkit::result)))
(webkit:with-g-async-ready-callback (callback (lambda (source result user-data)
(declare (ignore source user-data))
(calispel:! result-channel
(webkit:webkit-cookie-manager-get-accept-policy-finish
cookie-manager
result))))
(webkit:webkit-cookie-manager-get-accept-policy
cookie-manager
(cffi:null-pointer)
Expand Down

0 comments on commit cf6c7df

Please sign in to comment.