summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java
diff options
context:
space:
mode:
authorArun Thondapu <arunkumar.thondapu@in.ibm.com>2012-09-11 19:16:12 +0530
committerArun Thondapu <arunkumar.thondapu@in.ibm.com>2012-09-11 20:32:23 +0530
commite146916783f37aa41636cc83669e5f610cf7343a (patch)
tree60d6fd4261724b8c74de1f48b6f5d0a29793bcbe /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java
parent1ff5dc76daca83722cbc3a22652379df0452b7e8 (diff)
downloadeclipse.platform.swt-e146916783f37aa41636cc83669e5f610cf7343a.tar.gz
eclipse.platform.swt-e146916783f37aa41636cc83669e5f610cf7343a.tar.xz
eclipse.platform.swt-e146916783f37aa41636cc83669e5f610cf7343a.zip
Bug 388265 fix formatting and remove redundant else check in Widget
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java7
1 files changed, 1 insertions, 6 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 cf156cb5c9..c515ebaf77 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
@@ -130,12 +130,7 @@ void createHandle (int index) {
fixedHandle = OS.g_object_new (display.gtk_fixed_get_type (), 0);
if (fixedHandle == 0) error (SWT.ERROR_NO_HANDLES);
gtk_widget_set_has_window (fixedHandle, true);
- if (OS.GTK_VERSION >= OS.VERSION(3, 0, 0)){
- handle = OS.gtk_box_new(OS.GTK_ORIENTATION_VERTICAL, 0);
- OS.gtk_box_set_homogeneous(handle, false);
- } else {
- handle = OS.gtk_vbox_new (false, 0);
- }
+ handle = gtk_box_new (OS.GTK_ORIENTATION_VERTICAL, false, 0);
if (handle == 0) error (SWT.ERROR_NO_HANDLES);
if ((style & SWT.V_SCROLL) != 0) {
scrolledHandle = OS.gtk_scrolled_window_new (0, 0);