diff options
author | Silenio Quarti | 2013-03-21 13:56:33 +0000 |
---|---|---|
committer | Carolyn MacLeod | 2013-04-09 14:56:47 +0000 |
commit | 3c7f2e403fb54ff1168c489a9c2c406b324d6e6c (patch) | |
tree | 35be4d82cb6be42dc6b203d449a54cac3ebb7459 | |
parent | a4fc531b0667e7b6786e5326be58e0f36719b5bb (diff) | |
download | eclipse.platform.swt-3c7f2e403fb54ff1168c489a9c2c406b324d6e6c.tar.gz eclipse.platform.swt-3c7f2e403fb54ff1168c489a9c2c406b324d6e6c.tar.xz eclipse.platform.swt-3c7f2e403fb54ff1168c489a9c2c406b324d6e6c.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); } } |