Gtk.Entry.prototype.get_text_length
function get_text_length():guint16 {
// Gjs wrapper for gtk_entry_get_text_length()
}Retrieves the current length of the text in entry.
This is equivalent to:
<informalexample><programlisting> gtk_entry_buffer_get_length (gtk_entry_get_buffer (entry)); </programlisting></informalexample>
Since 2.14
- Returns
the current number of characters in Gtk.Entry, or 0 if there are none.