if (OS.GTK_VERSION < OS.VERSION (2, 4, 0)) {  error (SWT.ERROR_NO_HANDLES);
state |= HANDLE; if (OS.GTK_VERSION >= OS.VERSION (2, 4, 0)) { fixedHandle = OS.g_object_new (display.gtk_fixed_get_type (), 0); if (fixedHandle == 0) error (SWT.ERROR_NO_HANDLES); OS.gtk_fixed_set_has_window (fixedHandle, true); handle = OS.gtk_vbox_new (false, 0); if (handle == 0) error (SWT.ERROR_NO_HANDLES); if ((style & SWT.V_SCROLL) != 0) { scrolledHandle = OS.gtk_scrolled_window_new (0, 0); if (scrolledHandle == 0) error (SWT.ERROR_NO_HANDLES); int vsp = (style & SWT.V_SCROLL) != 0 ? OS.GTK_POLICY_AUTOMATIC : OS.GTK_POLICY_NEVER; OS.gtk_scrolled_window_set_policy (scrolledHandle, OS.GTK_POLICY_NEVER, vsp); OS.gtk_container_add (fixedHandle, scrolledHandle); OS.gtk_scrolled_window_add_with_viewport (scrolledHandle, handle); } else { OS.gtk_container_add (fixedHandle, handle); } OS.gtk_container_set_border_width (handle, 0); } else { int  topHandle = OS.g_object_new (display.gtk_fixed_get_type (), 0); if (topHandle == 0) error (SWT.ERROR_NO_HANDLES); OS.gtk_fixed_set_has_window (topHandle, true); if ((style & SWT.V_SCROLL) != 0) { fixedHandle = topHandle; scrolledHandle = OS.gtk_scrolled_window_new (0, 0); if (scrolledHandle == 0) error (SWT.ERROR_NO_HANDLES); handle = OS.g_object_new (display.gtk_fixed_get_type (), 0); if (handle == 0) error (SWT.ERROR_NO_HANDLES); OS.gtk_fixed_set_has_window (handle, true); OS.gtk_container_add (fixedHandle, scrolledHandle);   boolean warnings = display.getWarnings (); display.setWarnings (false); OS.gtk_container_add (scrolledHandle, handle); display.setWarnings (warnings); } else { handle = topHandle; }
void createHandle (int index) {	if (OS.GTK_VERSION < OS.VERSION (2, 4, 0)) {		// TODO		error (SWT.ERROR_NO_HANDLES);	}	state |= HANDLE;	fixedHandle = OS.g_object_new (display.gtk_fixed_get_type (), 0);	if (fixedHandle == 0) error (SWT.ERROR_NO_HANDLES);	OS.gtk_fixed_set_has_window (fixedHandle, true);	handle = OS.gtk_vbox_new (false, 0);	if (handle == 0) error (SWT.ERROR_NO_HANDLES);	if ((style & SWT.V_SCROLL) != 0) {		scrolledHandle = OS.gtk_scrolled_window_new (0, 0);		if (scrolledHandle == 0) error (SWT.ERROR_NO_HANDLES);		int vsp = (style & SWT.V_SCROLL) != 0 ? OS.GTK_POLICY_AUTOMATIC : OS.GTK_POLICY_NEVER;		OS.gtk_scrolled_window_set_policy (scrolledHandle, OS.GTK_POLICY_NEVER, vsp);		OS.gtk_container_add (fixedHandle, scrolledHandle);		OS.gtk_scrolled_window_add_with_viewport (scrolledHandle, handle);	} else {		OS.gtk_container_add (fixedHandle, handle);	}	OS.gtk_container_set_border_width (handle, 0);}