mirror of
https://github.com/zoriya/astal.git
synced 2026-05-31 01:25:32 +00:00
add: stack widget
This commit is contained in:
@@ -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),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user