diff options
author | Arun Thondapu <arunkumar.thondapu@in.ibm.com> | 2012-09-11 19:16:12 +0530 |
---|---|---|
committer | Arun Thondapu <arunkumar.thondapu@in.ibm.com> | 2012-09-11 20:32:23 +0530 |
commit | e146916783f37aa41636cc83669e5f610cf7343a (patch) | |
tree | 60d6fd4261724b8c74de1f48b6f5d0a29793bcbe /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java | |
parent | 1ff5dc76daca83722cbc3a22652379df0452b7e8 (diff) | |
download | eclipse.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.java | 6 |
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); } } |