[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-411-ge9519f7e8

wwp at claws-mail.org wwp at claws-mail.org
Sun Feb 6 10:24:13 UTC 2022


The branch, gtk3 has been updated
       via  e9519f7e89c9cb870b15cbdb02b4668d7f8fb58a (commit)
      from  16aa94775b0fbe308e37414589384837839515e7 (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 e9519f7e89c9cb870b15cbdb02b4668d7f8fb58a
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 5b495aaac..eb7c85727 100644
--- a/src/gtk/quicksearch.c
+++ b/src/gtk/quicksearch.c
@@ -331,7 +331,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 6187168e8..e2ad46b29 100644
--- a/src/prefs_common.c
+++ b/src/prefs_common.c
@@ -1304,6 +1304,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 bd42b9e22..aa9587e94 100644
--- a/src/prefs_common.h
+++ b/src/prefs_common.h
@@ -586,6 +586,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