unity-gtk-menu-shell

unity-gtk-menu-shell — Menu shell proxy

Synopsis

#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);

Object Hierarchy

  GObject
   +----GMenuModel
         +----UnityGtkMenuShell

Description

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.

Details

struct UnityGtkMenuShell

struct UnityGtkMenuShell;

Opaque GMenuModel proxy for GtkMenuShell.


UnityGtkMenuShellClass

typedef GMenuModelClass           UnityGtkMenuShellClass;

unity_gtk_menu_shell_new ()

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.

menu_shell :

a GtkMenuShell to watch.

Returns :

a new UnityGtkMenuShell based on menu_shell.

unity_gtk_menu_shell_set_debug ()

void                unity_gtk_menu_shell_set_debug      (gboolean debug);

Sets if menu shell changes should be logged using g_print().

debug :

TRUE to enable debugging output