From 5d308b0d1dae435b293212e22df586b30bb1d27e Mon Sep 17 00:00:00 2001 From: Alexander Kurtakov Date: Tue, 30 Jul 2013 15:36:31 +0300 Subject: Fix wrong version check in ExpandBar. The code had a reversed version check gtk_container_add should be use only for GTK 3.8 or newer. Bug 413950 - [GTK3] Warnings in ExpandBar Change-Id: Ifa5c4e75eaa15219fd3a873bc73cb084f6e88859 Signed-off-by: Alexander Kurtakov --- .../Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java index ea68567d5f..aed54ae257 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java @@ -137,7 +137,7 @@ void createHandle (int index) { if (scrolledHandle == 0) error (SWT.ERROR_NO_HANDLES); OS.gtk_scrolled_window_set_policy (scrolledHandle, OS.GTK_POLICY_NEVER, OS.GTK_POLICY_AUTOMATIC); OS.gtk_container_add (fixedHandle, scrolledHandle); - if (OS.VERSION(3, 8, 0)= OS.GTK_VERSION) { OS.gtk_scrolled_window_add_with_viewport (scrolledHandle, handle); } else { OS.gtk_container_add(scrolledHandle, handle); -- cgit v1.2.3