comparison gui/interface.c @ 33631:3f6782208075

Simplify code for guiGetEvent type guiSetState.
author ib
date Fri, 24 Jun 2011 13:00:04 +0000
parents 442726a401f1
children 4af19d03b4e8
comparison
equal deleted inserted replaced
33630:442726a401f1 33631:3f6782208075
573 break; 573 break;
574 574
575 case guiSetState: 575 case guiSetState:
576 576
577 switch ((int)arg) { 577 switch ((int)arg) {
578 case GUI_STOP:
578 case GUI_PLAY: 579 case GUI_PLAY:
579 // if ( !gtkShowVideoWindow ) wsVisibleWindow( &guiApp.subWindow,wsHideWindow ); 580 // if ( !gtkShowVideoWindow ) wsVisibleWindow( &guiApp.subWindow,wsHideWindow );
580 guiInfo.Playing = GUI_PLAY;
581 break;
582
583 case GUI_STOP:
584 // if ( !gtkShowVideoWindow ) wsVisibleWindow( &guiApp.subWindow,wsHideWindow );
585 guiInfo.Playing = GUI_STOP;
586 break;
587
588 case GUI_PAUSE: 581 case GUI_PAUSE:
589 guiInfo.Playing = GUI_PAUSE; 582 guiInfo.Playing = (int)arg;
590 break; 583 break;
591 } 584 }
592 585
593 uiState(); 586 uiState();
594 break; 587 break;