diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java index 460af14cf7..ad21ebb3e7 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java @@ -930,8 +930,10 @@ public void setEnabled (boolean enabled) { * whether the pointer is currently in the button is never updated. * As a result, when it is re-enabled it automatically enters * a PRELIGHT state. The fix is to set a NORMAL state. + * + * Note that on GTK 3 this code causes the item to be re-enabled. */ - if (OS.GTK_VERSION >= OS.VERSION (2, 14, 0)) { + if (OS.GTK_VERSION >= OS.VERSION (2, 14, 0) && !OS.GTK3) { OS.gtk_widget_set_state (topHandle, OS.GTK_STATE_NORMAL); } } |