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. From-SVN: r76166
This commit is contained in:
parent
6fdab8ccdb
commit
a2708c12b2
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
||||
2004-01-19 Fernando Nasser <fnasser@redhat.com>
|
||||
|
||||
* java/awt/EventQueue.java (invokeAndWait): Use list-aware
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue