aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-03-03 12:27:37 -0600
committerTed Gould <ted@gould.cx>2011-03-03 12:27:37 -0600
commit5df1e8714522ef4ec18d7b08bb571d7614c1859e (patch)
tree1c3f84667662a88bd4d9e8692c8a06a8032f1f22 /libdbusmenu-gtk
parent83d4a60eb146ed757e319db6f2e63f905dc342fb (diff)
parent45962d68b2e1dcac1443f9e56b6a597cdd2816c8 (diff)
downloadlibdbusmenu-5df1e8714522ef4ec18d7b08bb571d7614c1859e.tar.gz
libdbusmenu-5df1e8714522ef4ec18d7b08bb571d7614c1859e.tar.bz2
libdbusmenu-5df1e8714522ef4ec18d7b08bb571d7614c1859e.zip
Changing the destroy prototype for better GIR support
Diffstat (limited to 'libdbusmenu-gtk')
-rw-r--r--libdbusmenu-gtk/serializablemenuitem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdbusmenu-gtk/serializablemenuitem.c b/libdbusmenu-gtk/serializablemenuitem.c
index 29f83a8..b560fe3 100644
--- a/libdbusmenu-gtk/serializablemenuitem.c
+++ b/libdbusmenu-gtk/serializablemenuitem.c
@@ -215,7 +215,7 @@ type_handler (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, DbusmenuCli
/* Destruction is inevitable */
static void
-type_destroy_handler (DbusmenuClient * client, const gchar * type, gpointer user_data)
+type_destroy_handler (gpointer user_data)
{
g_return_if_fail(user_data != NULL);
type_handler_t * th = (type_handler_t *)user_data;
@@ -255,7 +255,7 @@ dbusmenu_gtk_serializable_menu_item_register_to_client (DbusmenuClient * client,
th->class = class;
th->type = item_type;
if (!dbusmenu_client_add_type_handler_full(client, class->get_type_string(), type_handler, th, type_destroy_handler)) {
- type_destroy_handler(client, class->get_type_string(), th);
+ type_destroy_handler(th);
}
/* Register defaults */