Commit 386a49d3 authored by Adrian Robert's avatar Adrian Robert
Browse files

(x_get_string_resource): Ape just-previous changes to other platform versions....

(x_get_string_resource): Ape just-previous changes to other platform versions.  Drop support for emacs-20-style face specs.
parent 0fde1939
......@@ -2139,15 +2139,12 @@ and GNUstep implementations ("distributor-specific release
const char *res;
check_ns ();
/* Support emacs-20-style face resources for backwards compatibility */
if (!strncmp (toCheck, "Face", 4))
toCheck = name + (!strncmp (name, "emacs.", 6) ? 6 : 0);
if (inhibit_x_resources)
/* --quick was passed, so this is a no-op. */
return NULL;
/*fprintf (stderr, "Checking '%s'\n", toCheck); */
res = ns_no_defaults ? NULL :
[[[NSUserDefaults standardUserDefaults] objectForKey:
[NSString stringWithUTF8String: toCheck]] UTF8String];
res = [[[NSUserDefaults standardUserDefaults] objectForKey:
[NSString stringWithUTF8String: toCheck]] UTF8String];
return !res ? NULL :
(!strncasecmp (res, "YES", 3) ? "true" :
(!strncasecmp (res, "NO", 2) ? "false" : res));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment