This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Lightweight peer implementation
- From: "Scott Gilbertson Onsite" <sgilbertson-onsite at cogeco dot ca>
- To: "Thomas Fitzsimmons" <fitzsim at redhat dot com>,"GCJ Patch List" <java-patches at gcc dot gnu dot org>
- Date: Fri, 8 Aug 2003 15:38:50 -0400
- Subject: Re: Lightweight peer implementation
- References: <1060368546.24805.75.camel@tortoise.toronto.redhat.com>
I claim that lightweights are not platform-specific, which is why I
submitted the following patch (which has not been comitted) a while back.
http://gcc.gnu.org/ml/java-patches/2003-q2/msg00140.html
I think you'll find it works fine with the gtk peers, even though I tested
it with xlib peers. You really shouldn't need any gtk-specific methods in
there, because in the lightweight case the Component and Container classes
pass all requests up the line to their nearest heavyweight parent. It's
enough, therefore, that the heavyweights implement the platform-specific
(i.e. xlib vs. gtk, etc.) stuff.
----- Original Message -----
From: "Thomas Fitzsimmons" <fitzsim@redhat.com>
To: "GCJ Patch List" <java-patches@gcc.gnu.org>
Sent: Friday, August 08, 2003 2:49 PM
Subject: Lightweight peer implementation
> Hello,
>
> This patch is a first step toward support for lightweight components
> that draw on GTK widgets. The patch prevents a crash in the
> ComponentMouse test from Acunia's open-wonka-visualtest.
>
> Please review and comment.
>
> Thanks,
> Tom
>
> 2003-08-08 Thomas Fitzsimmons <fitzsim@redhat.com>
>
> * Makefile.am (gtk_awt_peer_sources): Add
> GtkLightweightPeer.java. Remove GLightweightPeer.java.
> * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Return before
> attempting to create GTK widgets if this is a lightweight peer.
> * gnu/java/awt/peer/gtk/GtkToolkit.java (createComponent): New
> method.
> * gnu/java/awt/peer/gtk/GtkLightweightPeer.java: New file.
>
>