checkWidget(); int  list = OS.gtk_container_get_children (handle); if (list == 0) return new ExpandItem [0]; int count = OS.g_list_length (list); ExpandItem [] result = new ExpandItem [count]; for (int i=0; i<count; i++) { int  data = OS.g_list_nth_data (list, i); Widget widget = display.getWidget (data); result [i] = (ExpandItem) widget; } OS.g_list_free (list);
checkWidget (); ExpandItem [] result = new ExpandItem [itemCount]; System.arraycopy (items, 0, result, 0, itemCount);
public ExpandItem [] getItems () {	checkWidget();	int /*long*/ list = OS.gtk_container_get_children (handle);	if (list == 0) return new ExpandItem [0];	int count = OS.g_list_length (list);	ExpandItem [] result = new ExpandItem [count];	for (int i=0; i<count; i++) {		int /*long*/ data = OS.g_list_nth_data (list, i);		Widget widget = display.getWidget (data);		result [i] = (ExpandItem) widget;	}	OS.g_list_free (list);	return result;}