Hi,

There's no point in not initializing GdkGraphics2D's static state when
GdkGraphics2D is not enabled -- we already fail if CAIRO is not enabled.
I've committed this patch which fixes PR20014.  This is a temporary fix;
now that GTK 2.8 has been released we can soon start depending on Cairo
unconditionally and removing all the useGraphics2D code paths.

Tom

2005-09-02  Thomas Fitzsimmons  <[EMAIL PROTECTED]>

        PR awt/20014
        * gnu/java/awt/peer/gtk/GdkGraphics2D.java (static): Always call
        initStaticState.

Index: gnu/java/awt/peer/gtk/GdkGraphics2D.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/java/awt/peer/gtk/GdkGraphics2D.java,v
retrieving revision 1.42
diff -u -r1.42 GdkGraphics2D.java
--- gnu/java/awt/peer/gtk/GdkGraphics2D.java	21 Aug 2005 05:30:47 -0000	1.42
+++ gnu/java/awt/peer/gtk/GdkGraphics2D.java	2 Sep 2005 04:11:55 -0000
@@ -107,8 +107,7 @@
     if (Configuration.INIT_LOAD_LIBRARY)
       System.loadLibrary("gtkpeer");
 
-    if (GtkToolkit.useGraphics2D())
-      initStaticState();
+    initStaticState();
   }
   
   static native void initStaticState();
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to