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:
committed by
Carlos R. Mafra
parent
f63635dd17
commit
2dbd778ed4
@@ -1483,7 +1483,7 @@ static WMPropList *getDefaultMenu(_Panel * panel)
|
||||
static void showData(_Panel * panel)
|
||||
{
|
||||
const char *gspath;
|
||||
char *menuPath;
|
||||
char *menuPath, *labelText;
|
||||
char buf[1024];
|
||||
WMPropList *pmenu;
|
||||
|
||||
@@ -1554,6 +1554,14 @@ static void showData(_Panel * panel)
|
||||
|
||||
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);
|
||||
|
||||
WMReleasePropList(pmenu);
|
||||
|
||||
Reference in New Issue
Block a user