Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2013-07-30 08:36:31 -0400
committerAlexander Kurtakov2013-07-30 08:36:31 -0400
commit5d308b0d1dae435b293212e22df586b30bb1d27e (patch)
tree2b51206acc29c79cb1e278f75611e343101e51df
parente7b1305b520b12092850cfdbc2902440b88b4e46 (diff)
downloadeclipse.platform.swt-5d308b0d1dae435b293212e22df586b30bb1d27e.tar.gz
eclipse.platform.swt-5d308b0d1dae435b293212e22df586b30bb1d27e.tar.xz
eclipse.platform.swt-5d308b0d1dae435b293212e22df586b30bb1d27e.zip
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 <akurtako@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java2
1 files changed, 1 insertions, 1 deletions
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) {
+ 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);

Back to the top