Skip to content
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

[FEATURE REQUEST] Allow to implement gio::Action #1636

Open
andy128k opened this issue Jan 20, 2025 · 1 comment · May be fixed by #1640
Open

[FEATURE REQUEST] Allow to implement gio::Action #1636

andy128k opened this issue Jan 20, 2025 · 1 comment · May be fixed by #1640
Labels
enhancement New feature or request

Comments

@andy128k
Copy link
Contributor

I'd like to be able to implement my own types of actions, similar to what Gio does itself with g_settings_action internally.

My use case is a proxy action which forwards to another action (g_settings_action) but:

  • has a different name (I'd like to preserve GSchema);
  • inverts boolean state (a setting is "hide-something" but user action which makes sense is rather "something-visible");
  • maps parameters to/from int32/string.
@andy128k andy128k added the enhancement New feature or request label Jan 20, 2025
@sdroege
Copy link
Member

sdroege commented Jan 21, 2025

That looks relatively easy to support, the interface doesn't contain any strange virtual methods. Do you want to give it a try?

@andy128k andy128k linked a pull request Jan 27, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants