summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.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/Widget.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/Widget.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
index e9db87b1ae..5161141007 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
@@ -1826,7 +1826,7 @@ void gdk_pixmap_get_size (int /*long*/ pixmap, int[] width, int[] height) {
}
void gdk_window_get_size (int /*long*/ drawable, int[] width, int[] height) {
- if (OS.GTK_VERSION >= OS.VERSION(2, 24, 0)) {
+ if (OS.GTK_VERSION >= OS.VERSION (2, 24, 0)) {
width[0] = OS.gdk_window_get_width (drawable);
height[0] = OS.gdk_window_get_height (drawable);
} else {
@@ -1836,13 +1836,13 @@ void gdk_window_get_size (int /*long*/ drawable, int[] width, int[] height) {
int /*long*/ gtk_box_new (int orientation, boolean homogeneous, int spacing) {
int /*long*/ box = 0;
- if (OS.GTK_VERSION >= OS.VERSION(3, 0, 0)) {
+ if (OS.GTK_VERSION >= OS.VERSION (3, 0, 0)) {
box = OS.gtk_box_new (orientation, spacing);
OS.gtk_box_set_homogeneous (box, homogeneous);
} else {
if (orientation == OS.GTK_ORIENTATION_HORIZONTAL) {
box = OS.gtk_hbox_new (homogeneous, spacing);
- } else if (orientation == OS.GTK_ORIENTATION_VERTICAL) {
+ } else {
box = OS.gtk_vbox_new (homogeneous, spacing);
}
}