| Summary: | [Gtk3] Adding SWT.EraseItem listener and drawing background makes the TreeItem/TableItem text dissapear | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Fabio Zadrozny <fabiofz> | ||||
| Component: | SWT | Assignee: | Sravan Kumar Lakkimsetti <sravankumarl> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | critical | ||||||
| Priority: | P3 | CC: | akurtakov, arunkumar.thondapu, daniel_megert, Lars.Vogel, lufimtse, niraj.modi, sravankumarl | ||||
| Version: | 4.5 | Flags: | arunkumar.thondapu:
review+
|
||||
| Target Milestone: | 4.5 RC1 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| See Also: |
https://git.eclipse.org/r/46731 https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=c84205ca5d69149c76901442667dd91c7dbb3f53 |
||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Fabio Zadrozny
Created attachment 252472 [details]
Image showing issue
Which GTK 3 version is this ? On 3.16 I see the problem but also warnings about cell-background-gdk/foreground-gdk being deprecated. I'll investigate migrating to cell-background-rgba/foreground-rgba as noone really cares when feature deprecated 3 years ago (GTK 3.4) is no longer functioning properly. dpkg -s libgtk-3-0|grep '^Version' Gives: 3.4.2-0ubuntu.8 For full reference on GTK 3.16 all cells are empty as they are not recognized as pixbufs. Hardcoding it gives me same result as Fabio's image. This bug will take some more investigation so moving out of M7 Bug 427511 was RESOLVED_FIXED in 4.4-RC1, but surprisingly below commit was made against that bug 427511 in 4.5 time-frame, which is causing this bug 464816: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=77d858e5c6ed3ebe8fa843c1bb721ed789ee186a Above commit removes some piece of code related to GTK3 w.r.t. "SWT.EraseItem" event in Tree#rendererRender() method. Partially reverting above patch is fixing this bug 464816, refer associated Gerrit patch. New Gerrit change created: https://git.eclipse.org/r/46731 The gerrit patch solves the problem for tree. but it still requres code changes for Table. Table also has the same issue Sravan, can you please mention in detail how the patch was tested (OS, GTK+ versions etc.) and also any regression testing? (In reply to Arun Thondapu from comment #9) > Sravan, can you please mention in detail how the patch was tested (OS, GTK+ > versions etc.) and also any regression testing? I used Fedora 19 with GTK3.8.8 and Ubuntu 14.04 with GTK 3.10 for testing. Testing is done using the snippet provided and modified snippet for table as well. Ran the SWT Junit test cases. For regression testing used a self hosted eclipse and tested on multiple views like call hierarchy, Type hierarchy, etc. Verified that they are working fine. Gerrit change https://git.eclipse.org/r/46731 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=c84205ca5d69149c76901442667dd91c7dbb3f53 Pushed patch to master. Thanks Niraj and Sravan! verified in I20150513-2000 on linux 64bit |