Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 262884 - Tree collapses when CTRL+click or SHIFT+click
Summary: Tree collapses when CTRL+click or SHIFT+click
Status: CLOSED DUPLICATE of bug 255126
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.5   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Bogdan Gheorghe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 285673 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-29 05:20 EST by marcel_bihr CLA
Modified: 2010-04-13 06:27 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description marcel_bihr CLA 2009-01-29 05:20:49 EST
Build ID: I20090128-1800

Steps To Reproduce:
1. Start SWT snippet 15
2. Expand the first node
3. Expand the second node
4. Press CTRL and click on any child of the second node. Repeat (with releasing & pressing CTRL or SHIFT) until the first node gets collapsed.
5. When creating the Tree with SWT.MULTI, this seems to appear more often.


More information:
I noticed that when waiting some time (1-2 s) after pressing CTRL or SHIFT and then clicking, this does not happen.
This is very annoying in the SWT.MULTI case as it does not allow to efficiently do multi-selection.

This is with Ubuntu 8.10
Comment 1 Bogdan Gheorghe CLA 2009-01-29 11:16:18 EST
I couldn't see this on my machine (RHEL5 with GTK 2.10 but I also tried GTK 2.14 which is what comes Ubuntu 8.10). 

Comment 2 Bogdan Gheorghe CLA 2009-01-29 11:17:05 EST
For your repro steps, are you running the snippet unaltered? You then expand the first node, then the second node, and then press CTRL (and hold it down) while you click on any child of the second node. You then release the CTRL and hold it down and select another child of the second node. You then see the first node collapse. Is this summary correct? 
Comment 3 Bogdan Gheorghe CLA 2009-01-29 11:22:11 EST
OK - I can sorta repro this with a MULTI tree - just need to find the right combination.
Comment 4 marcel_bihr CLA 2009-01-29 11:27:13 EST
It works 'better' with the MULTI flag but I can also reproduce in SINGLE mode.
Comment 5 Bogdan Gheorghe CLA 2009-01-29 11:52:13 EST
OK, this only seems to happen in GTK 2.14 trees (can be either single or multi). I tried it out with 2.10 and 2.12 and couldn't get anything happening. In GTK 2.14, it seems as though the expander on the first node sometimes gets focus when hitting control or shift, and if it remains in focus when the next click occurs, the first node will collapse.

Marcel, can you verify that you are running GTK 2.14 on your machine?
Comment 6 marcel_bihr CLA 2009-02-02 02:30:01 EST
Yes, 2.14 is what I'm using.
Comment 7 Praveen CLA 2009-07-17 09:29:18 EDT
This is the duplicate of bug 255126
Comment 8 Bogdan Gheorghe CLA 2009-08-05 16:11:27 EDT
*** Bug 285673 has been marked as a duplicate of this bug. ***
Comment 9 Paul Webster CLA 2009-08-10 10:45:08 EDT
I see this occasionally, and I'm on gtk2-2.10.4-20

PW
Comment 10 Praveen CLA 2010-04-13 06:27:13 EDT

*** This bug has been marked as a duplicate of bug 255126 ***