From b685c7ab9e9b7ee4551f49a7e50083f968f64245 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Tue, 27 Oct 2020 17:42:22 +0100 Subject: Fix GTK warning when closing Dino "Can't set a target list on a widget until you've called gtk_drag_dest_set() to make the widget into a drag destination" --- main/src/ui/conversation_view.vala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main/src/ui/conversation_view.vala b/main/src/ui/conversation_view.vala index 92c4fbb3..2b93e36d 100644 --- a/main/src/ui/conversation_view.vala +++ b/main/src/ui/conversation_view.vala @@ -40,6 +40,12 @@ public class ConversationView : Gtk.Overlay { white_revealer.visible = false; } } + + public override void dispose() { + // To prevent a warning when closing Dino + // "Can't set a target list on a widget until you've called gtk_drag_dest_set() to make the widget into a drag destination" + Gtk.drag_dest_unset(this); + } } } -- cgit v1.2.3-70-g09d2