diff options
author | Anatoly Spektor <aspektor@redhat.com> | 2013-07-19 10:09:59 -0400 |
---|---|---|
committer | Anatoly Spektor <aspektor@redhat.com> | 2013-07-19 10:09:59 -0400 |
commit | 3dabb42d611c918fb0cec5b2ae4d4b6bd207afa8 (patch) | |
tree | d55d85c386f2e31f4d91ccf5f3547077dc9a0712 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org | |
parent | 3badf881a37b9808e3b829dac9255767efd7162c (diff) | |
download | eclipse.platform.swt-cleanup_expandbar_210.tar.gz eclipse.platform.swt-cleanup_expandbar_210.tar.xz eclipse.platform.swt-cleanup_expandbar_210.zip |
Bug 413328 - Remove unused code from ExpandBar widget (gtk2 cleanup)cleanup_expandbar_210
Signed-off-by: Anatoly Spektor <aspektor@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java | 6 |
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 6773fad7b8..ea68567d5f 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; |