changeset 33631:3f6782208075

Simplify code for guiGetEvent type guiSetState.
author ib
date Fri, 24 Jun 2011 13:00:04 +0000
parents 442726a401f1
children 11f40a359e57
files gui/interface.c
diffstat 1 files changed, 2 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/gui/interface.c	Fri Jun 24 12:54:10 2011 +0000
+++ b/gui/interface.c	Fri Jun 24 13:00:04 2011 +0000
@@ -575,18 +575,11 @@
     case guiSetState:
 
         switch ((int)arg) {
+        case GUI_STOP:
         case GUI_PLAY:
 // if ( !gtkShowVideoWindow ) wsVisibleWindow( &guiApp.subWindow,wsHideWindow );
-            guiInfo.Playing = GUI_PLAY;
-            break;
-
-        case GUI_STOP:
-// if ( !gtkShowVideoWindow ) wsVisibleWindow( &guiApp.subWindow,wsHideWindow );
-            guiInfo.Playing = GUI_STOP;
-            break;
-
         case GUI_PAUSE:
-            guiInfo.Playing = GUI_PAUSE;
+            guiInfo.Playing = (int)arg;
             break;
         }