1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-15 05:25:53 +01:00

- Mapping a new window that belongs to a running application that is hidden,

will unhide the application.
- removed a wsyserror() message when reading a property list from file
  (the programmer should decide if to give that message or just ignore).
This commit is contained in:
dan
2001-11-24 05:10:38 +00:00
parent 06b48596f5
commit 81a1f98ca5
4 changed files with 19 additions and 5 deletions

View File

@@ -1544,14 +1544,15 @@ WMReadPropListFromFile(char *file)
f = fopen(file, "r");
if (!f) {
wsyserror(_("could not open domain file %s for reading"), file);
/* let the user print the error message if he really needs to */
/*wsyserror(_("could not open domain file '%s' for reading"), file);*/
return NULL;
}
if (stat(file, &stbuf)==0) {
length = (size_t) stbuf.st_size;
} else {
wsyserror(_("could not get size for domain file %s"), file);
wsyserror(_("could not get size for file '%s'"), file);
fclose(f);
return NULL;
}
@@ -1563,7 +1564,7 @@ WMReadPropListFromFile(char *file)
pldata->lineNumber = 1;
if (fread(pldata->ptr, length, 1, f) != 1) {
wsyserror(_("error reading from file %s"), file);
wsyserror(_("error reading from file '%s'"), file);
plist = NULL;
goto cleanup;
}