2006-06-09 Thomas Fitzsimmons <fitzsim@redhat.com>
* gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java (getDefaultScreenDevice): Remove unnecessary GCJ local hack. * gnu/java/awt/peer/gtk/GtkToolkit.java (getSystemEventQueueImpl): Likewise. * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java (registerFormat): Likewise. From-SVN: r114521
This commit is contained in:
parent
cd75853e1d
commit
1bc49a5eea
4 changed files with 12 additions and 33 deletions
|
@ -247,23 +247,12 @@ public class GdkPixbufDecoder extends gnu.java.awt.image.ImageDecoder
|
|||
public static ImageFormatSpec registerFormat(String name, boolean writable)
|
||||
{
|
||||
ImageFormatSpec ifs = new ImageFormatSpec(name, writable);
|
||||
|
||||
// GCJ LOCAL: workaround a GCJ problem accessing
|
||||
// GdkPixbufDecoder.class
|
||||
try
|
||||
{
|
||||
synchronized(Class.forName ("gnu.java.awt.peer.gtk.GdkPixbufDecoder"))
|
||||
synchronized(GdkPixbufDecoder.class)
|
||||
{
|
||||
if (imageFormatSpecs == null)
|
||||
imageFormatSpecs = new ArrayList();
|
||||
imageFormatSpecs.add(ifs);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
return ifs;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue