dragsource: Actually use the paintable
We were just ignoring a paintable provided by gtk_drag_source_set_icon().
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user