From d203255ec20bb6e3b2917dd4aee53dee3a090137 Mon Sep 17 00:00:00 2001 From: Aylur Date: Wed, 11 Sep 2024 22:39:15 +0000 Subject: add: stack widget --- core/lua/astal/widget.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'core/lua/astal/widget.lua') diff --git a/core/lua/astal/widget.lua b/core/lua/astal/widget.lua index e2bd612..23b045f 100644 --- a/core/lua/astal/widget.lua +++ b/core/lua/astal/widget.lua @@ -62,9 +62,11 @@ local function set_children(parent, children) end end - -- FIXME: add rest of the edge cases like Stack + -- TODO: add more container types if Astal.Box:is_type_of(parent) then parent:set_children(children) + elseif Astal.Stack:is_type_of(parent) then + parent:set_children(children) elseif Astal.CenterBox:is_type_of(parent) then parent.start_widget = children[1] parent.center_widget = children[2] @@ -223,7 +225,7 @@ local Widget = { Revealer = astalify(Gtk.Revealer), Scrollable = astalify(Astal.Scrollable), Slider = astalify(Astal.Slider), - -- TODO: Stack + Stack = astalify(Astal.Stack), Switch = astalify(Gtk.Switch), Window = astalify(Astal.Window), } -- cgit v1.2.3