[Mplayer-cvslog] CVS: main/Gui/mplayer psignal.c,1.16,1.17 widgets.c,1.10,1.11

Zoltan Ponekker pontscho at mplayer.dev.hu
Wed Nov 14 17:04:16 CET 2001


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

Modified Files:
	psignal.c widgets.c 
Log Message:
rewrite ...

Index: psignal.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/psignal.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- psignal.c	24 Oct 2001 10:58:18 -0000	1.16
+++ psignal.c	14 Nov 2001 16:04:09 -0000	1.17
@@ -126,6 +126,12 @@
    case evExit:
 	gtk_main_quit();
         break;
+   case evShowPopUpMenu:
+//	if ( gtkVisiblePopUpMenu ) gtk_widget_hide( PopUpMenu );
+//	gtk_widget_show( PopUpMenu );
+        gtk_menu_popup( GTK_MENU( PopUpMenu ),NULL,NULL,NULL,NULL,0,0 );
+	gtkVisiblePopUpMenu=1;
+	break;
   }
  gtkShMem->message=0;
 }

Index: widgets.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/widgets.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- widgets.c	20 Sep 2001 10:27:24 -0000	1.10
+++ widgets.c	14 Nov 2001 16:04:09 -0000	1.11
@@ -22,18 +22,12 @@
 #include "../../help_mp.h"
 #include "../error.h"
 
-#include "pixmaps/up.xpm"
-#include "pixmaps/dir.xpm"
-#include "pixmaps/file.xpm"
-#include "pixmaps/about.xpm"
-#include "pixmaps/error.xpm"
-#include "pixmaps/warning.xpm"
-
 GtkWidget     * SkinBrowser;
 GtkWidget     * PlayList;
 GtkWidget     * FileSelect;
 GtkWidget     * AboutBox;
 GtkWidget     * Options;
+GtkWidget     * PopUpMenu;
 
 GtkWidget     * MessageBox;
 
@@ -46,6 +40,7 @@
 int             gtkVisibleMessageBox = 0;
 int             gtkVisibleAboutBox = 0;
 int             gtkVisibleOptions = 0;
+int             gtkVisiblePopUpMenu = 0;
 
 gtkCommStruct * gtkShMem;
 
@@ -55,6 +50,7 @@
 #include "gtk/mb.h"
 #include "gtk/about.h"
 #include "gtk/opts.h"
+#include "gtk/menu.h"
 
 void widgetsCreate( void )
 {
@@ -64,6 +60,7 @@
  FileSelect=create_FileSelect();
  MessageBox=create_MessageBox(0);
  Options=create_Options();
+ PopUpMenu=create_PopUpMenu();
 }
 
 // --- forked function




More information about the MPlayer-cvslog mailing list