Community
Participate
Working Groups
Build Identifier: Indigo Service Release 1 20110916-0149 Something appears to have changed in KDE and cause the SWT trees to stop working properly. I can no longer expand or collapse any tree within eclipse (navigator panel, package explorer, eclipse preferences, etc by single clicking with the mouse. Single clicking over the ">" area of the tree just causes random behavior, often elsewhere in the tree. Double clicking on the text of the tree item still works (most of the time). The left-right arrows also do not work for expanding or collapsing tree items. I've noticed this across many versions of eclipse / swt - including the up-to-date release noted above. Changing the JVM also has no impact - I've tried with several recent 1.6 releases, and currently the 1.7.0_02 32 bit release. The KDE release is 4.7.3 (part of kubuntu 11.10 release) This broken behavior seems to have appeared with a recent update of KDE - though I'm not sure which exact version it first started. uname -a output: Linux 3.0.0-15-generic #25-Ubuntu SMP Mon Jan 2 17:44:42 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux This bug makes it very difficult to use eclipse. Reproducible: Always Steps to Reproduce: 1.Try to click on the expand/collapse icon of any tree within eclipse when eclipse is running in KDE 4.7.3.
Arun, can you try this out ? Thank you
(In reply to comment #1) > Arun, can you try this out ? Thank you I don't have access to a KUbuntu system right now, will create a VM and try to test with that.
FYI, I don't seem to be getting e-mail from bugzilla - if you need more info, please ping me directly.
I've now also observed this happening in a non-SWT app - specifically Handbrake. So, it's likely a direct KDE bug... I suspect this bug will simply have to track it. So far, I've been unable to find any tracker for this issue on KDE. Which makes me wonder if it is just my system. Sigh.
I've also noticed that it isn't consistently broken across KDE. Trees within the control panel, and Dolphin, for instance, look fine. Yet, trees within Handbrake are broken. So, I suppose it is possible they have broken an API that only some apps use?
> The left-right arrows also do not work for expanding or collapsing tree items. Did you try Shift+RightArrow to expand and Shift+LeftArrow to collapse? These are the typical keyboard shortcut keys for Linux trees.
Interesting - Shift+Right / Left Arrow does work. In other KDE apps I've tried - just the left/right arrow also works. In eclipse - left/right arrow does not work. the shift modifier seems to behave a little different in Eclipse than in other KDE apps. In KDE - Shift+Right, Shift+Right causes you to walk down the tree, expanding one new level each time, and also selecting the folders. In Eclipse Shift+Right, Shift+Right first expands one level, then the second one expands ALL of the subfolders. Just an observation.
SWT uses GtkTreeView: http://developer.gnome.org/gtk/2.24/GtkTreeView.html What version of GTK do you have? (dpkg -l | grep libgtk2) I tried searching https://bugzilla.gnome.org/ to see if anything has changed in GtkTreeView recently (in the area of expand/collapse), but I didn't find anything useful. You may have better luck. Did you try keypad + and - keys? I believe they are supposed to expand/collapse also. (Just FYI). Strange about the subtly different behavior of shift+arrow. FYI, we are not doing anything special - we are just passing the keypresses on through to the GtkTreeView. So we should be doing exactly what the native tree view has implemented. Arun, did you get a KUbuntu 11.10 VM going?
dpkg -l | grep libgtk2 ii libgtk2-ex-formfactory-perl 0.66-0ubuntu2 Makes building complex GUI's easy ii libgtk2-perl 2:1.223-1build2 Perl interface to the 2.x series of the Gimp Toolkit library ii libgtk2.0-0 2.24.6-0ubuntu5 The GTK+ graphical user interface library ii libgtk2.0-0:i386 2.24.6-0ubuntu5 The GTK+ graphical user interface library ii libgtk2.0-bin 2.24.6-0ubuntu5 The programs for the GTK+ graphical user interface library ii libgtk2.0-cil 2.12.10-2ubuntu1 CLI binding for the GTK+ toolkit 2.12 ii libgtk2.0-common 2.24.6-0ubuntu5 Common files for the GTK+ graphical user interface library ii libgtk2.0-dev 2.24.6-0ubuntu5 Development files for the GTK+ library + / - appear to work perfectly fine as well.
I have tested with both 3.7 and 3.7.1 on KUbuntu 11.10 and everything is working well for me. I used the 64-bit JRE and Eclipse builds. Daniel, I'm not sure whether you were using 32 or 64-bit builds, if you haven't tried the 64-bit builds, can you please do so? I don't know if this is related but you could also try installing all available OS and software updates and then see if it helps. Also, as Carolyn mentioned in comment 8, SWT uses the GTK libraries and not KDE/Qt libraries which are used by native KDE apps like Dolphin. So, we cannot really compare Eclipse behavior with any other KDE app.
Hmm. I was afraid it might be just my system. Sigh. I'm using a 32 bit build with a 32 bit JVM. I'll try the 64 bit. Handbrake must be a GTK app, since I see the same issue there.
Same issues on 64 bit, and I just updated the rest of the OS (again) - still the same behavior. When I get a chance, I'll create a new user account, and see if it happens in a clean KDE environment, rather than mine, which has been brought along from version to version as my system has been updated.
From a quick google search, it does look like Handbrake comes by default with a GTK UI binding which means that the GTK libraries on your system might have broken somehow. Logging in as different user won't help if that is the case. One suggestion would be to uninstall/reinstall the GTK libraries. I'm going to close this bug as not an eclipse bug but you can still post comments if needed. Thanks!
closing the bug as per above comment.
If anyone is still having this bug — just try switching your GTK theme. Apparently this bug appears because of some GtkTreeView theme-related settings, since GtkTreeView works in some GTK themes in KDE, but does not in other(including the default oxygen theme).
See also https://bugs.kde.org/show_bug.cgi?id=316012 for "Bug 316012 - Tree view entries won't expand/collapse on single-click in Eclipse on KDE 4.9.5", which offers a workaround.
*** Bug 445749 has been marked as a duplicate of this bug. ***
Just for the info: the proposed solution was to set OXYGEN_DISABLE_INNER_SHADOWS_HACK = 1 before starting Eclipse, and this was added via bug 432673 in Eclipse 4.5.