1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-18 20:10:29 +01:00

WPrefs: Inform user which menu file is being edited.

This commit is contained in:
Doug Torrance
2017-08-19 10:48:44 -04:00
committed by Carlos R. Mafra
parent f63635dd17
commit 2dbd778ed4

View File

@@ -1483,7 +1483,7 @@ static WMPropList *getDefaultMenu(_Panel * panel)
static void showData(_Panel * panel) static void showData(_Panel * panel)
{ {
const char *gspath; const char *gspath;
char *menuPath; char *menuPath, *labelText;
char buf[1024]; char buf[1024];
WMPropList *pmenu; WMPropList *pmenu;
@@ -1554,6 +1554,14 @@ static void showData(_Panel * panel)
panel->menuPath = menuPath; panel->menuPath = menuPath;
snprintf(buf, 1024,
_("\n\nWhen saved, the menu will be written to the file\n\"%s\"."),
menuPath);
labelText = WMGetLabelText(panel->sections[NoInfo][0]);
labelText = wstrconcat(labelText, buf);
WMSetLabelText(panel->sections[NoInfo][0], labelText);
wfree(labelText);
buildMenuFromPL(panel, pmenu); buildMenuFromPL(panel, pmenu);
WMReleasePropList(pmenu); WMReleasePropList(pmenu);