Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 422772

Summary: [GTK2] owner-draw tree with wrong item height
Product: [Eclipse Project] Platform Reporter: Thomas Singer <eclipse>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov, ericwill, loskutov
Version: 4.6Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=531884
Whiteboard:
Bug Depends on:    
Bug Blocks: 530841    
Attachments:
Description Flags
sample code to reproduce
none
screenshot on OS X 10.8.5
none
screenshot on Debian 7.2 (Gnome 3.4.2)
none
screenshot on Windows 8.1
none
screenshot on Ubuntu 12.04 (default Unity)
none
screenshot on Ubuntu 12.04 (Unity) with flipped first/second node none

Description Thomas Singer CLA 2013-11-28 10:14:41 EST
Created attachment 237803 [details]
sample code to reproduce

Please launch the attached sample on Windows (tried on Windows 8.1 64-bit), OS X (tried 10.8.5) and Linux (tried Debian 7.2 with Gnome 3.4.2, Ubuntu 12.04 with Gnome 3.4.1 and Unity). On Windows and OS X it will show the second item as two rows, on Linux as one row. On Linux obviously the item height is not updated correctly from the MeasureItem event result. BTW, when moving the double-height node at the first position, it will have the correct item height.
Comment 1 Thomas Singer CLA 2013-11-28 10:15:15 EST
Created attachment 237804 [details]
screenshot on OS X 10.8.5
Comment 2 Thomas Singer CLA 2013-11-28 10:15:56 EST
Created attachment 237805 [details]
screenshot on Debian 7.2 (Gnome 3.4.2)
Comment 3 Thomas Singer CLA 2013-11-28 10:16:16 EST
Created attachment 237806 [details]
screenshot on Windows 8.1
Comment 4 Thomas Singer CLA 2013-11-28 10:16:45 EST
Created attachment 237807 [details]
screenshot on Ubuntu 12.04 (default Unity)
Comment 5 Thomas Singer CLA 2013-11-28 10:17:28 EST
Created attachment 237808 [details]
screenshot on Ubuntu 12.04 (Unity) with flipped first/second node
Comment 6 Thomas Singer CLA 2016-03-15 10:13:01 EDT
This bug still is reproducible with SWT 4.614.
Comment 7 Eric Williams CLA 2018-05-03 11:20:06 EDT
I cannot reproduce this issue on Fedora 27, GTK3.22, and SWT master. Thomas does the issue still happen for you?
Comment 8 Thomas Singer CLA 2018-05-08 02:58:29 EDT
It only happens for me with SWT_GTK3=0, but not with SWT_GTK3=1.
Comment 9 Eric Williams CLA 2018-05-08 16:45:05 EDT
(In reply to Thomas Singer from comment #8)
> It only happens for me with SWT_GTK3=0, but not with SWT_GTK3=1.

Ah okay, looks like this is a GTK2 only issue then.
Comment 10 Eric Williams CLA 2018-07-10 13:57:44 EDT
Please note: GTK2 support for SWT is being dropped in Eclipse 4.10 / SimRel 2018-12 release. 

See the following mail for more info: http://dev.eclipse.org/mhonarc/lists/cross-project-issues-dev/msg15783.html
Comment 11 Alexander Kurtakov CLA 2018-07-12 10:17:42 EDT
Marking the bug as wontfix as no work for GTK2 issues will happen. Please reopen if you still face the issue using GTK 3.x.