Window containing JPG image does not draw correctly. [message #1146151] |
Sat, 19 October 2013 21:45  |
Eclipse User |
|
|
|
I have a Java program that loads a .JPG file as an Image then displays it.
The very same code works fine on Windows 7 (same version of Eclipse/SWT), but on Linux, what you see is just a flickering outline of the window being drawn repeatedly - you never see the image. And each time it is redrawn the window outline move closer to the bottom of the screen until it disappears. I've tested the JPG file and it opens normally in Image Viewer.
This is ocurring on Ubuntu 12.04, Eclipse 3.7.2/SWT 3.7.2.
One thing that is confusing me, according to dpkg command there appear to be two versions GTK:
||/ Name Version Description
+++-============================-============================-========================================================================
ii libgtk-3-0 3.4.2-0ubuntu0.5 GTK+ graphical user interface library
ii libgtk2.0-0 2.24.10-0ubuntu6 GTK+ graphical user interface library
Now per SWT FAQ:
Q: Which GTK version do I need to run SWT?
A: SWT requires the following GTK+ versions (or newer) to be installed:
Eclipse/SWT 3.8.x and newer: GTK+ 2.6.0 and its dependencies
Eclipse/SWT 3.6.x - 3.7.x: GTK+ 2.4.1 and its dependencies <-------------
Eclipse/SWT 3.0.x - 3.5.x: GTK+ 2.2.1 and its dependencies
Eclipse/SWT 2.1.x: GTK+ 2.0.6 and its dependencies
So my v2.0 GTK is too low, but the v3.0 GTK should allow SWT to work correctly, in theory.
Is there anything I need to do to point Eclipse/SWT at the correct version of GTK?
OR is this issue being caused by something completely different?
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05026 seconds