changeset 4689:a5707f571100

dissociate hooks at _ui_finalize
author Tomasz Mon <desowin@gmail.com>
date Sat, 05 Jul 2008 15:45:56 +0200
parents b3e2ea3f9297
children 5db8a7848565
files src/audacious/ui_new.c
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_new.c	Sat Jul 05 15:42:03 2008 +0200
+++ b/src/audacious/ui_new.c	Sat Jul 05 15:45:56 2008 +0200
@@ -284,10 +284,24 @@
     return TRUE;
 }
 
+static gboolean
+_ui_finalize(void)
+{
+    hook_dissociate("title change", (HookFunction) ui_set_current_song_title);
+    hook_dissociate("playback seek", (HookFunction) ui_update_song_info);
+    hook_dissociate("playback begin", (HookFunction) ui_playback_begin);
+    hook_dissociate("playback stop", (HookFunction) ui_playback_stop);
+    hook_dissociate("playback end", (HookFunction) ui_playback_end);
+    hook_dissociate("playlist update", (HookFunction) ui_playlist_update);
+
+    return TRUE;
+}
+
 static Interface default_interface = {
     .id = "default",
     .desc = N_("Default Interface"),
     .init = _ui_initialize,
+    .fini = _ui_finalize,
 };
 
 Interface *