Skip to content

Commit

Permalink
renderer/gtk: Simplify.
Browse files Browse the repository at this point in the history
It serves no purpose since the view is instantiated on window instantiation.
  • Loading branch information
aadcg committed Sep 10, 2024
1 parent 0969892 commit 6679794
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions source/renderer/gtk.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -1005,16 +1005,7 @@ with this scheme.")
"Make BUFFER with EXTRA-MODES.
See `finalize-buffer'."
(ffi-buffer-make buffer)
(finalize-buffer buffer :extra-modes extra-modes :no-hook-p no-hook-p)
(typecase buffer
(status-buffer
(%within-renderer-thread-async
(lambda ()
(with-slots (gtk-object) buffer
(unless gtk-object
(setf gtk-object (make-web-view (profile buffer) buffer))
(connect-signal-function buffer "decide-policy"
(make-decide-policy-handler buffer)))))))))
(finalize-buffer buffer :extra-modes extra-modes :no-hook-p no-hook-p))

(define-ffi-method ffi-buffer-url ((buffer gtk-buffer))
(quri:uri (webkit:webkit-web-view-uri (gtk-object buffer))))
Expand Down

0 comments on commit 6679794

Please sign in to comment.