mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-29 09:52:29 +01:00
simplify WMWritePropListToFile()
remove the choice of atomic/non-atomic writes. firstly, the only users of non-atomic writes were getstyle and geticonset; secondly, who in their right minds would ever want non-atomic writes; thirdly, the file system will screw you anyway *G*.
This commit is contained in:
committed by
Carlos R. Mafra
parent
833128385f
commit
badecc244b
@@ -612,11 +612,11 @@ int main(int argc, char **argv)
|
||||
path = wmalloc(strlen(ThemePath) + 32);
|
||||
strcpy(path, ThemePath);
|
||||
strcat(path, "/style");
|
||||
WMWritePropListToFile(style, path, False);
|
||||
WMWritePropListToFile(style, path);
|
||||
wfree(path);
|
||||
} else {
|
||||
if (style_file) {
|
||||
WMWritePropListToFile(style, style_file, False);
|
||||
WMWritePropListToFile(style, style_file);
|
||||
} else {
|
||||
puts(WMGetPropListDescription(style, True));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user