Gtk.TextBuffer.has_selection – gtk4 Reference Manual
has_selection
Description:
public
bool
has_selection
{
get
; }
Whether the buffer has some text currently selected.
2022 vala-language.org