aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/global_search.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2021-02-10 18:32:39 -0600
committerfiaxh <git@lightrise.org>2021-02-10 18:32:39 -0600
commit0626bad8e9c2f7dfd4d8eccc86ec1e8bec6c7308 (patch)
tree8d0d550dc8b07ae05c30dce279243b00dd77b4b6 /main/src/ui/global_search.vala
parentad031ee33366aefc003ed3cac3a74079d963bfe9 (diff)
downloaddino-0626bad8e9c2f7dfd4d8eccc86ec1e8bec6c7308.tar.gz
dino-0626bad8e9c2f7dfd4d8eccc86ec1e8bec6c7308.zip
Reduce use of Widget.destroy()
On non-toplevel windows, use Container.remove() instead of Widget.destroy() Needed for migration to GTK4 https://developer.gnome.org/gtk4/unstable/gtk-migrating-3-to-4.html#id-1.7.4.3.17
Diffstat (limited to 'main/src/ui/global_search.vala')
-rw-r--r--main/src/ui/global_search.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/ui/global_search.vala b/main/src/ui/global_search.vala
index 27ffb9d9..c64845e4 100644
--- a/main/src/ui/global_search.vala
+++ b/main/src/ui/global_search.vala
@@ -118,7 +118,7 @@ public class GlobalSearch : Overlay {
}
private void clear_search() {
- results_box.@foreach((widget) => { widget.destroy(); });
+ results_box.@foreach((widget) => { results_box.remove(widget); });
loaded_results = 0;
}