Commit 78b427c9 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

dragsource: Actually use the paintable

We were just ignoring a paintable provided by
gtk_drag_source_set_icon().
parent aec0a49e
......@@ -454,6 +454,15 @@ gtk_drag_source_ensure_icon (GtkDragSource *self,
if (gtk_drag_icon_get_child (GTK_DRAG_ICON (icon)))
return;
if (self->paintable)
{
gtk_drag_icon_set_from_paintable (drag,
self->paintable,
self->hot_x,
self->hot_y);
return;
}
gdk_drag_set_hotspot (drag, -2, -2);
provider = gdk_drag_get_content (drag);
......
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