length = OS.g_utf8_strlen (str, -1);
length = (int)OS.g_utf8_strlen (str, -1);
public Point getSelection () {	checkWidget ();	if ((style & SWT.READ_ONLY) != 0) {		int /*long*/ str = 0;		if (OS.GTK_VERSION >= OS.VERSION (2, 4, 0)) {			str = OS.gtk_combo_box_get_active_text (handle);		} else {			str = OS.gtk_entry_get_text (entryHandle);		}		int length = 0;		if (str != 0) {			length = OS.g_utf8_strlen (str, -1);			if (OS.GTK_VERSION >= OS.VERSION (2, 4, 0)) OS.g_free (str);		}		return new Point (0, length);	}	int [] start = new int [1];	int [] end = new int [1];	if (entryHandle != 0) {		OS.gtk_editable_get_selection_bounds (entryHandle, start, end);	}	return new Point(start [0], end [0]);}