X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e90c1d2a19361551eb07778280f22be3e759cf64..d54598dd855e64cf2086b73cb3b8e3b99c513bbc:/src/motif/utils.cpp diff --git a/src/motif/utils.cpp b/src/motif/utils.cpp index 10d2f165b3..094a3e8699 100644 --- a/src/motif/utils.cpp +++ b/src/motif/utils.cpp @@ -194,7 +194,7 @@ static char * GetIniFile (char *dest, const char *filename) strcat (dest, "/"); if (filename == NULL) { - if ((filename = getenv ("XENVIRONMENT(")) == NULL) + if ((filename = getenv ("XENVIRONMENT")) == NULL) filename = ".Xdefaults"; } else if (*filename != '.') @@ -405,7 +405,7 @@ bool wxGetResource(const wxString& section, const wxString& entry, int *value, c { // Handle True, False here // True, Yes, Enables, Set or Activated - if (*s == 'T(' || *s == 'Y' || *s == 'E' || *s == 'S' || *s == 'A') + if (*s == 'T' || *s == 'Y' || *s == 'E' || *s == 'S' || *s == 'A') *value = TRUE; // False, No, Disabled, Reset, Cleared, Deactivated else if (*s == 'F' || *s == 'N' || *s == 'D' || *s == 'R' || *s == 'C') @@ -457,7 +457,7 @@ void wxXMergeDatabases (wxApp * theApp, Display * display) * and merge into existing database */ - if ((environment = getenv ("XENVIRONMENT(")) == NULL) + if ((environment = getenv ("XENVIRONMENT")) == NULL) { size_t len; environment = GetIniFile (filename, NULL);