Mercurial > mplayer.hg
changeset 8278:1cbee32a0627
if no have subwindow ... some menupoint is disabled:)
author | pontscho |
---|---|
date | Mon, 25 Nov 2002 16:52:12 +0000 |
parents | db673d118d3f |
children | fade8f754da0 |
files | Gui/mplayer/gtk/menu.c |
diffstat | 1 files changed, 10 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/Gui/mplayer/gtk/menu.c Mon Nov 25 16:29:30 2002 +0000 +++ b/Gui/mplayer/gtk/menu.c Mon Nov 25 16:52:12 2002 +0000 @@ -423,11 +423,8 @@ AddMenuItem( Menu,MSGTR_MENU_Preferences, evPreferences ); AddMenuItem( Menu,MSGTR_Equalizer, evEqualizer ); AddSeparator( Menu ); -#if 0 - AddMenuItem( Menu,MSGTR_MENU_NormalSize" ", evNormalSize ); - AddMenuItem( Menu,MSGTR_MENU_DoubleSize, evDoubleSize ); - AddMenuItem( Menu,MSGTR_MENU_FullScreen, evFullScreen ); -#else + + if ( guiIntfStruct.NoWindow == False ) { int b1 = 0, b2 = 0; if ( !appMPlayer.subWindow.isFullScreen && guiIntfStruct.Playing ) @@ -438,9 +435,15 @@ } else b1=!appMPlayer.subWindow.isFullScreen; AddMenuCheckItem( Menu,MSGTR_MENU_NormalSize" ",b1,evNormalSize ); AddMenuCheckItem( Menu,MSGTR_MENU_DoubleSize,b2,evDoubleSize ); + AddMenuCheckItem( Menu,MSGTR_MENU_FullScreen,appMPlayer.subWindow.isFullScreen,evFullScreen ); } - AddMenuCheckItem( Menu,MSGTR_MENU_FullScreen,appMPlayer.subWindow.isFullScreen,evFullScreen ); -#endif + else + { + MenuItem=AddMenuCheckItem( Menu,MSGTR_MENU_NormalSize" ",0,evNormalSize ); gtk_widget_set_sensitive( MenuItem,FALSE ); + MenuItem=AddMenuCheckItem( Menu,MSGTR_MENU_DoubleSize,0,evDoubleSize ); gtk_widget_set_sensitive( MenuItem,FALSE ); + MenuItem=AddMenuCheckItem( Menu,MSGTR_MENU_FullScreen,0,evFullScreen ); gtk_widget_set_sensitive( MenuItem,FALSE ); + } + AddSeparator( Menu ); AddMenuItem( Menu,MSGTR_MENU_Exit, evExit );