diff options
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r-- | libdbusmenu-glib/menuitem.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libdbusmenu-glib/menuitem.c b/libdbusmenu-glib/menuitem.c index 5d22b32..f6cd99e 100644 --- a/libdbusmenu-glib/menuitem.c +++ b/libdbusmenu-glib/menuitem.c @@ -7,6 +7,7 @@ typedef struct _DbusmenuMenuitemPrivate DbusmenuMenuitemPrivate; struct _DbusmenuMenuitemPrivate { + guint id; GList * children; }; @@ -33,9 +34,16 @@ dbusmenu_menuitem_class_init (DbusmenuMenuitemClass *klass) object_class->finalize = dbusmenu_menuitem_finalize; } +static guint menuitem_next_id = 1; + static void dbusmenu_menuitem_init (DbusmenuMenuitem *self) { + DbusmenuMenuitemPrivate * priv = DBUSMENU_MENUITEM_GET_PRIVATE(self); + + priv->id = menuitem_next_id++; + priv->children = NULL; + return; } |