set window title according to document

phoen
Daniel Barlow 2022-02-05 12:35:28 +00:00
parent 4c94b2164b
commit bcf499a7d1
1 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,10 @@
(fn [self pspec c]
(if (= pspec.name "uri")
(url:set_text self.uri)
(and (= pspec.name "title")
(> (# self.title) 0))
(window:set_title
(.. self.title " - Just browsing"))
))
})
back (Gtk.Button {