[gnome-software] Limit search entry to 100 characters.



commit 7a0e4034bbf70b8a86ecc3281ce8078c33d7f6c7
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri May 12 11:39:26 2017 +1200

    Limit search entry to 100 characters.
    
    The search entry can be linked to a remote server - by limiting the number of
    characters this stops accidental input (e.g. cat sitting on keyboard) from
    generating continuous searches.
    
    Note, this will still generate events until GTK+ is fixed, see
    https://bugzilla.gnome.org/show_bug.cgi?id=782636

 src/gnome-software.ui |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-software.ui b/src/gnome-software.ui
index aa17a46..c551ceb 100644
--- a/src/gnome-software.ui
+++ b/src/gnome-software.ui
@@ -284,6 +284,7 @@
                 <property name="can_focus">True</property>
                 <property name="activates_default">True</property>
                 <property name="width_request">500</property>
+                <property name="max_length">100</property>
                 <property name="hexpand">True</property>
                 <property name="halign">center</property>
               </object>


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