Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdan Gheorghe2008-07-23 16:38:35 -0400
committerBogdan Gheorghe2008-07-23 16:38:35 -0400
commitc96f0bf3bf0c24dc7a893f18d7b31bcd19b82a2d (patch)
tree8045c434e11c5c4f3b67a3a912ed439ceb05e7a7
parente70f7d526adbd871a2456838efe0077b5f825c17 (diff)
downloadeclipse.platform.swt-c96f0bf3bf0c24dc7a893f18d7b31bcd19b82a2d.tar.gz
eclipse.platform.swt-c96f0bf3bf0c24dc7a893f18d7b31bcd19b82a2d.tar.xz
eclipse.platform.swt-c96f0bf3bf0c24dc7a893f18d7b31bcd19b82a2d.zip
*** empty log message ***
-rw-r--r--bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.motif.OS.properties9
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os.c14
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os_stats.c7
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os_stats.h3
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os_structs.c2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os_structs.h2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/motif/org/eclipse/swt/internal/motif/OS.java9
7 files changed, 37 insertions, 9 deletions
diff --git a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.motif.OS.properties b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.motif.OS.properties
index 026dddc345..a46cfb3d86 100644
--- a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.motif.OS.properties
+++ b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.motif.OS.properties
@@ -1,5 +1,5 @@
###############################################################################
-# Copyright (c) 2000, 2007 IBM Corporation and others.
+# Copyright (c) 2000, 2008 IBM Corporation and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
@@ -800,10 +800,15 @@ OS__XSetTSOrigin_2=
OS__XSetTSOrigin_3=
OS__XSetTile=
-OS__XSetTile_0=cast=Display *
+OS__XSetTile_0=cast=(Display *)
OS__XSetTile_1=cast=GC
OS__XSetTile_2=cast=Pixmap
+OS__XSetTransientForHint=
+OS__XSetTransientForHint_0=cast=(Display *)
+OS__XSetTransientForHint_1=cast=(Window)
+OS__XSetTransientForHint_2=cast=(Window)
+
OS__XSetWMNormalHints=
OS__XSetWMNormalHints_0=cast=Display *
OS__XSetWMNormalHints_1=cast=(Window)
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os.c
index 93ca4dba61..5ba381e12c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os.c
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -2020,6 +2020,18 @@ JNIEXPORT void JNICALL OS_NATIVE(_1XSetTile)
}
#endif
+#ifndef NO__1XSetTransientForHint
+JNIEXPORT jint JNICALL OS_NATIVE(_1XSetTransientForHint)
+ (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
+{
+ jint rc = 0;
+ OS_NATIVE_ENTER(env, that, _1XSetTransientForHint_FUNC);
+ rc = (jint)XSetTransientForHint((Display *)arg0, (Window)arg1, (Window)arg2);
+ OS_NATIVE_EXIT(env, that, _1XSetTransientForHint_FUNC);
+ return rc;
+}
+#endif
+
#ifndef NO__1XSetWMNormalHints
JNIEXPORT void JNICALL OS_NATIVE(_1XSetWMNormalHints)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2)
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os_stats.c b/bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os_stats.c
index 42f9165484..f7022ddc1d 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os_stats.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os_stats.c
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -14,8 +14,8 @@
#ifdef NATIVE_STATS
-int OS_nativeFunctionCount = 465;
-int OS_nativeFunctionCallCount[465];
+int OS_nativeFunctionCount = 466;
+int OS_nativeFunctionCallCount[466];
char * OS_nativeFunctionNames[] = {
"CODESET",
"FD_1ISSET",
@@ -160,6 +160,7 @@ char * OS_nativeFunctionNames[] = {
"_1XSetSubwindowMode",
"_1XSetTSOrigin",
"_1XSetTile",
+ "_1XSetTransientForHint",
"_1XSetWMNormalHints",
"_1XSetWindowBackgroundPixmap",
"_1XShapeCombineMask",
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os_stats.h b/bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os_stats.h
index 64954e11bc..251ed945a6 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os_stats.h
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os_stats.h
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -168,6 +168,7 @@ typedef enum {
_1XSetSubwindowMode_FUNC,
_1XSetTSOrigin_FUNC,
_1XSetTile_FUNC,
+ _1XSetTransientForHint_FUNC,
_1XSetWMNormalHints_FUNC,
_1XSetWindowBackgroundPixmap_FUNC,
_1XShapeCombineMask_FUNC,
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os_structs.c b/bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os_structs.c
index 96a1999e9b..e3544f692b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os_structs.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os_structs.c
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2006 IBM Corporation and others.
+ * Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os_structs.h b/bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os_structs.h
index 72e7c60157..eaf6fcd650 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os_structs.h
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/motif/library/os_structs.h
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2006 IBM Corporation and others.
+ * Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/motif/org/eclipse/swt/internal/motif/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/motif/org/eclipse/swt/internal/motif/OS.java
index 7dad61d413..a460711bc4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/motif/org/eclipse/swt/internal/motif/OS.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/motif/org/eclipse/swt/internal/motif/OS.java
@@ -1937,6 +1937,15 @@ public static final void XSetTile(int display, int gc, int pixmap) {
lock.unlock();
}
}
+public static final native int _XSetTransientForHint(int display, int w, int prop_window);
+public static final int XSetTransientForHint(int display, int w, int prop_window) {
+ lock.lock();
+ try {
+ return _XSetTransientForHint(display, w, prop_window);
+ } finally {
+ lock.unlock();
+ }
+}
public static final native void _XSetTSOrigin(int display, int gc, int ts_x_origin, int ts_y_origin);
public static final void XSetTSOrigin(int display, int gc, int ts_x_origin, int ts_y_origin) {
lock.lock();

Back to the top