This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[patch] FYI: Fix GtkWindowPeer inset calculations
- From: Thomas Fitzsimmons <fitzsim at redhat dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Mon, 25 Apr 2005 19:18:23 -0400
- Subject: [patch] FYI: Fix GtkWindowPeer inset calculations
Hi,
I committed this patch to libgcj to merge
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c with GNU Classpath.
Tom
2005-04-25 Thomas Fitzsimmons <fitzsim@redhat.com>
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(connectSignals): Realize the window widget after connecting
signals.
Index: jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
===================================================================
RCS file: /cvs/gcc/gcc/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c,v
retrieving revision 1.33
diff -u -r1.33 gnu_java_awt_peer_gtk_GtkWindowPeer.c
--- jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c 22 Feb 2005 06:13:03 -0000 1.33
+++ jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c 21 Apr 2005 22:22:02 -0000
@@ -252,6 +252,13 @@
g_signal_connect_after (G_OBJECT (ptr), "realize",
G_CALLBACK (connect_awt_hook_cb), *gref);
+
+ /* Realize the window here so that its frame extents are known now.
+ That way Window.pack can operate with the accurate insets
+ returned by the window manager rather than the default
+ estimates. */
+ gtk_widget_realize (GTK_WIDGET (ptr));
+
gdk_threads_leave ();
}