GtkEditable::set_position

void set_position(int position);

Sets the cursor position within the string of existing text. Note that the calling editable widget must have keyboard focus in order for the cursor position to be valid.