Skip to content

Commit 40384dd

Browse files
Merge pull request #122 from summer-alice/update-swt-4.7
2 parents 334dc25 + 658c4e0 commit 40384dd

File tree

7 files changed

+791
-3857
lines changed

7 files changed

+791
-3857
lines changed

org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/internal/Library.d

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,17 @@ public static int buildJAVA_VERSION (int major, int minor, int micro) {
101101
public static int buildSWT_VERSION (int major, int minor) {
102102
return .buildSWT_VERSION(major, minor);
103103
}
104+
105+
public static bool isLoadable () {
106+
/*
107+
* DWT: Return true until a reason presents itself otherwise.
108+
*
109+
* SWT uses this function to load the compiled JNI binding for
110+
* the platform implementation.
111+
*/
112+
return true;
113+
}
114+
104115
/+ PORTING_LEFT
105116
static bool extract (String fileName, String mappedName) {
106117
FileOutputStream os = null;

org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/internal/Platform.d

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,16 @@ module org.eclipse.swt.internal.Platform;
1919
import java.lang.all;
2020

2121
import org.eclipse.swt.internal.Lock;
22+
import org.eclipse.swt.internal.Library;
2223

2324
public class Platform {
2425
public static const String PLATFORM = "gtk"; //$NON-NLS-1$
2526
public static Lock lock;
2627
static this() {
2728
lock = new Lock();
2829
}
30+
31+
public static bool isLoadable() {
32+
return Library.isLoadable();
33+
}
2934
}

0 commit comments

Comments
 (0)