[Mplayer-cvslog] CVS: main/Gui/mplayer widgets.c,1.21,1.22
Zoltan Ponekker
pontscho at mplayerhq.hu
Sat May 11 18:38:00 CEST 2002
- Previous message: [Mplayer-cvslog] CVS: main/libvo vo_x11.c,1.102,1.103 vo_xmga.c,1.66,1.67 vo_xv.c,1.85,1.86 vo_xvidix.c,1.35,1.36 x11_common.c,1.77,1.78
- Next message: [Mplayer-cvslog] CVS: main/Gui/mplayer/gtk about.c,1.3,1.4 fs.c,1.10,1.11 mb.c,1.4,1.5 opts.c,1.2,1.3 pl.c,1.2,1.3 sb.c,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main/Gui/mplayer
In directory mail:/var/tmp.root/cvs-serv14376/Gui/mplayer
Modified Files:
widgets.c
Log Message:
fix gtk dialog box destroy bug
Index: widgets.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/widgets.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- widgets.c 6 May 2002 15:05:06 -0000 1.21
+++ widgets.c 11 May 2002 16:37:58 -0000 1.22
@@ -60,12 +60,12 @@
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 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 @@
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 @@
gtkSetLayer( FileSelect );
break;
case evAbout:
- gtk_widget_hide( AboutBox );
+ AboutBox=create_About();
gtk_widget_show( AboutBox );
gtkSetLayer( AboutBox );
break;
- Previous message: [Mplayer-cvslog] CVS: main/libvo vo_x11.c,1.102,1.103 vo_xmga.c,1.66,1.67 vo_xv.c,1.85,1.86 vo_xvidix.c,1.35,1.36 x11_common.c,1.77,1.78
- Next message: [Mplayer-cvslog] CVS: main/Gui/mplayer/gtk about.c,1.3,1.4 fs.c,1.10,1.11 mb.c,1.4,1.5 opts.c,1.2,1.3 pl.c,1.2,1.3 sb.c,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list