comparison gui/interface.c @ 33615:1f9a31d4f114

Replace all playback integer constants by their symbolic constants.
author ib
date Wed, 22 Jun 2011 12:53:30 +0000
parents 79743a5cf4f0
children 442726a401f1
comparison
equal deleted inserted replaced
33614:79743a5cf4f0 33615:1f9a31d4f114
352 XNextEvent(wsDisplay, &xev); 352 XNextEvent(wsDisplay, &xev);
353 while (xev.type != MapNotify || xev.xmap.event != guiApp.subWindow.WindowID); 353 while (xev.type != MapNotify || xev.xmap.event != guiApp.subWindow.WindowID);
354 354
355 guiApp.subWindow.Mapped = wsMapped; 355 guiApp.subWindow.Mapped = wsMapped;
356 } 356 }
357 guiInfo.Playing = 2; // set pause, because of !gtkShowVideoWindow... 357 guiInfo.Playing = GUI_PAUSE; // because of !gtkShowVideoWindow...
358 uiFullScreen(); // ...guiInfo.Playing is required 358 uiFullScreen(); // ...guiInfo.Playing is required
359 wsVisibleWindow(&guiApp.subWindow, wsHideWindow); 359 wsVisibleWindow(&guiApp.subWindow, wsHideWindow);
360 btnModify(evFullScreen, btnPressed); 360 btnModify(evFullScreen, btnPressed);
361 } 361 }
362 } 362 }
363 #endif 363 #endif
364 364
365 guiInfo.Playing = 0; 365 guiInfo.Playing = GUI_STOP;
366 366
367 uiSubRender = 1; 367 uiSubRender = 1;
368 368
369 if (filename) 369 if (filename)
370 uiSetFileName(NULL, filename, STREAMTYPE_FILE); 370 uiSetFileName(NULL, filename, STREAMTYPE_FILE);
574 574
575 case guiSetState: 575 case guiSetState:
576 576
577 switch ((int)arg) { 577 switch ((int)arg) {
578 case GUI_PLAY: 578 case GUI_PLAY:
579 guiInfo.Playing = 1;
580 // if ( !gtkShowVideoWindow ) wsVisibleWindow( &guiApp.subWindow,wsHideWindow ); 579 // if ( !gtkShowVideoWindow ) wsVisibleWindow( &guiApp.subWindow,wsHideWindow );
580 guiInfo.Playing = GUI_PLAY;
581 break; 581 break;
582 582
583 case GUI_STOP: 583 case GUI_STOP:
584 guiInfo.Playing = 0;
585 // if ( !gtkShowVideoWindow ) wsVisibleWindow( &guiApp.subWindow,wsHideWindow ); 584 // if ( !gtkShowVideoWindow ) wsVisibleWindow( &guiApp.subWindow,wsHideWindow );
585 guiInfo.Playing = GUI_STOP;
586 break; 586 break;
587 587
588 case GUI_PAUSE: 588 case GUI_PAUSE:
589 guiInfo.Playing = 2; 589 guiInfo.Playing = GUI_PAUSE;
590 break; 590 break;
591 } 591 }
592 592
593 uiState(); 593 uiState();
594 break; 594 break;