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

fixed silly typo in workspace.c

added system wide menu configuration
This commit is contained in:
kojima
2003-06-06 02:51:47 +00:00
parent d159da8671
commit 2cf5931890
8 changed files with 111 additions and 16 deletions

View File

@@ -1262,6 +1262,7 @@ readMenuFile(WScreen *scr, char *file_name)
return menu;
}
/************ Menu Configuration From Pipe *************/
static WMenu*
@@ -1668,7 +1669,7 @@ configureMenu(WScreen *scr, WMPropList *definition)
if (!scr->root_menu || stat_buf.st_mtime > scr->root_menu->timestamp
/* if the pointer in WMRootMenu has changed */
|| WDRootMenu->timestamp > scr->root_menu->timestamp) {
if (menu_is_default) {
wwarning(_("using default menu file \"%s\" as the menu referenced in WMRootMenu could not be found "),
path);
@@ -1699,7 +1700,7 @@ configureMenu(WScreen *scr, WMPropList *definition)
return NULL;
}
mtitle = WMGetFromPLString(elem);
menu = wMenuCreate(scr, mtitle, False);
menu->on_destroy = removeShortcutsForMenu;
@@ -1778,12 +1779,6 @@ configureMenu(WScreen *scr, WMPropList *definition)
}
/*
*----------------------------------------------------------------------
* OpenRootMenu--