After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 765641 - Widget provided to gtk_drag_set_icon_widget is destroyed on drag end
Widget provided to gtk_drag_set_icon_widget is destroyed on drag end
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
3.20.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-04-26 21:59 UTC by Andrew Comminos
Modified: 2016-04-27 23:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andrew Comminos 2016-04-26 21:59:41 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).
Comment 1 Matthias Clasen 2016-04-27 00:38:06 UTC
Pushed a fix for this, and make the testdnd2 testcase actually test it.