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

Zoltan Ponekker pontscho at mplayer.dev.hu
Sat Nov 17 00:17:55 CET 2001


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

Modified Files:
	menu.c 
Log Message:
middle menu is working

Index: menu.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/gtk/menu.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- menu.c	14 Nov 2001 16:04:25 -0000	1.1
+++ menu.c	16 Nov 2001 23:17:52 -0000	1.2
@@ -8,8 +8,9 @@
 
 void ActivateMenuItem( int Item )
 {
- gtkVisiblePopUpMenu=0;
- fprintf( stderr,"[menu] item: %d\n",Item );
+// fprintf( stderr,"[menu] item: %d\n",Item );
+ gtkShMem->popupmenu=Item;
+ gtkSendMessage( evShowPopUpMenu );
 }
 
 GtkWidget * AddMenuItem( GtkWidget * Menu,char * label,int Number )
@@ -51,6 +52,8 @@
 }
 
 GtkWidget * DVDSubMenu;
+GtkWidget * DVDAudioLanguageMenu;
+GtkWidget * DVDSubtitleLanguageMenu;
 
 GtkWidget * create_PopUpMenu( void )
 {
@@ -63,7 +66,7 @@
   AddMenuItem( Menu,"About MPlayer""      ", evAbout );
   AddSeparator( Menu );
    SubMenu=AddSubMenu( Menu,"Open ..." );
-    AddMenuItem( SubMenu,"Play file ...""    ", evLoad );
+    AddMenuItem( SubMenu,"Play file ...""    ", evLoadPlay );
     AddMenuItem( SubMenu,"Play VCD ...", evNone );
     AddMenuItem( SubMenu,"Play DVD ...", evNone );
     AddMenuItem( SubMenu,"Play URL ...", evNone );
@@ -86,10 +89,11 @@
     AddMenuItem( SubMenu,"Double size", evDoubleSize );
     AddMenuItem( SubMenu,"Fullscreen", evFullScreen );
    DVDSubMenu=AddSubMenu( Menu,"DVD" );
-    AddMenuItem( DVDSubMenu,"Play disc ...", evNone );
+    AddMenuItem( DVDSubMenu,"Play disc ...""    ", evNone );
     AddMenuItem( DVDSubMenu,"Show DVD Menu", evNone );
     AddSeparator( DVDSubMenu );
-    AddMenuItem( DVDSubMenu,"    ...      ", evNone );
+    DVDAudioLanguageMenu=AddSubMenu( DVDSubMenu,"Audio language" );
+    DVDSubtitleLanguageMenu=AddSubMenu( DVDSubMenu,"Subtitle language" );
   AddSeparator( Menu );
   AddMenuItem( Menu,"Playlist", evPlayList );
   AddMenuItem( Menu,"Skin browser", evSkinBrowser );




More information about the MPlayer-cvslog mailing list