diff options
author | Anatoly Spektor <aspektor@redhat.com> | 2012-08-03 10:07:07 -0400 |
---|---|---|
committer | Arun Thondapu <arunkumar.thondapu@in.ibm.com> | 2012-08-06 17:49:12 +0530 |
commit | 31b7a613958123368d896ee9b0a636412f2a598b (patch) | |
tree | 8733974da7d036726370ceac33b28dad40240962 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java | |
parent | 2c810dc09ebe584d949d1446e7fe61dd64fa3e80 (diff) | |
download | eclipse.platform.swt-31b7a613958123368d896ee9b0a636412f2a598b.tar.gz eclipse.platform.swt-31b7a613958123368d896ee9b0a636412f2a598b.tar.xz eclipse.platform.swt-31b7a613958123368d896ee9b0a636412f2a598b.zip |
Bug 386145 Use gtk_widget_get_window() instead of GTK_WIDGET_WINDOW in newer GTK+
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.java | 4 |
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; |