[MPlayer-cvslog] r38054 - in trunk/gui/dialog: menu.c menu.h
ib
subversion at mplayerhq.hu
Thu Apr 5 16:33:01 EEST 2018
Author: ib
Date: Thu Apr 5 16:33:01 2018
New Revision: 38054
Log:
Make AddMenuItem(), AddSubMenu() and AddSeparator() static.
They only have file scope.
Modified:
trunk/gui/dialog/menu.c
trunk/gui/dialog/menu.h
Modified: trunk/gui/dialog/menu.c
==============================================================================
--- trunk/gui/dialog/menu.c Thu Apr 5 16:30:17 2018 (r38053)
+++ trunk/gui/dialog/menu.c Thu Apr 5 16:33:01 2018 (r38054)
@@ -157,7 +157,8 @@ static GtkWidget * AddMenuCheckItem(GtkW
return Item;
}
-GtkWidget * AddMenuItem( GtkWidget *window1, const char * immagine_xpm, GtkWidget * SubMenu,const char * label,int Number )
+
+static GtkWidget * AddMenuItem( GtkWidget *window1, const char * immagine_xpm, GtkWidget * SubMenu,const char * label,int Number )
{
GtkWidget * Label = NULL;
GtkWidget * Pixmap = NULL;
@@ -189,8 +190,7 @@ GtkWidget * AddMenuItem( GtkWidget *wind
return Item;
}
-
-GtkWidget * AddSubMenu( GtkWidget *window1, const char * immagine_xpm, GtkWidget * Menu,const char * label )
+static GtkWidget * AddSubMenu( GtkWidget *window1, const char * immagine_xpm, GtkWidget * Menu,const char * label )
{
GtkWidget * Label = NULL;
GtkWidget * Pixmap = NULL;
@@ -221,7 +221,7 @@ GtkWidget * AddSubMenu( GtkWidget *windo
return Item;
}
-GtkWidget * AddSeparator( GtkWidget * Menu )
+static GtkWidget * AddSeparator( GtkWidget * Menu )
{
GtkWidget * Item = NULL;
Modified: trunk/gui/dialog/menu.h
==============================================================================
--- trunk/gui/dialog/menu.h Thu Apr 5 16:30:17 2018 (r38053)
+++ trunk/gui/dialog/menu.h Thu Apr 5 16:33:01 2018 (r38054)
@@ -24,9 +24,6 @@
extern int gtkPopupMenu;
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( int );
#endif /* MPLAYER_GUI_MENU_H */
More information about the MPlayer-cvslog
mailing list