summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorAnatoly Spektor2013-07-19 10:09:59 (EDT)
committer Arun Thondapu2013-07-22 03:40:11 (EDT)
commit03bf77d16dd9eb63f3855573d83108eba52b0a98 (patch)
treea22bd2852a856fe608be1648cc97f0b8a9ccc7f1
parentb1b4091645a19f287c10cd854defb00356724eb8 (diff)
downloadeclipse.platform.swt-03bf77d16dd9eb63f3855573d83108eba52b0a98.zip
eclipse.platform.swt-03bf77d16dd9eb63f3855573d83108eba52b0a98.tar.gz
eclipse.platform.swt-03bf77d16dd9eb63f3855573d83108eba52b0a98.tar.bz2
Bug 413328 - Remove unused code from ExpandBar widget (gtk2 cleanup)
Signed-off-by: Anatoly Spektor <aspektor@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java6
1 files changed, 1 insertions, 5 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 6773fad..ea68567 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
@@ -461,11 +461,7 @@ void setScrollbar () {
int width = allocation.width - spacing * 2;
if (policy == OS.GTK_POLICY_ALWAYS) {
long /*int*/ vHandle = 0;
- if (OS.GTK_VERSION < OS.VERSION(2, 8, 0)) {
- vHandle = OS.GTK_SCROLLED_WINDOW_VSCROLLBAR (scrolledHandle);
- } else {
- vHandle = OS.gtk_scrolled_window_get_vscrollbar (scrolledHandle);
- }
+ vHandle = OS.gtk_scrolled_window_get_vscrollbar (scrolledHandle);
GtkRequisition requisition = new GtkRequisition ();
gtk_widget_get_preferred_size (vHandle, requisition);
width -= requisition.width;