summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBilly Biggs <bbiggs>2005-10-28 16:15:03 +0000
committerBilly Biggs <bbiggs>2005-10-28 16:15:03 +0000
commite09cebbee6999fc9bede6a8ea0a1953ce26204ba (patch)
treebc8f76224ed080c619a39245a6a24cbd5b934b4d
parent63c21fba3a08687c342447d29fa7e4371c20c880 (diff)
downloadeclipse.platform.swt-e09cebbee6999fc9bede6a8ea0a1953ce26204ba.tar.gz
eclipse.platform.swt-e09cebbee6999fc9bede6a8ea0a1953ce26204ba.tar.xz
eclipse.platform.swt-e09cebbee6999fc9bede6a8ea0a1953ce26204ba.zip
g_thread_init is required for g_main_context_wakeup
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
index c14a5bae10..dabec138a6 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
@@ -341,11 +341,11 @@ public class Display extends Device {
/* This code is intentionally commented.
* ".class" can not be used on CLDC.
*/
- /*static {
- String name = Display.class.getName ();
- int index = name.lastIndexOf ('.');
- PACKAGE_NAME = name.substring (0, index + 1);
- }*/
+// static {
+// String name = Display.class.getName ();
+// int index = name.lastIndexOf ('.');
+// PACKAGE_NAME = name.substring (0, index + 1);
+// }
/*
* In order to support CLDC, .class cannot be used because
@@ -759,10 +759,10 @@ protected void create (DeviceData data) {
}
synchronized void createDisplay (DeviceData data) {
- /* This code is intentionally commented.
+ /* Required for g_main_context_wakeup */
if (!OS.g_thread_supported ()) {
OS.g_thread_init (0);
- }*/
+ }
OS.gtk_set_locale();
if (!OS.gtk_init_check (new int /*long*/ [] {0}, null)) {
SWT.error (SWT.ERROR_NO_HANDLES, null, " [gtk_init_check() failed]");