set_max_length


Description:

public void set_max_length (int max)

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. The length is is in characters.

This is equivalent to getting this's `GtkEntryBuffer` and calling [ [email protected]_max_length] on it.

Parameters:

this

a `GtkEntry`

max

the maximum length of the entry, or 0 for no maximum. (other than the maximum length of entries.) The value passed in will be clamped to the range 0-65536.




2022 vala-language.org