| Summary: | Bidi 3.7: [Coolbar] Chrevon is not updated during setOrientation() | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | mariavin <mariavin> | ||||||||||||||
| Component: | SWT | Assignee: | Felipe Heidrich <eclipse.felipe> | ||||||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||||||
| Severity: | normal | ||||||||||||||||
| Priority: | P3 | CC: | camle, eclipse.felipe, gheorghe, Lina.Kemmel, mariavin, pwebster, remy.suen, sadir, Silenio_Quarti, wajnberg | ||||||||||||||
| Version: | 3.7 | Flags: | gheorghe:
review+
Silenio_Quarti: review+ |
||||||||||||||
| Target Milestone: | 3.7 RC2 | ||||||||||||||||
| Hardware: | PC | ||||||||||||||||
| OS: | Linux | ||||||||||||||||
| Whiteboard: | |||||||||||||||||
| Attachments: |
|
||||||||||||||||
|
Description
mariavin
Created attachment 194489 [details]
Patch for Linux.
Created attachment 194490 [details]
picture of the problem.
Moshe, please fix it. Note that Coolbar is emulated in GTK (the code is shared among several platforms). Created attachment 194576 [details]
Patch for changing the direction of the chevron dynamically
This fix only updates the chevron after the next relayout and I think you can fix this problem without adding new instance variable (we avoid adding instance variables whe possible). Created attachment 194697 [details]
A new patch following your suggestions
I introduced new method setOrientation for both CoolBar and CoolItem
(In reply to comment #6) > Created attachment 194697 [details] > A new patch following your suggestions > I introduced new method setOrientation for both CoolBar and CoolItem You forgot that CoolBar is emulated (common code), your code introduces a compilation bug in cocoa, carbon, motif, etc. Just put all the code in CoolBar#setOrientation(int) [the public one]. Created attachment 194809 [details]
The new patch fixing the error compilation
Sorry I forgot that CoolBar was common code
Created attachment 194948 [details]
Patch
(Moshe, are you an Eclipse committer ? - Btw, you code is fine, I changed a bit but it is basically the same code). Bog, this is some low risk fix for a new feature. it should not impact Eclipse. Hello Felipe, No I am not an Eclipse committer. Anyway thank you very much for your review and your invaluable comments. Bogdan, can you pls approve or reject this problem ? fixed in HEAD |