1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

New header file winmenu.h

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) <kix@kix.es>
This commit is contained in:
Rodolfo García Peñas (kix)
2013-05-15 13:07:55 +02:00
committed by Carlos R. Mafra
parent 20a695f70f
commit 9ededf6cb2
9 changed files with 38 additions and 10 deletions

View File

@@ -101,6 +101,7 @@ wmaker_SOURCES = \
window.c \ window.c \
window.h \ window.h \
winmenu.c \ winmenu.c \
winmenu.h \
winspector.h \ winspector.h \
winspector.c \ winspector.c \
wmspec.h \ wmspec.h \

View File

@@ -63,6 +63,7 @@
#include "properties.h" #include "properties.h"
#include "misc.h" #include "misc.h"
#include "event.h" #include "event.h"
#include "winmenu.h"
#define MAX_SHORTCUT_LENGTH 32 #define MAX_SHORTCUT_LENGTH 32

View File

@@ -73,6 +73,7 @@
#include "shutdown.h" #include "shutdown.h"
#include "misc.h" #include "misc.h"
#include "event.h" #include "event.h"
#include "winmenu.h"
/******** Global Variables **********/ /******** Global Variables **********/
extern XContext wWinContext; extern XContext wWinContext;

View File

@@ -43,13 +43,4 @@ void UpdateSwitchMenu(WScreen *scr, WWindow *wwin, int action);
void OpenSwitchMenu(WScreen *scr, int x, int y, int keyboard); void OpenSwitchMenu(WScreen *scr, int x, int y, int keyboard);
void InitializeSwitchMenu(void); 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 #endif

View File

@@ -46,6 +46,7 @@
#include "misc.h" #include "misc.h"
#include "startup.h" #include "startup.h"
#include "event.h" #include "event.h"
#include "winmenu.h"
/**** Global varianebles ****/ /**** Global varianebles ****/
extern WPreferences wPreferences; extern WPreferences wPreferences;

View File

@@ -37,7 +37,7 @@
#include "framewin.h" #include "framewin.h"
#include "menu.h" #include "menu.h"
#include "actions.h" #include "actions.h"
#include "funcs.h" #include "winmenu.h"
#include "stacking.h" #include "stacking.h"
#include "xinerama.h" #include "xinerama.h"
#include "workspace.h" #include "workspace.h"

View File

@@ -62,6 +62,7 @@
#include "placement.h" #include "placement.h"
#include "misc.h" #include "misc.h"
#include "startup.h" #include "startup.h"
#include "winmenu.h"
#ifdef MWM_HINTS #ifdef MWM_HINTS
# include "motif.h" # include "motif.h"

View File

@@ -46,6 +46,7 @@
#include "stacking.h" #include "stacking.h"
#include "icon.h" #include "icon.h"
#include "xinerama.h" #include "xinerama.h"
#include "winmenu.h"
#define MC_MAXIMIZE 0 #define MC_MAXIMIZE 0
#define MC_MINIATURIZE 1 #define MC_MINIATURIZE 1

31
src/winmenu.h Normal file
View File

@@ -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 */