diff options
Diffstat (limited to 'Gui/mplayer/mw.h')
-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 ); // --- |