diff options
author | fiaxh <git@lightrise.org> | 2021-02-10 18:32:39 -0600 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2021-02-10 18:32:39 -0600 |
commit | 0626bad8e9c2f7dfd4d8eccc86ec1e8bec6c7308 (patch) | |
tree | 8d0d550dc8b07ae05c30dce279243b00dd77b4b6 /main/src/ui/conversation_view.vala | |
parent | ad031ee33366aefc003ed3cac3a74079d963bfe9 (diff) | |
download | dino-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/conversation_view.vala')
-rw-r--r-- | main/src/ui/conversation_view.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/ui/conversation_view.vala b/main/src/ui/conversation_view.vala index 2b93e36d..53f1c4c8 100644 --- a/main/src/ui/conversation_view.vala +++ b/main/src/ui/conversation_view.vala @@ -29,7 +29,7 @@ public class ConversationView : Gtk.Overlay { white_revealer.visible = true; white_revealer.reveal_child = true; widget.destroy.connect(() => { - revealer.destroy(); + revealer.destroy(); // GTK4: this.remove_overlay(revealer); white_revealer.reveal_child = false; chat_input.do_focus(); }); |