summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Thondapu <arunkumar.thondapu@in.ibm.com>2012-09-06 23:44:42 +0530
committerArun Thondapu <arunkumar.thondapu@in.ibm.com>2012-09-06 23:47:13 +0530
commitcf0bd3fd1ec7876aa51811a1df8c52b9efccf824 (patch)
treec64df7d553749a61dac7c573da330236a4253cc7
parentdb6db832125b06d5c2116be77f9ab1e8c3df7b1b (diff)
downloadeclipse.platform.swt-cf0bd3fd1ec7876aa51811a1df8c52b9efccf824.tar.gz
eclipse.platform.swt-cf0bd3fd1ec7876aa51811a1df8c52b9efccf824.tar.xz
eclipse.platform.swt-cf0bd3fd1ec7876aa51811a1df8c52b9efccf824.zip
Remove redundant else check in Slider/Scale GTK 3 patches
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Scale.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Slider.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Scale.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Scale.java
index 2218cbcf9e..4d925481c7 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Scale.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Scale.java
@@ -380,7 +380,7 @@ int /*long*/ gtk_scale_new (int orientation, int /*long*/ adjustment) {
} else {
if (orientation == OS.GTK_ORIENTATION_HORIZONTAL) {
scale = OS.gtk_hscale_new (adjustment);
- } else if (orientation == OS.GTK_ORIENTATION_VERTICAL) {
+ } else {
scale = OS.gtk_vscale_new (adjustment);
}
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Slider.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Slider.java
index e5072197b1..61a3f21d5e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Slider.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Slider.java
@@ -620,7 +620,7 @@ int /*long*/ gtk_scrollbar_new (int orientation, int /*long*/ adjustment) {
} else {
if (orientation == OS.GTK_ORIENTATION_HORIZONTAL) {
scrollbar = OS.gtk_hscrollbar_new (adjustment);
- } else if (orientation == OS.GTK_ORIENTATION_VERTICAL) {
+ } else {
scrollbar = OS.gtk_vscrollbar_new (adjustment);
}
}