Add gtk_entry_set_max_length()

This commit is contained in:
Elliot Lee 1998-03-10 23:32:36 +00:00
parent f9e5e12bcc
commit 8f8b0f68ff

View File

@ -1833,3 +1833,9 @@ gtk_entry_select_region (GtkEntry *entry,
gtk_editable_select_region (GTK_EDITABLE(entry), start, end);
}
void
gtk_entry_set_max_length (GtkEntry *entry,
guint16 max)
{
entry->text_max_length = max;
}