GtkEntry::set_max_length
void set_max_length(int max); 
    
     set_max_length()  sets the
     maximum number of characters that will be accepted in a text entry.
     Any further characters entered will not be displayed in the entry
     field, nor will they be capable of being retrieved with the 
     get_text()  function.