entry: Clarify docs

Mention that max length is in characters.
This commit is contained in:
Matthias Clasen
2021-09-28 15:40:41 -04:00
parent 32191bc18e
commit 2c9a2e94c8

View File

@@ -2295,7 +2295,7 @@ gtk_entry_get_overwrite_mode (GtkEntry *entry)
* Sets the maximum allowed length of the contents of the widget.
*
* If the current contents are longer than the given length, then
* they will be truncated to fit.
* they will be truncated to fit. The length is is in characters.
*
* This is equivalent to getting @entry's `GtkEntryBuffer` and
* calling [method@Gtk.EntryBuffer.set_max_length] on it.