You could connect to the GtkTextBuffer insert-text signal and remove character in excess of the desired length.

Gaurav Jain wrote:

Hi All,

I wish to enforce a maximum character limit on a GtkTextView.  For
GtkEntry, there is an API called gtk_entry_set_max_length(), but I
couldn't find one for GtkTextView.

Is there a way to enforce this limit somehow?

Thanks,
-Gaurav
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




_______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to