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

Bug 530969

Summary: [GTK3] Control.print() doesn't seem to work
Product: [Eclipse Project] Platform Reporter: Eric Williams <ericwill>
Component: SWTAssignee: Eric Williams <ericwill>
Status: VERIFIED FIXED QA Contact: Eric Williams <ericwill>
Severity: normal    
Priority: P3    
Version: 4.8   
Target Milestone: 4.8 M6   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/117208
https://git.eclipse.org/c/platform/eclipse.git/commit/?id=777a52d4d7dac729ba95cbfd8e09c9174a5d64c2
https://bugs.eclipse.org/bugs/show_bug.cgi?id=531667
https://bugs.eclipse.org/bugs/show_bug.cgi?id=539291
Whiteboard:
Bug Depends on:    
Bug Blocks: 511133, 527444    
Attachments:
Description Flags
Snippet to reproduce the issue none

Description Eric Williams CLA 2018-02-09 14:26:40 EST
As the title implies, Control.print() doesn't seem to produce anything meaningful. A GTK critical warning is also printed to the console:

Gtk-CRITICAL **: gtk_widget_draw: assertion '!widget->priv->alloc_needed' failed

On GTK2 this works fine. I'll attach a reproducer snippet as well.
Comment 1 Eric Williams CLA 2018-02-09 14:41:13 EST
Created attachment 272619 [details]
Snippet to reproduce the issue

Attached is a snippet that reproduces the issue. Running the snippet should yield a Tree with 4 items: each item should have an image which is a checkbox in some state (enabled/checked). On GTK3 these images are all just white boxes. This happens on every GTK3 version.

Adding this as a showstopper because it's broken API -- and it is partly causing missing icons in EGit (bug 511133).
Comment 2 Eclipse Genie CLA 2018-02-12 14:13:21 EST
New Gerrit change created: https://git.eclipse.org/r/117208
Comment 4 Eric Williams CLA 2018-02-12 14:50:48 EST
(In reply to Eclipse Genie from comment #3)
> Gerrit change https://git.eclipse.org/r/117208 was merged to [master].
> Commit:
> http://git.eclipse.org/c/platform/eclipse.git/commit/
> ?id=777a52d4d7dac729ba95cbfd8e09c9174a5d64c2

Fix + reproducer snippet in master now.
Comment 5 Eric Williams CLA 2018-03-06 10:00:41 EST
Verified in I20180305-2000.