Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 393724 - [GTK3] Owner draw trees are not drawing items
Summary: [GTK3] Owner draw trees are not drawing items
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.3 M4   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 340067
  Show dependency tree
 
Reported: 2012-11-06 17:33 EST by Silenio Quarti CLA
Modified: 2013-05-24 09:31 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Silenio Quarti CLA 2012-11-06 17:33:11 EST
1) Run eclipse on GTK3 (export org.eclipse.swt.gtk3=1)
2) Make sure "Window -> Preferences -> General -> Appearance -> Use mixed fonts and colors for labels" is checked

Note that the tree in the package explorer does not draw the items.

Works when that settings is unchecked.
Comment 1 Silenio Quarti CLA 2012-11-16 15:03:28 EST
GtkCellRenderer.get_size has been deprecated. We need to overwrite get_preferred_width instead.

Fixed

http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=589c806f733b6f17cd797f8efe22263b138d8cd1
Comment 2 Silenio Quarti CLA 2012-11-16 15:23:47 EST
We need a couple of changes to fix this:

1) the focus ring is drawn on top of the selection
2) the foreground is wrong for a selected item when the widget is not in focus

http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=2b184dae298dc7e13b4661d4da911d7c3a83a753