# HG changeset patch # User Tomasz Mon # Date 1211375794 -7200 # Node ID 857910a58188b49872b335b7051915fce23754c5 # Parent 2d3ddf80cffdc71bc5479b577f1f43b0cf0c8e2e don't quit audacious if skins plugin gets unloaded diff -r 2d3ddf80cffd -r 857910a58188 src/skins/plugin.c --- a/src/skins/plugin.c Wed May 21 14:53:26 2008 +0200 +++ b/src/skins/plugin.c Wed May 21 15:16:34 2008 +0200 @@ -66,8 +66,11 @@ if (plugin_is_active == TRUE) { skins_cfg_free(); gtk_widget_destroy(mainwin); - skin_free(aud_active_skin); + gtk_widget_destroy(equalizerwin); + skin_destroy(aud_active_skin); aud_active_skin = NULL; + mainwin = NULL; + equalizerwin = NULL; plugin_is_active = FALSE; } diff -r 2d3ddf80cffd -r 857910a58188 src/skins/plugin.h --- a/src/skins/plugin.h Wed May 21 14:53:26 2008 +0200 +++ b/src/skins/plugin.h Wed May 21 15:16:34 2008 +0200 @@ -24,10 +24,11 @@ #include #include #include "skins_cfg.h" +#include "ui_main.h" +#include "ui_equalizer.h" #define PACKAGE_NAME "audacious-plugins" #define DATA_DIR "/usr/local/share/audacious/" -extern GtkWidget *mainwin; void skins_init(void); void skins_cleanup(void); diff -r 2d3ddf80cffd -r 857910a58188 src/skins/ui_main.c --- a/src/skins/ui_main.c Wed May 21 14:53:26 2008 +0200 +++ b/src/skins/ui_main.c Wed May 21 15:16:34 2008 +0200 @@ -352,7 +352,11 @@ static void mainwin_destroy(GtkWidget * widget, gpointer data) { +/* we should detect whether plugin got unloaded and when user indeed + wants to close audacious */ +#if 0 mainwin_quit_cb(); +#endif } static gchar *mainwin_tb_old_text = NULL;