1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-23 22:52:34 +01:00

added WINDOWS_MENU to rootmenu

This commit is contained in:
kojima
2001-02-17 21:44:22 +00:00
parent 50e85f57f2
commit b04c4ea500
10 changed files with 232 additions and 143 deletions

View File

@@ -40,6 +40,7 @@ typedef enum {
PipeInfo,
DirectoryInfo,
WSMenuInfo,
WWindowListInfo,
LastInfo
} InfoType;
@@ -461,6 +462,7 @@ createPanel(_Panel *p)
panel->markerPix[PipeInfo] = pixm;
panel->markerPix[DirectoryInfo] = pixm;
panel->markerPix[WSMenuInfo] = pixm;
panel->markerPix[WWindowListInfo] = pixm;
XFreeGC(dpy, gc);
}
@@ -495,6 +497,7 @@ createPanel(_Panel *p)
data = putNewItem(panel, pad, PipeInfo, _("Generated Submenu"));
data = putNewItem(panel, pad, DirectoryInfo, _("Directory Contents"));
data = putNewItem(panel, pad, WSMenuInfo, _("Workspace Menu"));
data = putNewItem(panel, pad, WWindowListInfo, _("Window List Menu"));
panel->itemPad[0] = pad;
}
@@ -1029,6 +1032,8 @@ parseCommand(proplist_t item)
}
} else if (strcmp(command, "WORKSPACE_MENU") == 0) {
data->type = WSMenuInfo;
} else if (strcmp(command, "WINDOWS_MENU") == 0) {
data->type = WWindowListInfo;
} else {
int cmd;
@@ -1114,6 +1119,10 @@ updateFrameTitle(_Panel *panel, char *title, InfoType type)
tmp = wstrconcat(title, _(": Open Workspaces Submenu"));
break;
case WWindowListInfo:
tmp = wstrconcat(title, _(": Open Window List Submenu"));
break;
default:
tmp = NULL;
break;
@@ -1704,6 +1713,10 @@ processData(char *title, ItemData *data)
PLAppendArrayElement(item, PLMakeString("WORKSPACE_MENU"));
break;
case WWindowListInfo:
PLAppendArrayElement(item, PLMakeString("WINDOWS_MENU"));
break;
default:
assert(0);
break;