Store group name in SimpleActionGroup gobject

Is it possible to store group name string, like SimpleAction.name to use it later as the detailed name, etc. Just to not create new field in struct for these needs

I’m not entirely sure what your use case is, but the typical way to store additional information on an object is to subclass it, i.e. create a subclass of SimpleActionGroup and add a name property (or whatever other properties you’d like to use to store your data).

1 Like

Thanks, already store additional data in separated holder, thought get this name from GTK as I’ve already sent these data there, so strange can’t get that data back and must create one extra field ‘outside’.

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