Removed checks "play/pause" and "stop" menu items.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@288 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfbplayer/rfbplayer.cxx b/rfbplayer/rfbplayer.cxx
index 87f4886..061c717 100644
--- a/rfbplayer/rfbplayer.cxx
+++ b/rfbplayer/rfbplayer.cxx
@@ -359,9 +359,7 @@
       setPaused(true);
       break;
     case ID_STOP:
-      if (getTimeOffset() != 0) {
-        stopPlayback();
-      }
+      stopPlayback();
       break;
     case ID_PLAYPAUSE:
       if (rfbReader) {
@@ -1153,16 +1151,14 @@
     tb.checkButton(ID_PAUSE, true);
     tb.checkButton(ID_PLAY, false);
     tb.checkButton(ID_STOP, false);
-    CheckMenuItem(hMenu, ID_PLAYPAUSE, MF_CHECKED);
-    CheckMenuItem(hMenu, ID_STOP, MF_UNCHECKED);
   } else {
     if (is) is->resumePlayback();
     tb.checkButton(ID_PLAY, true);
     tb.checkButton(ID_STOP, false);
     tb.checkButton(ID_PAUSE, false);
-    CheckMenuItem(hMenu, ID_PLAYPAUSE, MF_CHECKED);
-    CheckMenuItem(hMenu, ID_STOP, MF_UNCHECKED);
   }
+  tb.enableButton(ID_PAUSE, true);
+  EnableMenuItem(hMenu, ID_STOP, MF_ENABLED | MF_BYCOMMAND);
 }
 
 void RfbPlayer::stopPlayback() {
@@ -1175,8 +1171,8 @@
   tb.checkButton(ID_STOP, true);
   tb.checkButton(ID_PLAY, false);
   tb.checkButton(ID_PAUSE, false);
-  CheckMenuItem(hMenu, ID_STOP, MF_CHECKED);
-  CheckMenuItem(hMenu, ID_PLAYPAUSE, MF_UNCHECKED);
+  tb.enableButton(ID_PAUSE, false);
+  EnableMenuItem(hMenu, ID_STOP, MF_GRAYED | MF_BYCOMMAND);
   SendMessage(posTrackBar, TBM_SETPOS, TRUE, 0);
 }