Sync few SimpleActions

I have few GTK widgets that using related actions in different hierarchy levels, these actions should be different as implementing different tasks.

Can I sync them to make interaction elements disabled on at least one action was disabled? Maybe some Group API available for these needs?

I mean without notify event listener as currently using it, not sure it’s correct.

Hi,

I don’t think there is something for that in Gtk/Gio.

You can track if any action in a group gets enabled/disabled with Gio.ActionGroup::action-enabled-changed .

If several GioActionGroups are involved, then you’ll have to write some kind of custom actions manager I suppose.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.