aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-01-27 09:42:23 -0600
committerTed Gould <ted@gould.cx>2011-01-27 09:42:23 -0600
commitbbeca3ac7b912ab40bba3415beb3b9d34249bf9d (patch)
tree2c8024e8abddb24966a5c9e4f6ee69b53dda1942 /libdbusmenu-glib
parent275bd0eec2e28b708ff6cda14531f63a8aa16e8e (diff)
parent717e9a319cd430428c297d0777b45c64e4d7f5fd (diff)
downloadlibdbusmenu-bbeca3ac7b912ab40bba3415beb3b9d34249bf9d.tar.gz
libdbusmenu-bbeca3ac7b912ab40bba3415beb3b9d34249bf9d.tar.bz2
libdbusmenu-bbeca3ac7b912ab40bba3415beb3b9d34249bf9d.zip
Updating to serializeable menuitem branch. Some function prototype changes.
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r--libdbusmenu-glib/client.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/libdbusmenu-glib/client.h b/libdbusmenu-glib/client.h
index f371792..6d78edf 100644
--- a/libdbusmenu-glib/client.h
+++ b/libdbusmenu-glib/client.h
@@ -110,7 +110,28 @@ struct _DbusmenuClient {
DbusmenuClientPrivate * priv;
};
+/**
+ DbusmenuClientTypeHandler:
+ @newitem: The #DbusmenuMenuitem that was created
+ @parent: The parent of @newitem or #NULL if none
+ @client: A pointer to the #DbusmenuClient
+ @user_data: The data you gave us
+
+ The type handler is called when a dbusmenu item is created
+ with a matching type as setup in #dbusmenu_client_add_type_handler
+*/
typedef gboolean (*DbusmenuClientTypeHandler) (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, DbusmenuClient * client, gpointer user_data);
+
+/**
+ DbusmenuClientTypeDestroyHandler:
+ @client: A pointer to the #DbusmenuClient
+ @type: The type that this handler was registered with
+ @user_data: The data you gave us
+
+ This handler is called when the type becomes unregistered by the
+ client. This is usally caused by the #DbusmenuClient being destroyed
+ and should free memory or unref objects in @user_data.
+*/
typedef void (*DbusmenuClientTypeDestroyHandler) (DbusmenuClient * client, const gchar * type, gpointer user_data);
GType dbusmenu_client_get_type (void);