[MPlayer-cvslog] r38038 - in trunk/gui/dialog: dialog.c menu.c	menu.h
    ib 
    subversion at mplayerhq.hu
       
    Wed Apr  4 17:46:10 EEST 2018
    
    
  
Author: ib
Date: Wed Apr  4 17:46:09 2018
New Revision: 38038
Log:
Pass window type to the (pop-up) menu.
This informs the menu which window made it pop up.
Modified:
   trunk/gui/dialog/dialog.c
   trunk/gui/dialog/menu.c
   trunk/gui/dialog/menu.h
Modified: trunk/gui/dialog/dialog.c
==============================================================================
--- trunk/gui/dialog/dialog.c	Wed Apr  4 17:31:26 2018	(r38037)
+++ trunk/gui/dialog/dialog.c	Wed Apr  4 17:46:09 2018	(r38038)
@@ -325,7 +325,7 @@ void gtkShow(int type, char *param)
             gtk_widget_destroy(PopUpMenu);
         }
 
-        PopUpMenu = CreatePopUpMenu();
+        PopUpMenu = CreatePopUpMenu((int)param);
         gtk_menu_popup(GTK_MENU(PopUpMenu), NULL, NULL, NULL, NULL, 0, 0);
         break;
 
Modified: trunk/gui/dialog/menu.c
==============================================================================
--- trunk/gui/dialog/menu.c	Wed Apr  4 17:31:26 2018	(r38037)
+++ trunk/gui/dialog/menu.c	Wed Apr  4 17:46:09 2018	(r38038)
@@ -458,7 +458,7 @@ GtkWidget * VCDTitleMenu;
 GtkWidget * CDSubMenu;
 GtkWidget * CDTitleMenu;
 
-GtkWidget * CreatePopUpMenu( void )
+GtkWidget * CreatePopUpMenu( int wType )
 {
  GtkWidget * window1;
  GtkWidget * Menu = NULL;
Modified: trunk/gui/dialog/menu.h
==============================================================================
--- trunk/gui/dialog/menu.h	Wed Apr  4 17:31:26 2018	(r38037)
+++ trunk/gui/dialog/menu.h	Wed Apr  4 17:46:09 2018	(r38038)
@@ -27,6 +27,6 @@ extern int gtkPopupMenuParam;
 GtkWidget * AddMenuItem( GtkWidget *window1, const char * immagine_xpm, GtkWidget * SubMenu, const char * label, int Number );
 GtkWidget * AddSubMenu( GtkWidget *window1, const char * immagine_xpm, GtkWidget * Menu, const char * label );
 GtkWidget * AddSeparator( GtkWidget * Menu );
-GtkWidget * CreatePopUpMenu( void );
+GtkWidget * CreatePopUpMenu( int );
 
 #endif /* MPLAYER_GUI_MENU_H */
    
    
More information about the MPlayer-cvslog
mailing list