diff options
author | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2013-03-21 09:56:33 -0400 |
---|---|---|
committer | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2013-03-21 09:57:50 -0400 |
commit | aaca3a8c132e0c66e5c82fa0b5fdd8b7dddca88a (patch) | |
tree | 5400bc84bc6f040cc25847c5f998fd96defde0bb | |
parent | cd2045ef6afe6291148be9a087d4dc33e51f0ecf (diff) | |
download | eclipse.platform.swt-aaca3a8c132e0c66e5c82fa0b5fdd8b7dddca88a.tar.gz eclipse.platform.swt-aaca3a8c132e0c66e5c82fa0b5fdd8b7dddca88a.tar.xz eclipse.platform.swt-aaca3a8c132e0c66e5c82fa0b5fdd8b7dddca88a.zip |
Bug 398176 - [GTK3] Terminate button in Console view is always enabled
-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); } } |