static void cleanup (void) { if (menu_main) gtk_widget_destroy (menu_main); gtk_widget_destroy (menu_rclick); gtk_widget_destroy (menu_tab); if (update_song_timeout_source) { g_source_remove(update_song_timeout_source); update_song_timeout_source = 0; } if (update_volume_timeout_source) { g_source_remove(update_volume_timeout_source); update_volume_timeout_source = 0; } if (delayed_title_change_source) { g_source_remove (delayed_title_change_source); delayed_title_change_source = 0; } ui_hooks_disassociate(); if (search_tool) aud_plugin_remove_watch (search_tool, search_tool_toggled, NULL); pw_col_cleanup (); gtk_widget_destroy (window); layout_cleanup (); }
static void destroy_cb (GtkCheckMenuItem * item, PluginHandle * plugin) { aud_plugin_remove_watch (plugin, (PluginForEachFunc) watch_cb, item); }