aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/java/awt/natEmbeddedWindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/gnu/java/awt/natEmbeddedWindow.cc')
-rw-r--r--libjava/gnu/java/awt/natEmbeddedWindow.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/libjava/gnu/java/awt/natEmbeddedWindow.cc b/libjava/gnu/java/awt/natEmbeddedWindow.cc
new file mode 100644
index 00000000000..79cdd6797e0
--- /dev/null
+++ b/libjava/gnu/java/awt/natEmbeddedWindow.cc
@@ -0,0 +1,18 @@
+/* Copyright (C) 2003 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+#include <gnu/java/awt/EmbeddedWindow.h>
+#include <gnu/java/awt/peer/EmbeddedWindowPeer.h>
+#include <java/awt/peer/ComponentPeer.h>
+
+void
+gnu::java::awt::EmbeddedWindow::setWindowPeer (gnu::java::awt::peer::EmbeddedWindowPeer* w)
+{
+ if (!peer)
+ peer = reinterpret_cast< ::java::awt::peer::ComponentPeer *> (w);
+}