[devhelp] KeywordModel: increase number of MAX_HITS



commit 490bc361dcff4499c4086256198e5ef78fd9217d
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Dec 14 18:23:40 2017 +0100

    KeywordModel: increase number of MAX_HITS
    
    This was a low-hanging fruit.
    
    Searching "GFile" didn't return an exact match (too many results).
    
    100 was a bit too few. With 1000 the GtkSearchEntry is still responsive
    (everything is synchronous in Devhelp, so some care must be taken to not
    freeze the GUI during a too long time, if there was no MAX_HITS, maybe
    it would cause a responsiveness problem in the GtkSearchEntry).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784652

 src/dh-keyword-model.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/dh-keyword-model.c b/src/dh-keyword-model.c
index f4f53eb..3cdbbfe 100644
--- a/src/dh-keyword-model.c
+++ b/src/dh-keyword-model.c
@@ -74,7 +74,7 @@ typedef struct {
         guint prefix : 1;
 } SearchSettings;
 
-#define MAX_HITS 100
+#define MAX_HITS 1000
 
 static void dh_keyword_model_tree_model_init (GtkTreeModelIface *iface);
 


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