| unity-gtk-module Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | ||||
#include <unity-gtk-parser.h> struct UnityGtkActionGroup; typedef UnityGtkActionGroupClass; UnityGtkActionGroup * unity_gtk_action_group_new (GActionGroup *old_group); void unity_gtk_action_group_connect_shell (UnityGtkActionGroup *group,UnityGtkMenuShell *shell); void unity_gtk_action_group_disconnect_shell (UnityGtkActionGroup *group,UnityGtkMenuShell *shell); void unity_gtk_action_group_set_debug (gboolean debug);
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().
struct UnityGtkActionGroup;
Opaque action group collector for UnityGtkMenuShell.
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.
|
a fallback GActionGroup. |
Returns : |
a new UnityGtkActionGroup. |
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.
|
a UnityGtkActionGroup. |
|
a UnityGtkMenuShell. |
void unity_gtk_action_group_disconnect_shell (UnityGtkActionGroup *group,UnityGtkMenuShell *shell);
Removes the actions for shell from group.
|
a UnityGtkActionGroup. |
|
a UnityGtkMenuShell. |