Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2001-09-14 19:31:56 +0000
committerSilenio Quarti2001-09-14 19:31:56 +0000
commit6dd2f4b91194e7cbb6a9f93cb427af30d3390001 (patch)
treec9cee5e31ee674b1303d95116d7fa51952c5ca1c /bundles
parent2b6162d75e2770a39a116fd394785843c4b56932 (diff)
downloadeclipse.platform.swt-6dd2f4b91194e7cbb6a9f93cb427af30d3390001.tar.gz
eclipse.platform.swt-6dd2f4b91194e7cbb6a9f93cb427af30d3390001.tar.xz
eclipse.platform.swt-6dd2f4b91194e7cbb6a9f93cb427af30d3390001.zip
*** empty log message ***
Diffstat (limited to 'bundles')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java1
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Control.java2
2 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java
index 66942bf1ae..b69948e452 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java
@@ -941,6 +941,7 @@ public int internal_new_GC (GCData data) {
* @private
*/
public void internal_dispose_GC (int xGC, GCData data) {
+ checkWidget ();
int xDisplay = 0;
if (data != null) xDisplay = data.display;
if (xDisplay == 0 && handle != 0) xDisplay = OS.XtDisplay (handle);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Control.java
index 221e575536..56397bb26e 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Control.java
@@ -312,7 +312,7 @@ public int internal_new_GC (GCData data) {
}
public void internal_dispose_GC (int phGC, GCData data) {
- //if (!isValidThread ()) error (SWT.ERROR_THREAD_INVALID_ACCESS);
+ checkWidget ();
OS.PgDestroyGC(phGC);
}

Back to the top