From 5721cfd149c1026b4c21848f64c2b57027ac8c7e Mon Sep 17 00:00:00 2001 From: Silenio Quarti Date: Mon, 24 Sep 2012 14:45:57 -0400 Subject: Make 64-bit the default source code --- .../Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java') diff --git a/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java b/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java index 5aec4a5379..83145d88e1 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java +++ b/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java @@ -64,7 +64,7 @@ public class SWT_AWT { static boolean loaded, swingInitialized; -static native final int /*long*/ getAWTHandle (Object canvas); +static native final long /*int*/ getAWTHandle (Object canvas); static native final void setDebug (Frame canvas, boolean debug); static synchronized void loadLibrary () { @@ -152,7 +152,7 @@ public static Frame new_Frame (final Composite parent) { if ((parent.getStyle () & SWT.EMBEDDED) == 0) { SWT.error (SWT.ERROR_INVALID_ARGUMENT); } - int /*long*/ handle = parent.embeddedHandle; + long /*int*/ handle = parent.embeddedHandle; /* * Some JREs have implemented the embedded frame constructor to take an integer * and other JREs take a long. To handle this binary incompatibility, use @@ -200,9 +200,9 @@ public static Frame new_Frame (final Composite parent) { if (parent.isDisposed()) return; Shell shell = parent.getShell(); loadLibrary(); - int /*long*/ awtHandle = getAWTHandle(window); + long /*int*/ awtHandle = getAWTHandle(window); if (awtHandle == 0) return; - int /*long*/ xWindow; + long /*int*/ xWindow; if (OS.GTK_VERSION >= OS.VERSION(2, 14, 0)){ xWindow = OS.gdk_x11_drawable_get_xid(OS.gtk_widget_get_window(OS.gtk_widget_get_toplevel(shell.handle))); } else { @@ -305,7 +305,7 @@ public static Frame new_Frame (final Composite parent) { public static Shell new_Shell (final Display display, final Canvas parent) { if (display == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (parent == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); - int /*long*/ handle = 0; + long /*int*/ handle = 0; try { loadLibrary (); handle = getAWTHandle (parent); -- cgit