diff options
author | fitzsim <fitzsim@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-25 23:16:53 +0000 |
---|---|---|
committer | fitzsim <fitzsim@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-25 23:16:53 +0000 |
commit | 33428c2bca50262cc4ca98e92fd72c40e325dc79 (patch) | |
tree | eead3f75c79a05ee7395f341eaf5cbea9a96b670 /libjava/jni | |
parent | 8be4db36d1a72e6f4a25e891d56bb1e213586a2c (diff) | |
download | linaro-gcc-33428c2bca50262cc4ca98e92fd72c40e325dc79.tar.gz linaro-gcc-33428c2bca50262cc4ca98e92fd72c40e325dc79.tar.bz2 linaro-gcc-33428c2bca50262cc4ca98e92fd72c40e325dc79.zip |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98744 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/jni')
-rw-r--r-- | libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 b0177c90a47..184ca56ca65 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 (); } |