chiark / gitweb /
Delay search initiation for a bit after the last keypress, to avoid
[disorder] / disobedience / choose.h
index ea2e2acd292d648a355eb31ea3106eeaa09fb416..f67261c1b5187cab39d4cb4d9627f49e29924b4e 100644 (file)
@@ -37,10 +37,17 @@ enum {
 };
 
 #ifndef SEARCH_RESULT_BG
+/** @brief Background color for search results */
 # define SEARCH_RESULT_BG "#ffffc0"
+/** @brief Foreground color for search results */
 # define SEARCH_RESULT_FG "black"
 #endif
 
+#ifndef SEARCH_DELAY_MS
+/** @brief Delay between last keypress in search entry and start of search */
+# define SEARCH_DELAY_MS 500            /* milliseconds */
+#endif
+
 extern GtkTreeStore *choose_store;
 extern GtkWidget *choose_view;
 extern GtkTreeSelection *choose_selection;