diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-29 17:17:21 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-29 17:17:21 +0000 |
commit | 701978744feaccea7feb1b634fb2ea65b700ec85 (patch) | |
tree | 57f62622a5a70805441cb13da6483d4db206152d /Gui | |
parent | 9740f5971814222827901febddf0d829ce07d631 (diff) | |
download | mpv-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.h | 17 |
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 ); // --- |