From 73b8760cc71f23fc1adf4097ba30ab56c13451ed Mon Sep 17 00:00:00 2001 From: Anatoly Spektor Date: Mon, 13 Aug 2012 12:49:56 -0400 Subject: Omit use of gdk_drawable_get_size for newer GTK+ and make it dynamic --- .../Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java') diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java index 240749f2ea..1b38aa9357 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java @@ -1143,7 +1143,7 @@ public Rectangle getClientArea () { int getClientWidth () { int [] w = new int [1], h = new int [1]; OS.gtk_widget_realize (handle); - OS.gdk_drawable_get_size(OS.gtk_tree_view_get_bin_window(handle), w, h); + gdk_window_get_size(OS.gtk_tree_view_get_bin_window(handle), w, h); return w[0]; } @@ -1918,7 +1918,7 @@ int /*long*/ gtk_expose_event (int /*long*/ widget, int /*long*/ eventPtr) { int /*long*/ window = OS.gtk_tree_view_get_bin_window (handle); if (window == gdkEvent.window) { int [] width = new int [1], height = new int [1]; - OS.gdk_drawable_get_size (window, width, height); + gdk_window_get_size (window, width, height); int bottom = 0; if (itemCount != 0) { int /*long*/ iter = OS.g_malloc (OS.GtkTreeIter_sizeof ()); -- cgit