[Mplayer-cvslog] CVS: main/Gui/mplayer mw.h,1.6,1.7
Zoltan Ponekker
pontscho at mplayer.dev.hu
Wed Aug 29 19:17:24 CEST 2001
Update of /cvsroot/mplayer/main/Gui/mplayer
In directory mplayer:/var/tmp.root/cvs-serv11715
Modified Files:
mw.h
Log Message:
fix play -> pause button
Index: mw.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/mw.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- mw.h 29 Aug 2001 16:34:40 -0000 1.6
+++ mw.h 29 Aug 2001 17:17:21 -0000 1.7
@@ -140,7 +140,22 @@
btnModify( evSetMoviePosition,mplShMem->Position );
btnModify( evSetVolume,mplShMem->Volume );
-
+
+ switch ( mplShMem->Playing )
+ {
+ case 2:
+ case 0:
+ btnModify( evPlaySwitchToPause,btnReleased );
+ btnModify( evPauseSwitchToPlay,btnDisabled );
+ break;
+ case 1:
+ if ( strlen( mplShMem->Filename ) )
+ {
+ btnModify( evPlaySwitchToPause,btnDisabled );
+ btnModify( evPauseSwitchToPlay,btnReleased );
+ }
+ }
+
// --- erosen ideiglenes.
strcpy( gtkShMem->fs.filename,mplShMem->Filename );
// ---
More information about the MPlayer-cvslog
mailing list