Character limit on search entry



Hi all,

I'm looking to add a character limit to the search entry. This stops faulty input (e.g. a cat on a keyboard) from generating endless searches. Since a plugin can connect this field to a server this is undesirable.

I was going to suggest a limit of 200 characters - does that sound wrong to anyone? I expect real searches are probably < 100 characters, but I doubled that to be safe.

Unfortunately GTK+ still emits the changed signal even when the limit is set. So the change might need to diff the last search value against the new one to decide if it should be sent. Or should we depend on a new GTK+ for this? I guess that would require the change to go to a stable release.

--Robert

[1] https://bugzilla.gnome.org/show_bug.cgi?id=782636


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]