summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
diff options
context:
space:
mode:
authorAlexander Kurtakov <akurtako@redhat.com>2012-02-28 17:23:56 +0200
committerSilenio Quarti <silenio_quarti@ca.ibm.com>2012-02-28 14:47:21 -0500
commit82e34fcb485647da9f29a70265a4c5982c8c83e6 (patch)
tree280b6eca719aabca60547d75cae9f1dc20b63c1f /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
parentfae92c3dcb033543d291b0df257c2ae165e30841 (diff)
downloadeclipse.platform.swt-82e34fcb485647da9f29a70265a4c5982c8c83e6.tar.gz
eclipse.platform.swt-82e34fcb485647da9f29a70265a4c5982c8c83e6.tar.xz
eclipse.platform.swt-82e34fcb485647da9f29a70265a4c5982c8c83e6.zip
Use gdk_get_default_root_window instead of GDK_ROOT_PARENT.
The new function used is in GTK at least from version 2.0 and the macro is deprecated and removed from GTK 3. All usages are fixed.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
index 03178173e3..94c88d6974 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
@@ -1744,7 +1744,7 @@ public void drawText (String string, int x, int y, int flags) {
if (data.stringWidth == -1) {
computeStringSize();
}
- int /*long*/ pixmap = OS.gdk_pixmap_new(OS.GDK_ROOT_PARENT(), data.stringWidth, data.stringHeight, -1);
+ int /*long*/ pixmap = OS.gdk_pixmap_new(OS.gdk_get_default_root_window(), data.stringWidth, data.stringHeight, -1);
if (pixmap == 0) SWT.error(SWT.ERROR_NO_HANDLES);
int /*long*/ gdkGC = OS.gdk_gc_new(pixmap);
if (gdkGC == 0) SWT.error(SWT.ERROR_NO_HANDLES);