[gui][PATCH] some peer fixes

Thomas Fitzsimmons fitzsim@redhat.com
Thu Jul 1 18:31:00 GMT 2004


On Thu, 2004-06-24 at 14:21, Thomas Fitzsimmons wrote:
> On Thu, 2004-06-24 at 13:58, Michael Koch wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > Am Mittwoch, 23. Juni 2004 05:51 schrieb Thomas Fitzsimmons:
> > > Hi,
> > >
> > > I committed this patch to java-gui-branch.  It simplifies the
> > > GtkComponentPeer and GtkWindowPeer classes.
> > >
> > > Tom
> > >
> > > 2004-06-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
> > >
> > > 	* gnu/java/awt/peer/gtk/GtkComponentPeer.java,
> > > 	jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
> > > 	(GtkComponentPeer): Remove temporary try/catch block.
> > > 	(setVisible): Call show and hide.
> > > 	(show): Make native.
> > > 	(hide): Likewise.
> > > 	(getArgs): Don't add "visible" argument.
> > > 	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
> > > 	(property_notify_predicate): Return Bool instead of int.
> > > 	(find_layout): New function.
> > > 	(connectJObject): Call find_layout.
> > > 	(connectSignals): Likewise.
> > > 	(moveLayout): Likewise.
> > > 	(gtkLayoutSetVisible): Likewise.
> > 
> > This patch severly broke AWT/Swing. I reverted it locally and 
> > AWT/Swing was more usable again, not totally. I vote for reverting 
> > this patch for now until the issues are solved.
> > 
> 
> Yes, please do.  I tested this patch in the presence of other
> work-in-progress patches, then submitted it separately.  It appears I
> should have tested it on its own.  Sorry!
> 

It turns out I made a small change before checking in the original
patch, and forgot to retest.  I am re-committing this patch to
java-gui-branch; the only addition this time around is a call to
setVisible at the end of GtkComponentPeer's constructor.  Tested against
the Acunia visual test suite.

Tom

2004-07-01  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gnu/java/awt/peer/gtk/GtkComponentPeer.java,
	jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
	(GtkComponentPeer): Remove temporary try/catch block.
	(setVisible): Call show and hide.
	(show): Make native.
	(hide): Likewise.
	(getArgs): Don't add "visible" argument.
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
	(property_notify_predicate): Return Bool instead of int.
	(find_layout): New function.
	(connectJObject): Call find_layout.
	(connectSignals): Likewise.
	(moveLayout): Likewise.
	(gtkLayoutSetVisible): Likewise.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: find-layout-cleanups2.patch
Type: text/x-patch
Size: 10719 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040701/573e7062/attachment.bin>


More information about the Java-patches mailing list