summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java
diff options
context:
space:
mode:
authorAnatoly Spektor <aspektor@redhat.com>2012-08-03 10:07:07 -0400
committerAnatoly Spektor <aspektor@redhat.com>2012-08-03 10:07:07 -0400
commit4e304bf58fa28343289565a3b93efc96a15fd931 (patch)
treeb068dab847a34df1c61d39a607f38b44c5d5ca0d /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java
parentde6fbaaec46412d3fdef0c01810182c0b01cafbd (diff)
downloadeclipse.platform.swt-gtk_widget_get_window_.tar.gz
eclipse.platform.swt-gtk_widget_get_window_.tar.xz
eclipse.platform.swt-gtk_widget_get_window_.zip
Use gtk_widget_get_window() instead of GTK_WIDGET_WINDOW in newer GTK+gtk_widget_get_window_
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java
index 812ce787bc..af86c4f365 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java
@@ -308,7 +308,7 @@ Rectangle [] computeProportions (Rectangle [] rects) {
void drawRectangles (Rectangle [] rects) {
int /*long*/ window = OS.gdk_get_default_root_window();
if (parent != null) {
- window = OS.GTK_WIDGET_WINDOW (parent.paintHandle());
+ window = gtk_widget_get_window (parent.paintHandle());
}
if (window == 0) return;
//TODO: Use Cairo
@@ -664,7 +664,7 @@ public boolean open () {
checkWidget();
window = OS.gdk_get_default_root_window();
if (parent != null) {
- window = OS.GTK_WIDGET_WINDOW (parent.paintHandle());
+ window = gtk_widget_get_window (parent.paintHandle());
}
if (window == 0) return false;
cancelled = false;