Gtk.EntryBuffer.prototype.get_text

function get_text():String {
    // Gjs wrapper for gtk_entry_buffer_get_text()
}

Retrieves the contents of the buffer.

The memory pointer returned by this call will not change unless this object emits a signal, or is finalized.

Since 2.18

Returns

a pointer to the contents of the widget as a string. This string points to internally allocated storage in the buffer and must not be freed, modified or stored.