diff options
author | 2002-05-11 16:37:58 +0000 | |
---|---|---|
committer | 2002-05-11 16:37:58 +0000 | |
commit | 587eca9977c4b2cce29fabbf4e7f62da647145e1 (patch) | |
tree | c3d344b76c95f179995730df6a37891f81645a75 /Gui/mplayer/widgets.c | |
parent | e6215bef4078ff772f74e9cad7aa327a5a2b5ef5 (diff) |
fix gtk dialog box destroy bug
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6045 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer/widgets.c')
-rw-r--r-- | Gui/mplayer/widgets.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/Gui/mplayer/widgets.c b/Gui/mplayer/widgets.c index c5bf2c5a5c..4fd6e847f2 100644 --- a/Gui/mplayer/widgets.c +++ b/Gui/mplayer/widgets.c @@ -60,12 +60,12 @@ void gtkInit( int argc,char* argv[], char *envp[] ) gtk_init( &argc,&argv ); gdk_set_use_xshm( FALSE ); - mp_dbg( MSGT_GPLAYER,MSGL_DBG2,"[widget] Create about box.\n" ); AboutBox=create_About(); - mp_dbg( MSGT_GPLAYER,MSGL_DBG2,"[widget] Create skin browser.\n" ); SkinBrowser=create_SkinBrowser(); - mp_dbg( MSGT_GPLAYER,MSGL_DBG2,"[widget] Create playlist.\n" ); PlayList=create_PlayList(); - mp_dbg( MSGT_GPLAYER,MSGL_DBG2,"[widget] Create file selector.\n" ); FileSelect=create_FileSelect(); - mp_dbg( MSGT_GPLAYER,MSGL_DBG2,"[widget] Create message box.\n" ); MessageBox=create_MessageBox(0); - mp_dbg( MSGT_GPLAYER,MSGL_DBG2,"[widget] Create preferences dialog box.\n" ); Options=create_Options(); +// mp_dbg( MSGT_GPLAYER,MSGL_DBG2,"[widget] Create about box.\n" ); AboutBox=create_About(); +// mp_dbg( MSGT_GPLAYER,MSGL_DBG2,"[widget] Create skin browser.\n" ); SkinBrowser=create_SkinBrowser(); +// mp_dbg( MSGT_GPLAYER,MSGL_DBG2,"[widget] Create playlist.\n" ); PlayList=create_PlayList(); +// mp_dbg( MSGT_GPLAYER,MSGL_DBG2,"[widget] Create file selector.\n" ); FileSelect=create_FileSelect(); +// mp_dbg( MSGT_GPLAYER,MSGL_DBG2,"[widget] Create message box.\n" ); MessageBox=create_MessageBox(0); +// mp_dbg( MSGT_GPLAYER,MSGL_DBG2,"[widget] Create preferences dialog box.\n" ); Options=create_Options(); gtkInited=1; } @@ -106,8 +106,8 @@ void gtkEventHandling( void ) void gtkMessageBox( int type,gchar * str ) { if ( !gtkInited ) return; + MessageBox=create_MessageBox(0); gtk_label_set_text( GTK_LABEL( gtkMessageBoxText ),str ); - gtk_widget_hide( MessageBox ); switch( type) { case GTK_MB_FATAL: @@ -140,22 +140,22 @@ void gtkShow( int type,char * param ) switch( type ) { case evSkinBrowser: - gtk_widget_hide( SkinBrowser ); - gtkClearList( SkinList ); - if ( gtkFillSkinList( sbMPlayerPrefixDir )&>kFillSkinList( sbMPlayerDirInHome ) ) + SkinBrowser=create_SkinBrowser(); +// gtkClearList( SkinList ); + if ( gtkFillSkinList( sbMPlayerPrefixDir ) && gtkFillSkinList( sbMPlayerDirInHome ) ) { gtkSetDefaultToCList( SkinList,param ); gtk_widget_show( SkinBrowser ); + gtkSetLayer( SkinBrowser ); } - gtkSetLayer( SkinBrowser ); break; case evPreferences: - gtk_widget_hide( Options ); + Options=create_Options(); gtk_widget_show( Options ); gtkSetLayer( Options ); break; case evPlayList: - gtk_widget_hide( PlayList ); + PlayList=create_PlayList(); gtk_widget_show( PlayList ); gtkSetLayer( PlayList ); break; @@ -172,7 +172,7 @@ void gtkShow( int type,char * param ) gtkSetLayer( FileSelect ); break; case evAbout: - gtk_widget_hide( AboutBox ); + AboutBox=create_About(); gtk_widget_show( AboutBox ); gtkSetLayer( AboutBox ); break; |