mirror of
https://github.com/zoriya/astal.git
synced 2026-05-28 16:33:47 +00:00
fix: box and stack children setter
This commit is contained in:
@@ -42,9 +42,9 @@ public class Box : Gtk.Box {
|
||||
|
||||
private void _set_children(List<weak Gtk.Widget> arr) {
|
||||
foreach(var child in get_children()) {
|
||||
if (no_implicit_destroy)
|
||||
remove(child);
|
||||
else if (arr.find(child).length() == 0)
|
||||
remove(child);
|
||||
|
||||
if (!no_implicit_destroy && arr.find(child).length() == 0)
|
||||
child.destroy();
|
||||
}
|
||||
|
||||
|
||||
@@ -16,9 +16,9 @@ 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)
|
||||
remove(child);
|
||||
else if (arr.find(child).length() == 0)
|
||||
remove(child);
|
||||
|
||||
if (!no_implicit_destroy && arr.find(child).length() == 0)
|
||||
child.destroy();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user