Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2007-10-05 19:11:41 +0000
committerAndrew Niefer2007-10-05 19:11:41 +0000
commit6910ee9a8a90ea2ae43b98cc68d0ffe1a04fd0d2 (patch)
tree7b1de185afa8746f6a5cd13f4f23f98d72086a3a /bundles/org.eclipse.equinox.executable/library/motif/eclipseMotifCommon.c
parent924619f48567bc2fae2e73a85e693a6432b01546 (diff)
downloadrt.equinox.framework-6910ee9a8a90ea2ae43b98cc68d0ffe1a04fd0d2.tar.gz
rt.equinox.framework-6910ee9a8a90ea2ae43b98cc68d0ffe1a04fd0d2.tar.xz
rt.equinox.framework-6910ee9a8a90ea2ae43b98cc68d0ffe1a04fd0d2.zip
bug 198981
Diffstat (limited to 'bundles/org.eclipse.equinox.executable/library/motif/eclipseMotifCommon.c')
-rw-r--r--bundles/org.eclipse.equinox.executable/library/motif/eclipseMotifCommon.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.executable/library/motif/eclipseMotifCommon.c b/bundles/org.eclipse.equinox.executable/library/motif/eclipseMotifCommon.c
index 998f53cb1..041450dd0 100644
--- a/bundles/org.eclipse.equinox.executable/library/motif/eclipseMotifCommon.c
+++ b/bundles/org.eclipse.equinox.executable/library/motif/eclipseMotifCommon.c
@@ -84,6 +84,7 @@ void displayMessage( char* title, char* message )
int initWindowSystem( int* pArgc, char* argv[], int showSplash )
{
Arg arg[20];
+ char * officialName;
if(motifInitialized == 1)
return 0;
@@ -97,14 +98,18 @@ int initWindowSystem( int* pArgc, char* argv[], int showSplash )
saveArgc = *pArgc;
saveArgv = argv;
}
-
+
+ officialName = getOfficialName();
+ if (officialName != NULL)
+ setenv("RESOURCE_NAME", getOfficialName(), 1);
+
/* Create the top level shell that will not be used other than
to initialize the application.
*/
#ifdef AIX
- topWindow = XtInitialize(NULL, getOfficialName(), NULL, 0, pArgc, argv);
+ topWindow = XtInitialize(NULL, officialName, NULL, 0, pArgc, argv);
#else
- topWindow = motif.XtInitialize(NULL, getOfficialName(), NULL, 0, pArgc, argv);
+ topWindow = motif.XtInitialize(NULL, officialName, NULL, 0, pArgc, argv);
#endif
appContext = motif.XtWidgetToApplicationContext(topWindow);
motif.XtSetLanguageProc (appContext, NULL, NULL);

Back to the top