| Summary: | GC#getClipping returns an empty rectangle on the latest version of CentOS 6 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Peter Severin <peter> | ||||
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||
| Status: | CLOSED WORKSFORME | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | c_lamour, ericwill, yasunaka | ||||
| Version: | 4.6 | Keywords: | triaged | ||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Peter Severin
In the case of Eclipse 4.7 (Oxygen), the code is changed to
if (data.drawable != 0) {
width[0] = OS.gdk_window_get_width(data.drawable);
height[0] = OS.gdk_window_get_height(data.drawable);
return;
}
So, Eclipse 4.7 still has same problem.
In the case of Eclipse 4.3, the OS.USE_CAIRO becomes true on the CentOS 6 environment, and data.drawable is 0. so Eclipse 4.3 skips the above code and runs GC#getClipping() correctly. (Eclipse 4.3 does not check CAIRO version and set the OS.USE_CAIRO only with GTK version.)
OS.gdk_drawable_get_size(data.drawable, width, height); has already removed from Eclipse 4.7. Instead of that, OS.gdk_pixmap_get_size(data.drawable, width, height); works fine in this case. We have got the same issue with a rich Eclipse RCP client based on Eclipse 4.7.1. Thanks to Peter for opening this bug and to Nobuhiko for providing the workaround, that works fine on RHEL/CentOS 6 but not on RHEL7 (but GC#getClipping() is working on RHEL 7). But the use of OS#methods being discouraged, will this bug be corrected in a future release of SWT ? Is this still reproducible on GTK3.22 and 4.8? (In reply to Eric Williams from comment #4) > Is this still reproducible on GTK3.22 and 4.8? No response in awhile, please reopen this ticket if the issue reproduces on GTK3.22 with 4.9 or 4.10. |