summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt
diff options
context:
space:
mode:
authorAlexander Kurtakov <akurtako@redhat.com>2013-07-10 16:17:03 +0300
committerAlexander Kurtakov <akurtako@redhat.com>2013-07-10 16:17:03 +0300
commitca5e588017b8795b03417457562b8f46567bc04f (patch)
treee54d5d638d93efcd78aa5b50de728415976b5248 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt
parent95087f70461c9fdee64c3c9d1fda2ec4d269324c (diff)
downloadeclipse.platform.swt-ca5e588017b8795b03417457562b8f46567bc04f.tar.gz
eclipse.platform.swt-ca5e588017b8795b03417457562b8f46567bc04f.tar.xz
eclipse.platform.swt-ca5e588017b8795b03417457562b8f46567bc04f.zip
gtk_scrolled_window_add_with_viewport is deprecated in GTK 3.8.
Use gtk_container_add for GTK 3.8 or newer.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java6
1 files changed, 5 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 c13e0a31a0..6773fad7b8 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,11 @@ 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);
- OS.gtk_scrolled_window_add_with_viewport (scrolledHandle, handle);
+ 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);
+ }
long /*int*/ viewport = OS.gtk_bin_get_child (scrolledHandle);
OS.gtk_viewport_set_shadow_type (viewport, OS.GTK_SHADOW_NONE);
} else {