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"
This commit is contained in:
fiaxh 2020-10-27 17:42:22 +01:00
parent 4f0ca55cf0
commit b685c7ab9e

View file

@ -40,6 +40,12 @@ public class ConversationView : Gtk.Overlay {
white_revealer.visible = false; 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);
}
} }
} }