aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdbusmenu-glib/menuitem.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libdbusmenu-glib/menuitem.h b/libdbusmenu-glib/menuitem.h
index a505c9c..d7cf586 100644
--- a/libdbusmenu-glib/menuitem.h
+++ b/libdbusmenu-glib/menuitem.h
@@ -95,6 +95,16 @@ struct _DbusmenuMenuitem
};
/**
+ * dbusmenu_menuitem_about_to_show_cb:
+ * @mi: Menu item that should be shown
+ * @user_data: (closure): Extra user data sent with the function
+ *
+ * Callback prototype for a callback that is called when the
+ * menu should be shown.
+ */
+typedef void (*dbusmenu_menuitem_about_to_show_cb) (DbusmenuMenuitem * mi, gpointer user_data);
+
+/**
* dbusmenu_menuitem_buildxml_slot_t:
* @mi: (in): Menu item that should be built from
* @stringarray: (inout) (transfer none) (array) (element-type utf8): An array of strings that can be combined into an XML file.