diff options
author | Arun Thondapu <arunkumar.thondapu@in.ibm.com> | 2012-09-12 23:51:00 +0530 |
---|---|---|
committer | Arun Thondapu <arunkumar.thondapu@in.ibm.com> | 2012-09-12 23:51:00 +0530 |
commit | fcedd75ab00195e6ab4eff556609d14004db3d8c (patch) | |
tree | 711ef1efea712e16bce8648975603f8ae947ae1b /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java | |
parent | 21331182885d36e87fd7aa26872a15a6f6734271 (diff) | |
download | eclipse.platform.swt-fcedd75ab00195e6ab4eff556609d14004db3d8c.tar.gz eclipse.platform.swt-fcedd75ab00195e6ab4eff556609d14004db3d8c.tar.xz eclipse.platform.swt-fcedd75ab00195e6ab4eff556609d14004db3d8c.zip |
Bug 388369 Remove redundant else check in Label and helper function in
Theme
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java | 4 |
1 files changed, 2 insertions, 2 deletions
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 (); } } |