entry: Clarify docs
authorMatthias Clasen <mclasen@redhat.com>
Tue, 28 Sep 2021 19:40:41 +0000 (15:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 31 Oct 2021 21:52:04 +0000 (17:52 -0400)
Mention that max length is in characters.

gtk/gtkentry.c

index e03127f1344865aa4553e57f2a29d282e49d6c18..2239d46cc5d9227d6de27128d4ade7d7fcdef3e0 100644 (file)
@@ -2278,7 +2278,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.