GtkEntry::select_region

void select_region(int start, int end);

select_region() is used to select a region of existing text, generally for using with the cut, copy and paste methods found in GtkEditable.

If you need to select the entire text entry, use the setting (0, -1).