4 win
:add_signal("destroy", function (w
)
5 -- TODO Add some logic to check if this is the last window closing
10 layout
= widget
{type = "vbox"}
13 -- Create tabbed notebook to store webviews
14 nbook
= widget
{type = "notebook"}
15 layout
:pack_start(nbook
, true, true, 0)
17 -- Create "status bar"
18 sbar
= widget
{type = "textarea"}
19 layout
:pack_start(sbar
, false, true, 0)
22 uris
= { "http://github.com/mason-larobina/luakit" }
25 for _
, uri
in ipairs(uris
) do
26 view
= widget
{type = "webview"}
29 view
:add_signal("property::title", function (v
)
30 nbook
:set_title(v
, v
.title
)