summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java
index 3b3b35542e..6cc5df8fbc 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java
@@ -493,11 +493,11 @@ int /*long*/ gtk_focus_in_event (int /*long*/ widget, int /*long*/ event) {
// widget could be disposed at this point
if (handle == 0) return 0;
if (OS.GTK_VERSION >= OS.VERSION (2, 18, 0)) {
- if ((style & SWT.PUSH) != 0 && OS.gtk_widget_has_default(handle)) {
+ if ((style & SWT.PUSH) != 0 && OS.gtk_widget_has_default (handle)) {
Decorations menuShell = menuShell ();
menuShell.defaultButton = this;
}
- }else{
+ } else {
if ((style & SWT.PUSH) != 0 && OS.GTK_WIDGET_HAS_DEFAULT (handle)) {
Decorations menuShell = menuShell ();
menuShell.defaultButton = this;