summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-09-03 08:10:51 +0000
committerDana Jansens <danakj@orodu.net>2003-09-03 08:10:51 +0000
commit5e5fdb1666ac4877ca4d26f5ca565a299bc4cc42 (patch)
tree2c2cee4f1530a9099727e8475e0d43421e066904 /openbox/client.c
parent2573b51904e04f366ba4f6b858caa2471cdcb53f (diff)
make the client destructor a GDestroyNotify
Diffstat (limited to 'openbox/client.c')
-rw-r--r--openbox/client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 34d263b6..999b23dd 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -60,12 +60,12 @@ void client_shutdown()
{
}
-void client_add_destructor(ObClientDestructorFunc func)
+void client_add_destructor(GDestroyNotify func)
{
client_destructors = g_slist_prepend(client_destructors, (gpointer)func);
}
-void client_remove_destructor(ObClientDestructorFunc func)
+void client_remove_destructor(GDestroyNotify func)
{
client_destructors = g_slist_remove(client_destructors, (gpointer)func);
}
@@ -423,7 +423,7 @@ void client_unmanage(ObClient *self)
}
for (it = client_destructors; it; it = g_slist_next(it)) {
- ObClientDestructorFunc func = (ObClientDestructorFunc) it->data;
+ GDestroyNotify func = (GDestroyNotify) it->data;
func(self);
}