aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib/menuitem.h
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-05-27 22:25:28 -0500
committerTed Gould <ted@gould.cx>2010-05-27 22:25:28 -0500
commit73419da95d0dd08aa0075b95a203d713174f698a (patch)
tree7bbfc2acc1427b9bcaf6738bf0b20bd1a4be072c /libdbusmenu-glib/menuitem.h
parent4f0df14792093848d473d44f0a8db79046b62092 (diff)
downloadlibdbusmenu-73419da95d0dd08aa0075b95a203d713174f698a.tar.gz
libdbusmenu-73419da95d0dd08aa0075b95a203d713174f698a.tar.bz2
libdbusmenu-73419da95d0dd08aa0075b95a203d713174f698a.zip
Breaking out the buildxml function into it's own type for annotations
Diffstat (limited to 'libdbusmenu-glib/menuitem.h')
-rw-r--r--libdbusmenu-glib/menuitem.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/libdbusmenu-glib/menuitem.h b/libdbusmenu-glib/menuitem.h
index e5b5ae2..6eaed02 100644
--- a/libdbusmenu-glib/menuitem.h
+++ b/libdbusmenu-glib/menuitem.h
@@ -94,6 +94,15 @@ struct _DbusmenuMenuitem
*/
typedef void (*dbusmenu_menuitem_about_to_show_cb) (DbusmenuMenuitem * mi, gpointer user_data);
+/**
+ dbusmenu_menuitem_buildxml_slot_t:
+ @stringarray: (inout) (transfer none) (element utf8): An array of strings
+ that can be combined into an XML file.
+
+ This is the function that is called to represent this menu item
+ as an XML fragment. Should call it's own children.
+*/
+typedef void (*dbusmenu_menuitem_buildxml_slot_t) (GPtrArray * stringarray);
/**
DbusmenuMenuitemClass:
@@ -129,7 +138,7 @@ struct _DbusmenuMenuitemClass
void (*realized) (void);
/* Virtual functions */
- void (*buildxml) (GPtrArray * stringarray);
+ dbusmenu_menuitem_buildxml_slot_t buildxml;
void (*handle_event) (DbusmenuMenuitem * mi, const gchar * name, const GValue * value, guint timestamp);
void (*send_about_to_show) (DbusmenuMenuitem * mi, dbusmenu_menuitem_about_to_show_cb cb, gpointer cb_data);