Commit 3a0c91ed authored by Matthias Clasen's avatar Matthias Clasen
Browse files

fix late setting of dnd icons

parent 059292a7
2006-04-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkdnd.c (gtk_drag_set_icon_window): Handle the case
of being called after the drag is cancelled. (#339224,
Benjamin Otte)
* gdk/x11/gdkscreen-x11.c (_gdk_x11_screen_process_owner_change):
Use XFixes only if it is available. (#339839, Marko Anastasov)
......
2006-04-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkdnd.c (gtk_drag_set_icon_window): Handle the case
of being called after the drag is cancelled. (#339224,
Benjamin Otte)
* gdk/x11/gdkscreen-x11.c (_gdk_x11_screen_process_owner_change):
Use XFixes only if it is available. (#339839, Marko Anastasov)
......
......@@ -2849,6 +2849,13 @@ gtk_drag_set_icon_window (GdkDragContext *context,
GtkDragSourceInfo *info;
info = gtk_drag_get_source_info (context, FALSE);
if (info == NULL)
{
if (destroy_on_release)
gtk_widget_destroy (widget);
return;
}
gtk_drag_remove_icon (info);
if (widget)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment