get_action doesn't work with actions with hyphens
Because the get_action
macro works with an ident
, hyphens are not allowed in the action name. This goes against the GTK convention of hyphenated names in actions, signal and properties.
Taking in an expr
like action
would make it work. It would also be a more consistent API by providing a string literal in both cases.