From 3e518ab077b25117e98c1627bef99b9fb51ebd38 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Fri, 9 Jul 2004 13:20:26 +0000 Subject: [PATCH] EmbeddedWindow.java: Load native library for setWindowPeer method. 2004-07-09 Michael Koch * gnu/java/awt/EmbeddedWindow.java: Load native library for setWindowPeer method. From-SVN: r84364 --- libjava/ChangeLog | 5 +++++ libjava/gnu/java/awt/EmbeddedWindow.java | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 8c6cb64e6c6..e9dae644ca8 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2004-07-09 Michael Koch + + * gnu/java/awt/EmbeddedWindow.java: + Load native library for setWindowPeer method. + 2004-07-08 Randolph Chung * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa. diff --git a/libjava/gnu/java/awt/EmbeddedWindow.java b/libjava/gnu/java/awt/EmbeddedWindow.java index ba0184a6307..f938f55b791 100644 --- a/libjava/gnu/java/awt/EmbeddedWindow.java +++ b/libjava/gnu/java/awt/EmbeddedWindow.java @@ -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 @@ exception statement from your version. */ 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 @@ import java.awt.Toolkit; */ public class EmbeddedWindow extends Frame { + static + { + if (Configuration.INIT_LOAD_LIBRARY) + System.loadLibrary("javaawt"); + } + private long handle; /** -- 2.30.2