changeset 35999:135a2c940db8

Remove HideSkinBrowser(). Simply destroy the window. (It's pointless to check whether the window is existing, because it cannot be called without an existing window.)
author ib
date Fri, 29 Mar 2013 17:15:19 +0000
parents 05f75ac2dd8b
children 9bdcd4ec73ae
files gui/dialog/skinbrowser.c
diffstat 1 files changed, 4 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/skinbrowser.c	Fri Mar 29 14:09:40 2013 +0000
+++ b/gui/dialog/skinbrowser.c	Fri Mar 29 17:15:19 2013 +0000
@@ -44,14 +44,6 @@
 
 GtkWidget * SkinBrowser = NULL;
 
-static void HideSkinBrowser( void )
-{
- if ( !SkinBrowser ) return;
- gtk_widget_hide( SkinBrowser );
- gtk_widget_destroy( SkinBrowser );
- SkinBrowser=NULL;
-}
-
 static void prButton( GtkButton * button,gpointer user_data )
 {
  if ( sbSelectedSkin )
@@ -68,7 +60,8 @@
 	break;
   }
  }
- HideSkinBrowser();
+ gtk_widget_destroy( SkinBrowser );
+ SkinBrowser=NULL;
 }
 
 static void on_SkinList_select_row( GtkCList * clist,gint row,gint column,GdkEvent * event,gpointer user_data )
@@ -85,7 +78,8 @@
   {
    free( skinName );
    skinName=strdup( sbSelectedSkin );
-   HideSkinBrowser();
+   gtk_widget_destroy( SkinBrowser );
+   SkinBrowser=NULL;
   }
 }