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.

From-SVN: r98744
This commit is contained in:
Thomas Fitzsimmons 2005-04-25 23:16:53 +00:00 committed by Thomas Fitzsimmons
parent 84e0bcb8c5
commit 817b4ef432
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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.
2005-04-25 Jeroen Frijters <jeroen@frijters.net>
* java/awt/GraphicsEnvironment.java
@ -222,7 +228,6 @@
* gnu/gcj/runtime/NameFinder.java (close): IN, OUT, and PROC can all
be null, check for that case and don't deference it.
>>>>>>> 1.3540
2005-04-22 Sven de Marothy <sven@physto.se>
* java/util/logging/LogManager.java: Reformatted.

View File

@ -252,6 +252,13 @@ Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals
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 ();
}