diff options
author | kho <kho@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-19 18:41:52 +0000 |
---|---|---|
committer | kho <kho@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-19 18:41:52 +0000 |
commit | 77135d2e35400e990df1826d43e77527dca526c7 (patch) | |
tree | 6f21499d39d92938edbb77a3078fca2458f8ea6e /libjava/jni | |
parent | 2691345f38819752562419e27c65e8cb6f5abdd7 (diff) | |
download | gcc-77135d2e35400e990df1826d43e77527dca526c7.tar.gz |
2004-01-19 Kim Ho <kho@redhat.com>
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(connectJObject): Iterate through the vbox's children to find layout.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76166 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, 6 insertions, 1 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 8ad7a2cdcec..32c536f2dcd 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 @@ -196,7 +196,12 @@ Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectJObject printf("*** this is not a vbox\n"); } children = gtk_container_get_children(GTK_CONTAINER(vbox)); - layout = children->data; + do + { + layout = children->data; + children = children->next; + } + while (!GTK_IS_LAYOUT (layout) && children != NULL); if(!GTK_IS_LAYOUT(layout)) { |