Character limit on search entry
- From: Robert Ancell <robert ancell gmail com>
- To: "gnome-software-list gnome org" <gnome-software-list gnome org>
- Subject: Character limit on search entry
- Date: Tue, 16 May 2017 07:56:55 +0000
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]