Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2012-02-28 14:43:32 +0000
committerCarolyn MacLeod2012-03-06 21:46:51 +0000
commitd064821ef5de8ff4063894d709d8221c6beb983e (patch)
tree974daa474c318caf4685727cc787b69e86d18b6e /bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
parent0d33c8649e8a0bd7ef78f3f1bceecb64e6067f50 (diff)
downloadeclipse.platform.swt-d064821ef5de8ff4063894d709d8221c6beb983e.tar.gz
eclipse.platform.swt-d064821ef5de8ff4063894d709d8221c6beb983e.tar.xz
eclipse.platform.swt-d064821ef5de8ff4063894d709d8221c6beb983e.zip
Replace usage of GDK_DISPLAY with gdk_x11_display_get_xdisplay.
GDK_DISPLAY macro is deprecated and removed in gtk3. The function used is in gtk since 2.2.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
index 01c8304d17..86bcbd877c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
@@ -1299,18 +1299,6 @@ fail:
}
#endif
-#ifndef NO__1GDK_1DISPLAY
-JNIEXPORT jintLong JNICALL OS_NATIVE(_1GDK_1DISPLAY)
- (JNIEnv *env, jclass that)
-{
- jintLong rc = 0;
- OS_NATIVE_ENTER(env, that, _1GDK_1DISPLAY_FUNC);
- rc = (jintLong)GDK_DISPLAY();
- OS_NATIVE_EXIT(env, that, _1GDK_1DISPLAY_FUNC);
- return rc;
-}
-#endif
-
#ifndef NO__1GDK_1PIXMAP_1XID
JNIEXPORT jintLong JNICALL OS_NATIVE(_1GDK_1PIXMAP_1XID)
(JNIEnv *env, jclass that, jintLong arg0)
@@ -7403,6 +7391,18 @@ JNIEXPORT jintLong JNICALL OS_NATIVE(_1gdk_1x11_1colormap_1get_1xcolormap)
}
#endif
+#ifndef NO__1gdk_1x11_1display_1get_1xdisplay
+JNIEXPORT jintLong JNICALL OS_NATIVE(_1gdk_1x11_1display_1get_1xdisplay)
+ (JNIEnv *env, jclass that, jintLong arg0)
+{
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, _1gdk_1x11_1display_1get_1xdisplay_FUNC);
+ rc = (jintLong)gdk_x11_display_get_xdisplay((GdkDisplay *)arg0);
+ OS_NATIVE_EXIT(env, that, _1gdk_1x11_1display_1get_1xdisplay_FUNC);
+ return rc;
+}
+#endif
+
#ifndef NO__1gdk_1x11_1drawable_1get_1xdisplay
JNIEXPORT jintLong JNICALL OS_NATIVE(_1gdk_1x11_1drawable_1get_1xdisplay)
(JNIEnv *env, jclass that, jintLong arg0)

Back to the top