Skip to content

fix(animation): bind the drag icon as unowned - #17

Open
perlowja wants to merge 1 commit into
singularityos-lab:mainfrom
perlowja:pr/drag-lift-unowned-20261014
Open

perlowja wants to merge 1 commit into
singularityos-lab:mainfrom
perlowja:pr/drag-lift-unowned-20261014

Conversation

@perlowja

Copy link
Copy Markdown
Contributor

Gtk.DragIcon.get_for_drag is a named constructor in current gtk4.vapi, so the
call stops valac ("use new' operator"), and new` would unref an icon the
caller does not own. Bind the C function as unowned in gdkextra.vapi.
Verified: build fails on Debian forky without it, passes with it.
AI assistance: disclosed

Gtk.DragIcon.get_for_drag is a named constructor in the current GTK vapi, so a
plain call fails to compile and `new` would unref the drag icon the caller does
not own. Bind gtk_drag_icon_get_for_drag as the unowned function it is.

Assisted-by: DeepSeek:deepseek-flash
AI-Scope: bound gtk_drag_icon_get_for_drag as an unowned static function in gdkextra.vapi and called it in drag_lift.vala.
@perlowja

Copy link
Copy Markdown
Contributor Author

@mirkobrombin for review when you have a moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant