How to get detailed_name from action object?

I want to make application widget encapsulated, by passing there action object created before as method argument, then extract it “detailed_name” instead of use win.action1 or win.action2 strings.

But I see only get_name API

is it possible to get action group also from the object?

Hi,

No, the Gio.Action object itself doesn’t know which group it is attached to.

1 Like

Thanks for reply

Just wonder there is no way to access action using object not string as created before… Or that’s possible?

I’m using ugly sprintf("win.%s", action->get_name()) instead of assign object directly as the argument.