mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-06 16:25:50 +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
@@ -135,7 +135,7 @@ int main(int argc, char **argv)
|
||||
WMReleasePropList(key);
|
||||
}
|
||||
|
||||
WMWritePropListToFile(style, file, True);
|
||||
WMWritePropListToFile(style, file);
|
||||
|
||||
exit(0);
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
if (argc == 2) {
|
||||
WMWritePropListToFile(iconset, argv[1], False);
|
||||
WMWritePropListToFile(iconset, argv[1]);
|
||||
} else {
|
||||
puts(WMGetPropListDescription(iconset, True));
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
@@ -135,7 +135,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
WMWritePropListToFile(all_windows, path, True);
|
||||
WMWritePropListToFile(all_windows, path);
|
||||
|
||||
exit(0);
|
||||
}
|
||||
|
||||
@@ -536,7 +536,7 @@ int main(int argc, char **argv)
|
||||
|
||||
WMMergePLDictionaries(prop, style, True);
|
||||
|
||||
WMWritePropListToFile(prop, path, True);
|
||||
WMWritePropListToFile(prop, path);
|
||||
{
|
||||
XEvent ev;
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ int main(int argc, char **argv)
|
||||
WMPutInPLDictionary(dict, key, value);
|
||||
}
|
||||
|
||||
WMWritePropListToFile(dict, path, True);
|
||||
WMWritePropListToFile(dict, path);
|
||||
wfree(path);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user