1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 04:48:06 +01:00

Add NEWS and fix a typo bug in user menu.

This commit is contained in:
id
1999-04-18 06:07:04 +00:00
parent eb8adc46f5
commit b54a5f65e4
2 changed files with 28 additions and 0 deletions

27
NEWS
View File

@@ -48,6 +48,33 @@ If it will not be able to restart or start the alternate window manager, it
will abort and leave the core file. will abort and leave the core file.
Application User Menu
---------------------
Applications with application icon can have menu which defined by user.
This menu will send fake keyboard event to applications' windows so
applications must response the short cut key that was sent by user menu.
To Enable this feature, you have to put
#define USER_MENU
in wconfig.h and place menu files in directory ~GNUstep/Defaults/UserMenus.
(or /usr/local/etc/WindowMaker/UserMenus for global setting)
Menu is in PropList format and the filename is in format
<instance name>.<class name>.menu or application's main window.
(for example, menu for xcalc is xcalc.XCalc.menu)
Example syntax
(
"Calculator",
("Put 1", SHORTCUT, "2"),
("Functions",
("Put 2", SHORTCUT, "2"),
("Put 3,4 and 5", SHORTCUT, (3,4,5))
),
("Exit", SHORTCUT, "Control+q"),
)
--- 0.52.0 --- 0.52.0

View File

@@ -333,6 +333,7 @@ wUserMenuGet(WScreen *scr, WWindow *wwin)
char *tmp; char *tmp;
tmp=wmalloc(strlen(wwin->wm_instance)+strlen(wwin->wm_class)+7); tmp=wmalloc(strlen(wwin->wm_instance)+strlen(wwin->wm_class)+7);
sprintf(tmp,"%s.%s.menu",wwin->wm_instance,wwin->wm_class);
path = wfindfile(DEF_USER_MENU_PATHS,tmp); path = wfindfile(DEF_USER_MENU_PATHS,tmp);
free(tmp); free(tmp);