changeset 1751:d0dbc020f50f

fix play -> pause button
author pontscho
date Wed, 29 Aug 2001 17:17:21 +0000
parents 5041d1bf251e
children 39fc6cc71b3b
files Gui/mplayer/mw.h
diffstat 1 files changed, 16 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/mplayer/mw.h	Wed Aug 29 16:34:40 2001 +0000
+++ b/Gui/mplayer/mw.h	Wed Aug 29 17:17:21 2001 +0000
@@ -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 );
 // ---