diff options
author | Ted Gould <ted@gould.cx> | 2011-03-03 12:27:37 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-03-03 12:27:37 -0600 |
commit | 5df1e8714522ef4ec18d7b08bb571d7614c1859e (patch) | |
tree | 1c3f84667662a88bd4d9e8692c8a06a8032f1f22 /libdbusmenu-glib/client.h | |
parent | 83d4a60eb146ed757e319db6f2e63f905dc342fb (diff) | |
parent | 45962d68b2e1dcac1443f9e56b6a597cdd2816c8 (diff) | |
download | libdbusmenu-5df1e8714522ef4ec18d7b08bb571d7614c1859e.tar.gz libdbusmenu-5df1e8714522ef4ec18d7b08bb571d7614c1859e.tar.bz2 libdbusmenu-5df1e8714522ef4ec18d7b08bb571d7614c1859e.zip |
Changing the destroy prototype for better GIR support
Diffstat (limited to 'libdbusmenu-glib/client.h')
-rw-r--r-- | libdbusmenu-glib/client.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/libdbusmenu-glib/client.h b/libdbusmenu-glib/client.h index 93f4280..1cb9ee5 100644 --- a/libdbusmenu-glib/client.h +++ b/libdbusmenu-glib/client.h @@ -198,18 +198,6 @@ struct _DbusmenuClient { */ 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); DbusmenuClient * dbusmenu_client_new (const gchar * name, const gchar * object); @@ -221,7 +209,7 @@ gboolean dbusmenu_client_add_type_handler_full (DbusmenuClient * cli const gchar * type, DbusmenuClientTypeHandler newfunc, gpointer user_data, - DbusmenuClientTypeDestroyHandler destroy_func); + GDestroyNotify destroy_func); DbusmenuTextDirection dbusmenu_client_get_text_direction (DbusmenuClient * client); DbusmenuStatus dbusmenu_client_get_status (DbusmenuClient * client); const GStrv dbusmenu_client_get_icon_paths (DbusmenuClient * client); |