From fcedd75ab00195e6ab4eff556609d14004db3d8c Mon Sep 17 00:00:00 2001 From: Arun Thondapu Date: Wed, 12 Sep 2012 23:51:00 +0530 Subject: Bug 388369 Remove redundant else check in Label and helper function in Theme --- .../Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java') diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java index 345295fae7..d7f8ab56ee 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java @@ -587,12 +587,12 @@ void showWidget () { int /*long*/ gtk_separator_new (int orientation) { int /*long*/ separator = 0; - if (OS.GTK_VERSION >= OS.VERSION(3, 0, 0)) { + if (OS.GTK_VERSION >= OS.VERSION (3, 0, 0)) { separator = OS.gtk_separator_new (orientation); } else { if (orientation == OS.GTK_ORIENTATION_HORIZONTAL) { separator = OS.gtk_hseparator_new (); - } else if (orientation == OS.GTK_ORIENTATION_VERTICAL) { + } else { separator = OS.gtk_vseparator_new (); } } -- cgit