Community
Participate
Working Groups
With GTK3 I can only press the debugging buttons (step, resume) twice before they no longer respond to my mouse events. I then have to move the mouse off the button and then put it back for another two clicks, etc. I'm on Ubuntu 12.04 and it only happens when using GTK3 (3.4.2); when disabling GTK3 (using SWT_GTK3=0) I don't see the problem. The strange thing is that this happens when debugging a Java project using JDT but not a C project using CDT.
I can reproduce the same behavior with GTK3 3.8.6-0ubuntu3.1 and Eclipse 4.4-I20140402-0100.
Marc, a pure swt reproducer for the bug would give it higher priority for me.
Created attachment 242995 [details] Modified Snippet18 Here is a snippet that reproduces the problem for me. In ToolItem.setEnabled, there is this code that looks suspicious: ... * 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) && !OS.GTK3) { OS.gtk_widget_set_state (topHandle, OS.GTK_STATE_NORMAL); } It sounds like this might be the same issue but GTK3 needs a different work around. Bug 271765 is the original SWT/GTK2 bug.
*** Bug 413911 has been marked as a duplicate of this bug. ***
I do not see either Bug 82169 or Bug 271765 when using GTK3 so the work arounds for GTK2 present in setEnabled do not need to be executed and it fixes the issue. Patch: https://git.eclipse.org/r/#/c/26970/ Tested with GTK 3.8.6 (Ubuntu 13.10) and 3.10.8 (Ubuntu 14.04).
(In reply to Marc-Andre Laperle from comment #5) > I do not see either Bug 82169 or Bug 271765 when using GTK3 so the work > arounds for GTK2 present in setEnabled do not need to be executed and it > fixes the issue. > > Patch: > https://git.eclipse.org/r/#/c/26970/ > > Tested with GTK 3.8.6 (Ubuntu 13.10) and 3.10.8 (Ubuntu 14.04). Thanks for the patch Marc-Andre! I'm currently reviewing and testing it, will try to push it for RC2.
Patch pushed to master - http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=9b2499a100ea32cbdcab7c6c87e6d1adf71751d5
Thanks Marc-Andre and all!
(In reply to Marc Khouzam from comment #8) > Thanks Marc-Andre and all! Marc, could you try the build on Ubuntu 12.04? You can either update your SDK with the update site [1] or download a brand new SDK [2]. [1] http://download.eclipse.org/eclipse/updates/4.4-I-builds [2] http://download.eclipse.org/eclipse/downloads/drops4/I20140522-1330/
Verified in I20140522-1330 (on Ubuntu 12.04 & 14.04)
(In reply to Arun Thondapu from comment #10) > Verified in I20140522-1330 (on Ubuntu 12.04 & 14.04) Great, thank you Arun!