Documentation and refinement

This commit is contained in:
2026-03-18 08:57:06 +01:00
parent 9bdc4ba894
commit ba2af5010b
7 changed files with 47 additions and 136 deletions

View File

@@ -57,9 +57,10 @@
[height #f]
[x #f]
[y #f]
[wv #f]
)
(define wv #f)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Administration
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -304,6 +305,9 @@
)
)
(define/public (set-title! title)
(webview-set-title! wv title))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Files / Directories
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -418,14 +422,16 @@
;; Create window
(write (list wv-context html-path event-handler parent))
(newline)
(set! wv (webview-create
(send wv-context context)
html-path
event-handler
#:parent (if (eq? parent #f)
#f
(get-field wv parent))))
(let ((wv-parent (if (eq? parent #f) #f (hash-ref (send parent info) 'wv))))
(set! wv (webview-create
(send wv-context context)
html-path
event-handler
#:parent wv-parent)))
;; Set title
(send this set-title! title)
;; Move and resize window to settings
(send this init-size)
)