summaryrefslogtreecommitdiffstats
path: root/Gui
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-29 17:17:21 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-29 17:17:21 +0000
commit701978744feaccea7feb1b634fb2ea65b700ec85 (patch)
tree57f62622a5a70805441cb13da6483d4db206152d /Gui
parent9740f5971814222827901febddf0d829ce07d631 (diff)
downloadmpv-701978744feaccea7feb1b634fb2ea65b700ec85.tar.bz2
mpv-701978744feaccea7feb1b634fb2ea65b700ec85.tar.xz
fix play -> pause button
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1752 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui')
-rw-r--r--Gui/mplayer/mw.h17
1 files changed, 16 insertions, 1 deletions
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 );
// ---