This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: gnu.java.awt.EmbeddedWindow


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,


I just merged the attached patch from classpath to get 
gnu.java.awt.EmbeddedWindow merged again.


Michael


2004-07-09  Michael Koch  <konqueror@gmx.de>

	* gnu/java/awt/EmbeddedWindow.java:
	Load native library for setWindowPeer method.
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA7pylWSOgCCdjSDsRAnaiAJ4s1dIccPgkBwt9NFB8jZ79K1alrACgofvm
NljtQNUvpVYd6SqtpfNkRdM=
=wLZB
-----END PGP SIGNATURE-----
Index: gnu/java/awt/EmbeddedWindow.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/java/awt/EmbeddedWindow.java,v
retrieving revision 1.4
diff -u -b -B -r1.4 EmbeddedWindow.java
--- gnu/java/awt/EmbeddedWindow.java	10 Feb 2004 17:46:28 -0000	1.4
+++ gnu/java/awt/EmbeddedWindow.java	9 Jul 2004 13:20:09 -0000
@@ -1,5 +1,5 @@
 /* EmbeddedWindow.java --
-   Copyright (C) 2003 Free Software Foundation, Inc.
+   Copyright (C) 2003, 2004 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -38,6 +38,7 @@
 
 package gnu.java.awt;
 
+import gnu.classpath.Configuration;
 import gnu.java.awt.peer.EmbeddedWindowPeer;
 import java.awt.Frame;
 import java.awt.Toolkit;
@@ -50,6 +51,12 @@
  */
 public class EmbeddedWindow extends Frame
 {
+  static
+  {
+    if (Configuration.INIT_LOAD_LIBRARY)
+      System.loadLibrary("javaawt");
+  }
+  
   private long handle;
   
   /**

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]