{
}
-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);
}
}
for (it = client_destructors; it; it = g_slist_next(it)) {
- ObClientDestructorFunc func = (ObClientDestructorFunc) it->data;
+ GDestroyNotify func = (GDestroyNotify) it->data;
func(self);
}
void client_startup();
void client_shutdown();
-typedef void (*ObClientDestructorFunc)(ObClient *c);
-
-void client_add_destructor(ObClientDestructorFunc func);
-void client_remove_destructor(ObClientDestructorFunc func);
+void client_add_destructor(GDestroyNotify func);
+void client_remove_destructor(GDestroyNotify func);
/*! Manages all existing windows */
void client_manage_all();
return loaded;
}
-static void client_dest(ObClient *c)
+static void client_dest(gpointer client)
{
/* menus can be associated with a client, so close any that are since
we are disappearing now */
- menu_frame_hide_all_client(c);
+ menu_frame_hide_all_client(client);
}
void menu_startup()
static Popup *popup = NULL;
-static void client_dest(ObClient *c)
+static void client_dest(gpointer client)
{
- if (moveresize_client == c)
+ if (moveresize_client == client)
moveresize_end(TRUE);
}