static void unhook_cb (GtkCheckMenuItem * check, const struct MenuItem * item) { hook_dissociate_full (item->hook, (HookFunction) hook_cb, check); }
static void album_cleanup (GtkWidget * widget) { hook_dissociate_full ("playback begin", (HookFunction) album_update, widget); hook_dissociate_full ("current art ready", (HookFunction) album_update, widget); hook_dissociate_full ("playback stop", (HookFunction) album_clear, widget); }