Top | ![]() |
![]() |
![]() |
![]() |
A UnityGtkActionGroup is a GActionGroup that accumulates the
actions of multiple UnityGtkMenuShells into a single object.
This can be used for purposes such as exporting actions over DBus
with g_dbus_connection_export_action_group()
.
UnityGtkActionGroup *
unity_gtk_action_group_new (GActionGroup *old_group
);
Creates a new UnityGtkMenuShell based on the contents of the given
menu_shell
. Any subsequent changes to menu_shell
are reflected in
the returned UnityGtkMenuShell.
Actions not found in an attached UnityGtkMenuShell are queried in
old_group
before failing.
void unity_gtk_action_group_connect_shell (UnityGtkActionGroup *group
,UnityGtkMenuShell *shell
);
Creates actions for all menu items in shell
and adds them to group
.
Subsequent changes to shell
also affect group
.
void unity_gtk_action_group_disconnect_shell (UnityGtkActionGroup *group
,UnityGtkMenuShell *shell
);
Removes the actions for shell
from group
.
struct UnityGtkActionGroup;
Opaque action group collector for UnityGtkMenuShell.