Closed LordYuuma closed 2 years ago
One of the differences between your C and Scheme examples is adding the action to the action map. By inserting
(add-action app action)
after your (connect action ...
line, it seems to work as far as I can tell.
Thanks, that indeed does the trick. Now for my personal use-case, I only need to find out how to make that string nullable, but that appears to be a problem with both the C and Scheme versions, so not a bug in Guile-GI afaict.
For context, old Gtk menus have been deprecated in favor of
GMenuModel
et al. In order to make these MenuModels work, some glue is needed in the form ofGAction
s. However, Guile-GI seems to handle even relatively simple actions wrongly; the following MWE is perhaps overkill for a "Hello world", but aims to demonstrate that (at least string-typed) actions do not make the button clickable.