diff options
author | kotontrion <[email protected]> | 2024-10-10 11:28:11 +0200 |
---|---|---|
committer | kotontrion <[email protected]> | 2024-10-10 11:28:11 +0200 |
commit | 08f10ce3968166c55f5f2e3009415e4899e9a73b (patch) | |
tree | c6f914debe8f86e8ec7275f86a4181b20cf5f45a /core/src/widget/stack.vala | |
parent | 10447f5abcb28f3df1544f1732f82d538130b3c9 (diff) | |
parent | 075c7e34aa0fbdc07c86965ab5a2ae79b92d3fd3 (diff) |
Merge branch 'main' into feat/cava
Diffstat (limited to 'core/src/widget/stack.vala')
-rw-r--r-- | core/src/widget/stack.vala | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/core/src/widget/stack.vala b/core/src/widget/stack.vala index 00adf7f..02f9959 100644 --- a/core/src/widget/stack.vala +++ b/core/src/widget/stack.vala @@ -1,9 +1,4 @@ public class Astal.Stack : Gtk.Stack { - /** - * whether to implicity destroy previous children when setting them - */ - public bool no_implicit_destroy { get; set; default = false; } - public string shown { get { return visible_child_name; } set { visible_child_name = value; } @@ -16,11 +11,7 @@ public class Astal.Stack : Gtk.Stack { private void _set_children(List<weak Gtk.Widget> arr) { foreach(var child in get_children()) { - if (!no_implicit_destroy && arr.find(child).length() == 0) { - child.destroy(); - } else { - remove(child); - } + remove(child); } var i = 0; |