summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
diff options
context:
space:
mode:
authorAnatoly Spektor <aspektor@redhat.com>2012-08-13 12:49:56 -0400
committerArun Thondapu <arunkumar.thondapu@in.ibm.com>2012-08-14 14:45:36 +0530
commit73b8760cc71f23fc1adf4097ba30ab56c13451ed (patch)
treee33f8414ecff2894d424832622f04bf1db92da35 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
parent31720edb505f97bebd7f644d62b276e4d39389cb (diff)
downloadeclipse.platform.swt-73b8760cc71f23fc1adf4097ba30ab56c13451ed.tar.gz
eclipse.platform.swt-73b8760cc71f23fc1adf4097ba30ab56c13451ed.tar.xz
eclipse.platform.swt-73b8760cc71f23fc1adf4097ba30ab56c13451ed.zip
Omit use of gdk_drawable_get_size for newer GTK+ and make it dynamic
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
index 2f5964ebe6..b48eeea42e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
@@ -1255,7 +1255,7 @@ int /*long*/ gtk_expose_event (int /*long*/ widget, int /*long*/ event) {
int /*long*/ window = gtk_widget_get_window (widget);
int [] width = new int [1];
int [] height = new int [1];
- OS.gdk_drawable_get_size (window, width, height);
+ gdk_window_get_size (window, width, height);
GdkRectangle area = new GdkRectangle ();
area.x = gdkEventExpose.area_x;
area.y = gdkEventExpose.area_y;