[MPlayer-cvslog] r36093 - trunk/gui/dialog/skinbrowser.c
ib
subversion at mplayerhq.hu
Fri Mar 29 18:15:19 CET 2013
Author: ib
Date: Fri Mar 29 18:15:19 2013
New Revision: 36093
Log:
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.)
Modified:
trunk/gui/dialog/skinbrowser.c
Modified: trunk/gui/dialog/skinbrowser.c
==============================================================================
--- trunk/gui/dialog/skinbrowser.c Fri Mar 29 15:09:40 2013 (r36092)
+++ trunk/gui/dialog/skinbrowser.c Fri Mar 29 18:15:19 2013 (r36093)
@@ -44,14 +44,6 @@ static char * prev=NULL;
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 @@ static void prButton( GtkButton * button
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 @@ static void on_SkinList_select_row( GtkC
{
free( skinName );
skinName=strdup( sbSelectedSkin );
- HideSkinBrowser();
+ gtk_widget_destroy( SkinBrowser );
+ SkinBrowser=NULL;
}
}
More information about the MPlayer-cvslog
mailing list