# HG changeset patch # User pontscho # Date 1038243132 0 # Node ID 1cbee32a0627abd591a481883743b05043f8f1c3 # Parent db673d118d3fc78ff44d364d714bc3fe6162e24e if no have subwindow ... some menupoint is disabled:) diff -r db673d118d3f -r 1cbee32a0627 Gui/mplayer/gtk/menu.c --- 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 );