aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-03-16 10:23:03 -0500
committerTed Gould <ted@gould.cx>2011-03-16 10:23:03 -0500
commit4c20267a1c5db9f7b259524ea92403a8caeb58ab (patch)
treed0d8c967c3ede264342ccf39cd853adb90d83ef0
parent7b45ed929b6c83335034ee9e3b98cf6dd7891b7a (diff)
downloadlibdbusmenu-4c20267a1c5db9f7b259524ea92403a8caeb58ab.tar.gz
libdbusmenu-4c20267a1c5db9f7b259524ea92403a8caeb58ab.tar.bz2
libdbusmenu-4c20267a1c5db9f7b259524ea92403a8caeb58ab.zip
Adding defines for the event ids
-rw-r--r--libdbusmenu-glib/menuitem.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/libdbusmenu-glib/menuitem.h b/libdbusmenu-glib/menuitem.h
index f4eb989..afd1d4e 100644
--- a/libdbusmenu-glib/menuitem.h
+++ b/libdbusmenu-glib/menuitem.h
@@ -267,6 +267,32 @@ G_BEGIN_DECLS
*/
#define DBUSMENU_MENUITEM_CHILD_DISPLAY_SUBMENU "submenu"
+/**
+ * DBUSMENU_MENUITEM_EVENT_ACTIVATED:
+ *
+ * String for the event identifier when a menu item is clicked
+ * on by the user.
+ */
+#define DBUSMENU_MENUITEM_EVENT_ACTIVATED "clicked"
+
+/**
+ * DBUSMENU_MENUITEM_EVENT_OPENED:
+ *
+ * String for the event identifier when a menu is opened and
+ * displayed to the user. Only valid for items that contain
+ * submenus.
+ */
+#define DBUSMENU_MENUITEM_EVENT_OPENED "opened"
+
+/**
+ * DBUSMENU_MENUITEM_EVENT_CLOSED:
+ *
+ * String for the event identifier when a menu is closed and
+ * displayed to the user. Only valid for items that contain
+ * submenus.
+ */
+#define DBUSMENU_MENUITEM_EVENT_CLOSED "closed"
+
typedef struct _DbusmenuMenuitemPrivate DbusmenuMenuitemPrivate;
/**