// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// the Real User, then determine the Real home dir.
static char *GetIniFile(char *dest, const char *filename)
{
// the Real User, then determine the Real home dir.
static char *GetIniFile(char *dest, const char *filename)
{
if (XResourceManagerString(GDK_DISPLAY()) != NULL) {
serverDB = XrmGetStringDatabase(XResourceManagerString(GDK_DISPLAY()));
} else {
if (XResourceManagerString(GDK_DISPLAY()) != NULL) {
serverDB = XrmGetStringDatabase(XResourceManagerString(GDK_DISPLAY()));
} else {
len = strlen(environment);
#if !defined(SVR4) || defined(__sgi)
(void)gethostname(environment + len, 1024 - len);
len = strlen(environment);
#if !defined(SVR4) || defined(__sgi)
(void)gethostname(environment + len, 1024 - len);
// If file doesn't exist, create it first.
(void)GetResourcePath(nameBuffer, file, TRUE);
// If file doesn't exist, create it first.
(void)GetResourcePath(nameBuffer, file, TRUE);
bool wxGetResource(const wxString& section, const wxString& entry, float *value, const wxString& file )
{
bool wxGetResource(const wxString& section, const wxString& entry, float *value, const wxString& file )
{
bool succ = wxGetResource(section, entry, &s, file);
if (succ) {
bool succ = wxGetResource(section, entry, &s, file);
if (succ) {
bool wxGetResource(const wxString& section, const wxString& entry, long *value, const wxString& file )
{
bool wxGetResource(const wxString& section, const wxString& entry, long *value, const wxString& file )
{
bool succ = wxGetResource(section, entry, &s, file);
if (succ) {
bool succ = wxGetResource(section, entry, &s, file);
if (succ) {
bool wxGetResource(const wxString& section, const wxString& entry, int *value, const wxString& file )
{
bool wxGetResource(const wxString& section, const wxString& entry, int *value, const wxString& file )
{
bool succ = wxGetResource(section, entry, &s, file);
if (succ) {
// Handle True, False here
bool succ = wxGetResource(section, entry, &s, file);
if (succ) {
// Handle True, False here