// Put in standard place for resource files if not absolute
strcpy(buf, DEFAULT_XRESOURCE_DIR);
strcat(buf, "/");
strcat(buf, FileNameFromPath(name));
}
// Put in standard place for resource files if not absolute
strcpy(buf, DEFAULT_XRESOURCE_DIR);
strcat(buf, "/");
strcat(buf, FileNameFromPath(name));
}
// Touch the file to create it
FILE *fd = fopen(buf, "w");
if (fd) fclose(fd);
// Touch the file to create it
FILE *fd = fopen(buf, "w");
if (fd) fclose(fd);
// window when the server initializes and loaded into the display
// structure on XOpenDisplay;
// if not defined, use .Xdefaults
// window when the server initializes and loaded into the display
// structure on XOpenDisplay;
// if not defined, use .Xdefaults
(void)GetIniFile(filename, (char *) NULL);
serverDB = XrmGetFileDatabase(filename);
}
(void)GetIniFile(filename, (char *) NULL);
serverDB = XrmGetFileDatabase(filename);
}
// Open XENVIRONMENT file, or if not defined, the .Xdefaults,
// and merge into existing database
// Open XENVIRONMENT file, or if not defined, the .Xdefaults,
// and merge into existing database
size_t len;
environment = GetIniFile(filename, (const char *) NULL);
len = strlen(environment);
size_t len;
environment = GetIniFile(filename, (const char *) NULL);
len = strlen(environment);
// called on application exit
//-----------------------------------------------------------------------------
// called on application exit
//-----------------------------------------------------------------------------
char buffer[500];
// Is this right? Trying to get it to look in the user's
// home directory instead of current directory -- JACS
(void)GetIniFile(buffer, file);
char buffer[500];
// Is this right? Trying to get it to look in the user's
// home directory instead of current directory -- JACS
(void)GetIniFile(buffer, file);
database = XrmGetFileDatabase(buffer);
wxLogTrace(wxTraceResAlloc, "Get: Number = %d", wxTheResourceCache->Number());
wxTheResourceCache->Append(buffer, (wxObject *)database);
database = XrmGetFileDatabase(buffer);
wxLogTrace(wxTraceResAlloc, "Get: Number = %d", wxTheResourceCache->Number());
wxTheResourceCache->Append(buffer, (wxObject *)database);
bool success = XrmGetResource(database, buf, "*", str_type, &xvalue);
// Try different combinations of upper/lower case, just in case...
bool success = XrmGetResource(database, buf, "*", str_type, &xvalue);
// Try different combinations of upper/lower case, just in case...
buf[0] = (isupper(buf[0]) ? tolower(buf[0]) : toupper(buf[0]));
success = XrmGetResource(database, buf, "*", str_type, &xvalue);
}
buf[0] = (isupper(buf[0]) ? tolower(buf[0]) : toupper(buf[0]));
success = XrmGetResource(database, buf, "*", str_type, &xvalue);
}
{
char *s = (char *) NULL;
bool succ = wxGetResource(section, entry, &s, file);
{
char *s = (char *) NULL;
bool succ = wxGetResource(section, entry, &s, file);
{
char *s = (char *) NULL;
bool succ = wxGetResource(section, entry, &s, file);
{
char *s = (char *) NULL;
bool succ = wxGetResource(section, entry, &s, file);
{
char *s = (char *) NULL;
bool succ = wxGetResource(section, entry, &s, file);
{
char *s = (char *) NULL;
bool succ = wxGetResource(section, entry, &s, file);
// Handle True, False here
// True, Yes, Enables, Set or Activated
if (*s == 'T' || *s == 'Y' || *s == 'E' || *s == 'S' || *s == 'A')
// Handle True, False here
// True, Yes, Enables, Set or Activated
if (*s == 'T' || *s == 'Y' || *s == 'E' || *s == 'S' || *s == 'A')