JDK-6953386 : Unable to load GTK L&F after 6913179
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P1
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2010-05-18
  • Updated: 2011-01-19
  • Resolved: 2010-05-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7Resolved
Related Reports
Duplicate :  
Relates :  
Description
The fix for 6913179 introduced support for native GTK FileDialog. However, it also requires some functions from the libgthreads library that actually exist in newer versions of GTK only. For instance, the g_thread_get_initialized symbol is requested while it's only available since gtk 2.20.

Since this function gets invoked when the GTK is initialized by JDK, the initialization fails, and any Swing application requesting the GTK L&F fails.

Comments
EVALUATION Probably we should create a boolean flag indicating whether the GTK has already been initialized, rather than relying on a function that is only available in latest GTK versions.
18-05-2010