GNOME Bugzilla – Bug 765641
Widget provided to gtk_drag_set_icon_widget is destroyed on drag end
Last modified: 2016-04-27 23:11:58 UTC
The documentation for gtk_drag_set_icon_widget explicitly states that the widget provided will not be destroyed (https://developer.gnome.org/gtk3/stable/gtk3-Drag-and-Drop.html#gtk-drag-set-icon-widget). However, as of commit 5bb12474d975ee4b790c56e907e4e627120955a0, the widget is destroyed as a child of the icon_window in gtk_drag_source_info_destroy (as when a GtkContainer is destroyed, its children are destroyed as well).
Pushed a fix for this, and make the testdnd2 testcase actually test it.
Thanks! https://git.gnome.org/browse/gtk+/commit/?id=c27c4e2048acb630feb24c31288f802345e99f4c https://git.gnome.org/browse/gtk+/commit/?id=e0e114fddb8a244ae9df2fe5732828504dd79b80