From 701978744feaccea7feb1b634fb2ea65b700ec85 Mon Sep 17 00:00:00 2001 From: pontscho Date: Wed, 29 Aug 2001 17:17:21 +0000 Subject: [PATCH] fix play -> pause button git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1752 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Gui/mplayer/mw.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Gui/mplayer/mw.h b/Gui/mplayer/mw.h index 5a39e5ecd8..90721a1ac8 100644 --- a/Gui/mplayer/mw.h +++ b/Gui/mplayer/mw.h @@ -140,7 +140,22 @@ void mplMainDraw( wsParamDisplay ) 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 ); // ---