| Summary: | [GTK3] DND does not work on ExpandBar | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Leo Ufimtsev <lufimtse> | ||||
| Component: | SWT | Assignee: | Leo Ufimtsev <lufimtse> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | akurtako, akurtakov, arnetheduck | ||||
| Version: | 4.4 | ||||||
| Target Milestone: | 4.5 M5 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=538114 | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 428852 | ||||||
| Attachments: |
|
||||||
|
Description
Leo Ufimtsev
Created attachment 249826 [details] DND issue on expand bar It looks like the issue with ExpandBar is similar as with: Bug 454936 - [GTK3] DND does not work on TabFolder In the sense that Expandbar's children are siblings of ExpandBar on the GTK side and DND events don't perculate down to them properly. (see screenshot of GTK Inspector) I'll work on fixing the child nesting mechanism now. I got DND to work in ExpandBar by nesting children under the ExpandItems when ExpandItem.setControl(..) is called. However, size and positioning computations are broken. I'm working on fixing those. Preview patch: https://git.eclipse.org/r/39332 ~~ Status update. Fixed the child positioning issue on gtk3: Now I'll investigate if I can back port this business to gtk2 and I'll need to do an array of testing. This'll take a day or two. All finished and tested. DND works and child widgets look legit. More details in the commit msg. Please review: https://git.eclipse.org/r/#/c/39332/ Please also review minor refactor of TabItem so that they use common code: https://git.eclipse.org/r/#/c/39529/ (In reply to Leo Ufimtsev from comment #5) > Please also review minor refactor of TabItem so that they use common code: > https://git.eclipse.org/r/#/c/39529/ Please ignore that refactor. There was gtk code in the wrong place. Instead I moved a gtk call that is common to TabItem/Expandbar Item into swt/gtk widget. I.e, please only review: https://git.eclipse.org/r/#/c/39332/ Note to self: refactor tabItem once this is merged. Thanks for the patch. Merged in master. *** Bug 223486 has been marked as a duplicate of this bug. *** |