aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-01-27 14:13:18 -0600
committerTed Gould <ted@gould.cx>2011-01-27 14:13:18 -0600
commit85d445990bcbccc75b7b3c70c278dfaee96652b6 (patch)
treef6679046299ee7084b024aa34caeab3b79349678 /libdbusmenu-glib
parentb3088525e0497a660667dc4069554274e95ec498 (diff)
parentb41b9f202bcae24d256c1a4a9dd044e9e21b984f (diff)
downloadlibdbusmenu-85d445990bcbccc75b7b3c70c278dfaee96652b6.tar.gz
libdbusmenu-85d445990bcbccc75b7b3c70c278dfaee96652b6.tar.bz2
libdbusmenu-85d445990bcbccc75b7b3c70c278dfaee96652b6.zip
Fixing warnings from 'use-fallback'
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);