From: Thomas Fitzsimmons Date: Mon, 25 Apr 2005 23:16:53 +0000 (+0000) Subject: 2005-04-25 Thomas Fitzsimmons X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=817b4ef4328ce6a272959d8132866603d480d552;p=platform%2Fupstream%2Fgcc.git 2005-04-25 Thomas Fitzsimmons * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (connectSignals): Realize the window widget after connecting signals. From-SVN: r98744 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index ade77c8..020925b 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,9 @@ +2005-04-25 Thomas Fitzsimmons + + * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c + (connectSignals): Realize the window widget after connecting + signals. + 2005-04-25 Jeroen Frijters * 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 * java/util/logging/LogManager.java: Reformatted. diff --git a/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c b/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c index b0177c9..184ca56 100644 --- a/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c +++ b/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c @@ -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 (); }