-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add stateful action with parameter #50
Comments
You didn't overlook anything, that was just not implemented! I will add your suggested method, unless you want to create a PR? |
I am not experienced with the GitHub workflow, sorry. I would be grateful if you could add it. The version I eventually settled on here refactors both stateless and stateful actions to handle parameters, with the non-parameter method forwarding to the parameter method in each case. Please feel free to use this code if you think it is a good approach:
|
Hello.
I couldn't find a way to add a stateful action with parameter to GActionMap out of the box.
The following does the trick getting the radio menu items to work, but requires a custom overload of add_stateful_action.
Perhaps there is something I have overlooked?
The text was updated successfully, but these errors were encountered: