From: "Rodolfo García Peñas (kix)" <[email protected]>

The file winmenu.h includes the function prototypes for winmenu.c.

The prototypes included were moved from funcs.h.

Signed-off-by: Rodolfo García Peñas (kix) <[email protected]>
---
 src/Makefile.am |    1 +
 src/defaults.c  |    1 +
 src/event.c     |    1 +
 src/funcs.h     |    9 ---------
 src/icon.c      |    1 +
 src/menu.c      |    2 +-
 src/window.c    |    1 +
 src/winmenu.c   |    1 +
 src/winmenu.h   |   31 +++++++++++++++++++++++++++++++
 9 files changed, 38 insertions(+), 10 deletions(-)
 create mode 100644 src/winmenu.h

diff --git a/src/Makefile.am b/src/Makefile.am
index 126b51d..8c7f764 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -101,6 +101,7 @@ wmaker_SOURCES =    \
        window.c \
        window.h \
        winmenu.c \
+       winmenu.h \
        winspector.h \
        winspector.c \
        wmspec.h \
diff --git a/src/defaults.c b/src/defaults.c
index 2ffe4d9..a573137 100644
--- a/src/defaults.c
+++ b/src/defaults.c
@@ -63,6 +63,7 @@
 #include "properties.h"
 #include "misc.h"
 #include "event.h"
+#include "winmenu.h"
 
 #define MAX_SHORTCUT_LENGTH 32
 
diff --git a/src/event.c b/src/event.c
index b81bb88..5ccf11d 100644
--- a/src/event.c
+++ b/src/event.c
@@ -73,6 +73,7 @@
 #include "shutdown.h"
 #include "misc.h"
 #include "event.h"
+#include "winmenu.h"
 
 /******** Global Variables **********/
 extern XContext wWinContext;
diff --git a/src/funcs.h b/src/funcs.h
index a9cb1c8..82d0734 100644
--- a/src/funcs.h
+++ b/src/funcs.h
@@ -43,13 +43,4 @@ void UpdateSwitchMenu(WScreen *scr, WWindow *wwin, int 
action);
 void OpenSwitchMenu(WScreen *scr, int x, int y, int keyboard);
 void InitializeSwitchMenu(void);
 
-
-/* ---[ winmenu.c ]------------------------------------------------------- */
-
-void OpenWindowMenu(WWindow *wwin, int x, int y, int keyboard);
-void OpenWindowMenu2(WWindow *wwin, int x, int y, int keyboard);
-void OpenMiniwindowMenu(WWindow *wwin, int x, int y);
-void CloseWindowMenu(WScreen *scr);
-void DestroyWindowMenu(WScreen *scr);
-
 #endif
diff --git a/src/icon.c b/src/icon.c
index b292c88..6a93b7a 100644
--- a/src/icon.c
+++ b/src/icon.c
@@ -46,6 +46,7 @@
 #include "misc.h"
 #include "startup.h"
 #include "event.h"
+#include "winmenu.h"
 
 /**** Global varianebles ****/
 extern WPreferences wPreferences;
diff --git a/src/menu.c b/src/menu.c
index 696daa0..ddf01e6 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -37,7 +37,7 @@
 #include "framewin.h"
 #include "menu.h"
 #include "actions.h"
-#include "funcs.h"
+#include "winmenu.h"
 #include "stacking.h"
 #include "xinerama.h"
 #include "workspace.h"
diff --git a/src/window.c b/src/window.c
index 1dee587..5b42d0c 100644
--- a/src/window.c
+++ b/src/window.c
@@ -62,6 +62,7 @@
 #include "placement.h"
 #include "misc.h"
 #include "startup.h"
+#include "winmenu.h"
 
 #ifdef MWM_HINTS
 # include "motif.h"
diff --git a/src/winmenu.c b/src/winmenu.c
index aa2bb24..07735d2 100644
--- a/src/winmenu.c
+++ b/src/winmenu.c
@@ -46,6 +46,7 @@
 #include "stacking.h"
 #include "icon.h"
 #include "xinerama.h"
+#include "winmenu.h"
 
 #define MC_MAXIMIZE    0
 #define MC_MINIATURIZE 1
diff --git a/src/winmenu.h b/src/winmenu.h
new file mode 100644
index 0000000..f8b6e88
--- /dev/null
+++ b/src/winmenu.h
@@ -0,0 +1,31 @@
+/*
+ *  Window Maker window manager
+ *
+ *  Copyright (c) 1997-2003 Alfredo K. Kojima
+ *  Copyright (c) 2013 Window Maker Team
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License along
+ *  with this program; if not, write to the Free Software Foundation, Inc.,
+ *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef WMWINMENU_H
+#define WMWINMENU_H
+
+void OpenWindowMenu(WWindow *wwin, int x, int y, int keyboard);
+void OpenWindowMenu2(WWindow *wwin, int x, int y, int keyboard);
+void OpenMiniwindowMenu(WWindow *wwin, int x, int y);
+void CloseWindowMenu(WScreen *scr);
+void DestroyWindowMenu(WScreen *scr);
+
+#endif /* WMWINMENU_H */
-- 
1.7.10.4


-- 
To unsubscribe, send mail to [email protected].

Reply via email to