-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when using an action callback with its args #33
Comments
As far as The most straightforward solution to fix this confusion would be to have a As a sidenote, just compiling GTK4 by itself should be faster, since GTK3 takes |
As of commit I'll be closing this issue since it's kind of fixed. |
Reopening since the commit didn't actually work. I'll fix it in a minute. |
Fixed in b63160e. |
I'm trying the new menu features and wanted to register a callback with its args when I encountered a strange bug
When I click on the related menu button, it panics when trying to recast the object to the same(?) type:
The line that fail (glib.go:208) :
I added some output to see what's happening
that prints just before the crash.
The *gio.SimpleAction is nicely recognized and recasted, but there seem to be some mystery with the *glib.Variant
If needed, here's the C code I'm using as example
and my imports :
(damn 24 min to recompile the whole glib+gtk on my old i7 proc)
The text was updated successfully, but these errors were encountered: