diff options
author | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-08-08 10:46:52 -0400 |
---|---|---|
committer | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-08-08 10:46:52 -0400 |
commit | feeb829364550341b4ae470013292e77198660ff (patch) | |
tree | e77eeac5f8b654bf29242390a072e1d25175eeaa | |
parent | 27e4e4382fd0d1ea5096b74264f64b5ca0207625 (diff) | |
download | eclipse.platform.swt-feeb829364550341b4ae470013292e77198660ff.tar.gz eclipse.platform.swt-feeb829364550341b4ae470013292e77198660ff.tar.xz eclipse.platform.swt-feeb829364550341b4ae470013292e77198660ff.zip |
forgot to fix Widget.gtk_widget_set_receives_default
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java | 6 |
1 files changed, 5 insertions, 1 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 9b944e5b4e..bf9d1c108a 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 @@ -1798,7 +1798,11 @@ void gtk_widget_set_receives_default (int /*long*/ widget, boolean receives_defa if (OS.GTK_VERSION >= OS.VERSION (2, 18, 0)) { OS.gtk_widget_set_receives_default (widget, receives_default); } else { - OS.GTK_WIDGET_UNSET_FLAGS (widget, OS.GTK_RECEIVES_DEFAULT); + if (receives_default) { + OS.GTK_WIDGET_SET_FLAGS (widget, OS.GTK_RECEIVES_DEFAULT); + } else { + OS.GTK_WIDGET_UNSET_FLAGS (widget, OS.GTK_RECEIVES_DEFAULT); + } } } |