I have some SimpleAction already assigned to win, thoughts make new group for widget and append there same SimpleAction reference (to manage namespace e.g. widget.action_name locally as this implementation following encapsulation of parent).
Is this correct behavior or I can use only one group for one action?
Asking because have following notice, maybe because of answer is no:
Broken accounting of active state for widget 0x55c017f17350(GtkPopoverMenu)
It’s theoretically possible to assign a SimpleAction to several groups, but I don’t really see why it could be useful…
If the behavior is the same as the parent, it’s pointless. And if you need a different behavior for the parent, then better create another action, it would be cleaner.
The broken accounting warning is sometimes raised by Popovers, that’s unrelated to the actions.
Thoughts about multi-group, because my class methods work with SimpleAction objects in arguments, not name strings. I’m trying to make application members encapsulated,
I won’t use namespaces like win.action or parent.action in children members because child know nothing about it parent, but I must provide full detailed name there (by GTK API).
Maybe I should just create some wrapper for my conception, that includes group for action, then I can pass this extended member as action object without creating new local groups.
Thanks about broken accounting info, I think same, it’s could not be related…
Seems it work, but only when SimpleActionGroup connected to application Window (using insert_action_group), not any other Widget like Box etc. Otherwise group.action will no work, I don’t know why, but for a note.