From 6827b4fb72f9fbeb64b41a06ae967be4214c1593 Mon Sep 17 00:00:00 2001 From: Andrew Niefer Date: Wed, 22 Nov 2006 16:19:23 +0000 Subject: Add JNI call for showSplash --- bundles/org.eclipse.equinox.launcher/library/eclipseJNI.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'bundles') diff --git a/bundles/org.eclipse.equinox.launcher/library/eclipseJNI.c b/bundles/org.eclipse.equinox.launcher/library/eclipseJNI.c index 89230f58b..124af16ad 100644 --- a/bundles/org.eclipse.equinox.launcher/library/eclipseJNI.c +++ b/bundles/org.eclipse.equinox.launcher/library/eclipseJNI.c @@ -95,9 +95,14 @@ static void registerNatives(JNIEnv *env) { static void splash(JNIEnv *env, jstring s) { const _TCHAR* data; - data = JNI_GetStringChars(env, s); - showSplash(data); - JNI_ReleaseStringChars(env, s, data); + /* Don't show the splash if there is already one up. + * TODO Do we want to support changing the image here? + */ + if(getSplashHandle() == 0) { + data = JNI_GetStringChars(env, s); + showSplash(data); + JNI_ReleaseStringChars(env, s, data); + } } static void setExitData(JNIEnv *env, jstring s){ -- cgit v1.2.3