From: Christophe CURIS <christophe.cu...@free.fr> ...to stay in line with coding style --- WPrefs.app/FontSimple.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/WPrefs.app/FontSimple.c b/WPrefs.app/FontSimple.c index ca1feb0..b6cdaf4 100644 --- a/WPrefs.app/FontSimple.c +++ b/WPrefs.app/FontSimple.c @@ -589,17 +589,17 @@ static void showData(_Panel * panel) if (ofont) wfree(ofont); - if (strcmp(fontOptions[i].option,"SystemFont")==0 || - strcmp(fontOptions[i].option,"BoldSystemFont")==0) { + if (strcmp(fontOptions[i].option, "SystemFont") == 0 || + strcmp(fontOptions[i].option, "BoldSystemFont") == 0) { char *path; WMUserDefaults *defaults; + path = wdefaultspathfordomain("WMGLOBAL"); defaults = WMGetDefaultsFromPath(path); wfree(path); font = WMGetUDStringForKey(defaults, fontOptions[i].option); - } - else { + } else { font = GetStringForKey(fontOptions[i].option); } if (font) @@ -622,10 +622,11 @@ static void storeData(_Panel * panel) font = WMGetMenuItemRepresentedObject(item); if (font && *font) { - if (strcmp(fontOptions[i].option,"SystemFont")==0 || - strcmp(fontOptions[i].option,"BoldSystemFont")==0) { + if (strcmp(fontOptions[i].option, "SystemFont") == 0 || + strcmp(fontOptions[i].option, "BoldSystemFont") == 0) { char *path; WMUserDefaults *defaults; + path = wdefaultspathfordomain("WMGLOBAL"); defaults = WMGetDefaultsFromPath(path); wfree(path); @@ -633,8 +634,7 @@ static void storeData(_Panel * panel) font, fontOptions[i].option); WMSaveUserDefaults(defaults); - } - else { + } else { SetStringForKey(font, fontOptions[i].option); } } -- 1.9.2 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.