Patch: Fix EmbeddedWindow cross-process embedding

Thomas Fitzsimmons fitzsim@redhat.com
Mon Sep 15 06:26:00 GMT 2003


Hi,

This patch allows embedding an EmbeddedWindow from one process into a
socket in another process.  Previously, embedding a window from within
the same process worked but cross-process embedding failed.

The problem was that the GtkPlug used in GtkEmbeddedWindowPeer's
implementation was being realized between the calls to
GtkEmbeddedWindowPeer's create and construct methods.  Calling
gtk_plug_construct on a realized window fails silently.

Comments?

Tom

2003-09-14  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java (construct):
	Remove method declaration.
	(create()): Call native create.
	(create(int)): New method.
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
	(create): Add window_id parameter.  Call gtk_plug_new with
	window_id parameter.
	(construct): Remove method implementation.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: embeddedcreate.diff
Type: text/x-patch
Size: 2455 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20030915/cb20281e/attachment.bin>


More information about the Java-patches mailing list