| unity-gtk-module Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
#include <unity-gtk-parser.h> struct UnityGtkMenuShell; typedef UnityGtkMenuShellClass; UnityGtkMenuShell * unity_gtk_menu_shell_new (GtkMenuShell *menu_shell); void unity_gtk_menu_shell_set_debug (gboolean debug);
A UnityGtkMenuShell is a GMenuModel that acts as a proxy for a
GtkMenuShell. This can be used for purposes such as exporting menu
shells over DBus with g_dbus_connection_export_menu_model().
UnityGtkMenuShells are most useful when used with UnityGtkActionGroups.
UnityGtkMenuShell * unity_gtk_menu_shell_new (GtkMenuShell *menu_shell);
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.
|
a GtkMenuShell to watch. |
Returns : |
a new UnityGtkMenuShell based on menu_shell. |