Bug 301912 - Virtual Tree Table with ILazyTreeContentProvider does not display icons
Summary: Virtual Tree Table with ILazyTreeContentProvider does not display icons
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.0   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2010-02-04 22:02 EST by Pawan Singh CLA
Modified: 2018-04-18 16:35 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pawan Singh CLA 2010-02-04 22:02:19 EST
Build Identifier: M20090917-0800

If you are using Ubuntu 9.10 or one version earlier with GTK (2.18.3), simply create a Tree with ILazyTreeContentProvider. The label provider class has the signature:
class Foo extends LabelProvider implements ITableLabelProvider, IFontProvider, IColorProvider

In the getColumnImage(), return image for the first column and image will not appear in the view.

I do have the following environment variable set up:
export GDK_NATIVE_WINDOWS="1"

I have not tried it with Eclipse 3.6 SWT - but I do not think this problem is fixed looking at SWT bug fixes.

This is a critical problem for us (because we ship RCP), but I will leave the priority as high.


Reproducible: Always

Steps to Reproduce:
1. Create a tree with ILazyTreeContentProvider
2. Return image for zeroth column in LabelProvider
3. Icon does not show up
Comment 1 Timotej Ecimovic CLA 2010-02-21 06:37:09 EST
I ran into this bug as well! (I think it's the same...)
I can see it on both kubuntu 9.10, as well as on an old Fedora Core 8 (2 years old version of GTK).

I have TreeViewer with ILazyTreeContentProvider.

I have a parent element that shows the icons in the column with index 0, and children elements that show icons in columns with index 0, 1, 2 AND 3.

Problem was, that for children elements, icons were showing ONLY in column 0.

For some reason, the icons were not showing for children elements in the columns where parent element did NOT have a column.

After tons of experimentation, I did a workaround by making parent element show blank (all transparent) images in columns 1, 2 and 3. Once I do that, the icons in children elements in those columns magically appear.

Definitely a bug, but at least this gives you a workaround.
Comment 2 Timotej Ecimovic CLA 2010-02-21 06:41:23 EST
It has also been reported that on Windows this problem DID not appear in the first place. It was Linux-only problem.
Comment 3 Eric Williams CLA 2018-04-10 15:27:04 EDT
Is this still reproducible?
Comment 4 Eric Williams CLA 2018-04-18 16:35:54 EDT
Closing due to lack of response. Please file a new bug if the issue persists in 4.8 on GTK3.22.