changeset 2872:469f7e596a20

hide widgets before performing skin cleanup
author Tomasz Mon <desowin@gmail.com>
date Thu, 07 Aug 2008 15:14:09 +0200
parents 455e6e37feae
children d332994acaa9
files src/skins/plugin.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/skins/plugin.c	Thu Aug 07 13:36:41 2008 +0300
+++ b/src/skins/plugin.c	Thu Aug 07 15:14:09 2008 +0200
@@ -106,15 +106,15 @@
 
 gboolean skins_cleanup(void) {
     if (plugin_is_active == TRUE) {
+        gtk_widget_hide(mainwin);
+        gtk_widget_hide(equalizerwin);
+        gtk_widget_hide(playlistwin);
         skins_cfg_save();
         cleanup_skins();
         skins_free_paths();
         ui_main_evlistener_dissociate();
         ui_playlist_evlistener_dissociate();
         skins_cfg_free();
-        gtk_widget_destroy(mainwin);
-        gtk_widget_destroy(equalizerwin);
-        gtk_widget_destroy(playlistwin);
         ui_manager_destroy();
         mainwin = NULL;
         equalizerwin = NULL;