summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
diff options
context:
space:
mode:
authorSilenio Quarti <silenio_quarti@ca.ibm.com>2012-11-02 16:44:42 -0400
committerSilenio Quarti <silenio_quarti@ca.ibm.com>2012-11-02 16:44:42 -0400
commitb09edce9791823c67c1356847c83053f4c27bd85 (patch)
tree39897a782b8b20e928ca568d1901dd174acc93a2 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
parentdbf56d36cdf507645ea89bcdaab54b5bf0bd26ff (diff)
downloadeclipse.platform.swt-b09edce9791823c67c1356847c83053f4c27bd85.tar.gz
eclipse.platform.swt-b09edce9791823c67c1356847c83053f4c27bd85.tar.xz
eclipse.platform.swt-b09edce9791823c67c1356847c83053f4c27bd85.zip
Bug 380287 - Use Cairo methods instead of gdk_color_white and gdk_gc_set_foreground in Tracker widget
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java8
1 files changed, 7 insertions, 1 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 b835ee9620..26891fc00c 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
@@ -151,6 +151,8 @@ public class Display extends Device {
boolean activePending;
boolean ignoreActivate, ignoreFocus;
+ Tracker tracker;
+
/* Input method resources */
Control imControl;
long /*int*/ preeditWindow, preeditLabel;
@@ -1216,7 +1218,11 @@ long /*int*/ eventProc (long /*int*/ event, long /*int*/ data) {
addGdkEvent (OS.gdk_event_copy (event));
return 0;
}
- OS.gtk_main_do_event (event);
+ dispatch = true;
+ if (tracker != null) {
+ dispatch = tracker.processEvent (event);
+ }
+ if (dispatch) OS.gtk_main_do_event (event);
if (dispatchEvents == null) putGdkEvents ();
return 0;
}