[Commits] [SCM] claws branch, master, updated. 3.18.0-334-gd154d3fe7

wwp at claws-mail.org wwp at claws-mail.org
Sun Feb 6 10:23:53 UTC 2022


The branch, master has been updated
       via  d154d3fe780aad5214661c9f01f323ececa16d44 (commit)
      from  305feef56cb0cf88bbc342e03623212f94ac5759 (commit)

Summary of changes:
 src/gtk/quicksearch.c | 2 +-
 src/prefs_common.c    | 3 +++
 src/prefs_common.h    | 3 +++
 3 files changed, 7 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit d154d3fe780aad5214661c9f01f323ececa16d44
Author: wwp <subscript at free.fr>
Date:   Sun Feb 6 11:23:05 2022 +0100

    Make the quicksearch type-ahead keypress delay (before triggering
    the search) customizable using a hidden preference.

diff --git a/src/gtk/quicksearch.c b/src/gtk/quicksearch.c
index d74d99dce..3b2cfce99 100644
--- a/src/gtk/quicksearch.c
+++ b/src/gtk/quicksearch.c
@@ -315,7 +315,7 @@ static void searchbar_changed_cb(GtkWidget *widget, QuickSearch *qs)
 		if (qs->press_timeout_id != 0) {
 			g_source_remove(qs->press_timeout_id);
 		}
-		qs->press_timeout_id = g_timeout_add(500,
+		qs->press_timeout_id = g_timeout_add(prefs_common.qs_press_timeout,
 				searchbar_changed_timeout, qs);
 	}
 
diff --git a/src/prefs_common.c b/src/prefs_common.c
index 75dbe6c02..a1ecbeb16 100644
--- a/src/prefs_common.c
+++ b/src/prefs_common.c
@@ -1308,6 +1308,9 @@ static PrefParam param[] = {
 	{"proxy_name", "", &prefs_common.proxy_info.proxy_name, P_STRING, NULL, NULL, NULL},
 	{"proxy_pass", NULL, &prefs_common.proxy_info.proxy_pass, P_STRING, NULL, NULL, NULL},
 
+	{"qs_press_timeout", "500", &prefs_common.qs_press_timeout, P_INT,
+	 NULL, NULL, NULL},
+
 	{NULL, NULL, NULL, P_OTHER, NULL, NULL, NULL}
 };
 
diff --git a/src/prefs_common.h b/src/prefs_common.h
index 7b3b0c26a..430de5c11 100644
--- a/src/prefs_common.h
+++ b/src/prefs_common.h
@@ -588,6 +588,9 @@ struct _PrefsCommon
 	/* Proxy */
 	gboolean use_proxy;
 	ProxyInfo proxy_info;
+
+    /* Quicksearch */
+    guint qs_press_timeout;
 };
 
 extern PrefsCommon prefs_common;

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list