diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2006-04-27 05:16:43 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-04-27 05:16:43 +0000 |
commit | 3a0c91edbe6c3fb976c5223c0de50e34464380aa (patch) | |
tree | 4c405e77eb82448c32d34d00081f73e8d78ea020 /gtk/gtkdnd.c | |
parent | 059292a765300c6c3e3a89ffbebe0967a31b9766 (diff) | |
download | gtk+-3a0c91edbe6c3fb976c5223c0de50e34464380aa.tar.gz |
fix late setting of dnd icons
Diffstat (limited to 'gtk/gtkdnd.c')
-rw-r--r-- | gtk/gtkdnd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c index 8c2d2abc76..0e11b9d767 100644 --- a/gtk/gtkdnd.c +++ b/gtk/gtkdnd.c @@ -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) |