Bug 368297 - Trees wont expand / collapse KDE single click
Summary: Trees wont expand / collapse KDE single click
Status: CLOSED NOT_ECLIPSE
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.2   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 445749 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-10 16:38 EST by Daniel Armbrust CLA
Modified: 2015-05-22 07:10 EDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Armbrust CLA 2012-01-10 16:38:07 EST
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.
Comment 1 Felipe Heidrich CLA 2012-01-11 15:51:11 EST
Arun, can you try this out ? Thank you
Comment 2 Arun Thondapu CLA 2012-01-12 08:51:57 EST
(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.
Comment 3 Daniel Armbrust CLA 2012-01-13 10:19:31 EST
FYI, I don't seem to be getting e-mail from bugzilla - if you need more info, please ping me directly.
Comment 4 Daniel Armbrust CLA 2012-01-14 19:19:38 EST
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.
Comment 5 Daniel Armbrust CLA 2012-01-14 19:26:06 EST
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?
Comment 6 Carolyn MacLeod CLA 2012-01-17 12:49:05 EST
> 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.
Comment 7 Daniel Armbrust CLA 2012-01-18 13:14:34 EST
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.
Comment 8 Carolyn MacLeod CLA 2012-01-18 14:30:16 EST
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?
Comment 9 Daniel Armbrust CLA 2012-01-22 20:28:22 EST
 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.
Comment 10 Arun Thondapu CLA 2012-01-23 11:48:45 EST
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.
Comment 11 Daniel Armbrust CLA 2012-01-24 14:56:52 EST
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.
Comment 12 Daniel Armbrust CLA 2012-01-24 17:34:36 EST
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.
Comment 13 Arun Thondapu CLA 2012-01-24 22:14:46 EST
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!
Comment 14 Lakshmi P Shanmugam CLA 2012-01-27 00:30:36 EST
closing the bug as per above comment.
Comment 15 Nikolay Kudryavtsev CLA 2012-12-09 11:03:16 EST
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).
Comment 16 Fredy Neeser CLA 2013-03-02 13:05:46 EST
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.
Comment 17 Wojciech Sudol CLA 2014-10-02 07:06:23 EDT
*** Bug 445749 has been marked as a duplicate of this bug. ***
Comment 18 Andrey Loskutov CLA 2015-05-22 07:10:19 EDT
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.