dnd: Add another assertion

Assert that gdk_drop_finish() is called after the
drop is performed.
This commit is contained in:
Matthias Clasen 2021-06-19 07:49:04 -07:00
parent 13a2db2238
commit c8ad4d5deb

View File

@ -294,8 +294,11 @@ gdk_drop_finalize (GObject *object)
/* someone forgot to send a LEAVE signal */
g_warn_if_fail (!priv->entered);
/* Should we emit finish() here if necessary?
* For now that's the backends' job */
* For now that's the backends' job
*/
g_warn_if_fail (priv->state != GDK_DROP_STATE_DROPPING);
g_clear_object (&priv->device);
g_clear_object (&priv->drag);