aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2020-10-27 17:42:22 +0100
committerfiaxh <git@lightrise.org>2020-10-27 17:56:28 +0100
commitb685c7ab9e9b7ee4551f49a7e50083f968f64245 (patch)
tree0645e1aa8903f205e2dcd634765432df5d72ce66
parent4f0ca55cf021b5daa4efb8036d31778a0d043b28 (diff)
downloaddino-b685c7ab9e9b7ee4551f49a7e50083f968f64245.tar.gz
dino-b685c7ab9e9b7ee4551f49a7e50083f968f64245.zip
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"
-rw-r--r--main/src/ui/conversation_view.vala6
1 files changed, 6 insertions, 0 deletions
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);
+ }
}
}