Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/animation/drag_lift.vala
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ namespace Singularity.Animation {
if (!use_icon || item.get_width() <= 0) return;
var bin = build_icon(item);
_icon_bin = bin;
var icon = Gtk.DragIcon.get_for_drag(drag) as Gtk.DragIcon;
var icon = GdkExtra.drag_icon_for_drag(drag) as Gtk.DragIcon;
if (icon == null) return;
icon.child = bin;
double x = _press_x, y = _press_y;
Expand Down
3 changes: 3 additions & 0 deletions src/vapi/gdkextra.vapi
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ namespace GdkExtra {
[CCode (cname = "gdk_memory_texture_builder_build")]
public Gdk.Texture build ();
}

[CCode (cname = "gtk_drag_icon_get_for_drag")]
public static unowned Gtk.Widget drag_icon_for_drag (Gdk.Drag drag);
}
Loading