[Mplayer-cvslog] CVS: main/Gui/mplayer/gtk menu.c,1.22,1.23

Zoltan Ponekker pontscho at mplayerhq.hu
Mon Nov 25 17:52:37 CET 2002


Update of /cvsroot/mplayer/main/Gui/mplayer/gtk
In directory mail:/var/tmp.root/cvs-serv12765

Modified Files:
	menu.c 
Log Message:
if no have subwindow ... some menupoint is disabled:)

Index: menu.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/gtk/menu.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- menu.c	2 Nov 2002 16:09:05 -0000	1.22
+++ menu.c	25 Nov 2002 16:52:12 -0000	1.23
@@ -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 );
 




More information about the MPlayer-cvslog mailing list