From 0626bad8e9c2f7dfd4d8eccc86ec1e8bec6c7308 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Wed, 10 Feb 2021 18:32:39 -0600 Subject: 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 --- main/src/ui/occupant_menu/view.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/src/ui/occupant_menu') diff --git a/main/src/ui/occupant_menu/view.vala b/main/src/ui/occupant_menu/view.vala index 14955416..4675dca4 100644 --- a/main/src/ui/occupant_menu/view.vala +++ b/main/src/ui/occupant_menu/view.vala @@ -119,7 +119,7 @@ public class View : Popover { } - if (jid_menu != null) jid_menu.destroy(); + if (jid_menu != null) stack.remove(jid_menu); stack.add_named(outer_box, "menu"); stack.visible_child_name = "menu"; jid_menu = outer_box; -- cgit v1.2.3-70-g09d2