diff options
Diffstat (limited to 'e-util/e-table-search.c')
-rw-r--r-- | e-util/e-table-search.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/e-util/e-table-search.c b/e-util/e-table-search.c index 5b6a7bd8d6..f21b5aa0b8 100644 --- a/e-util/e-table-search.c +++ b/e-util/e-table-search.c @@ -20,14 +20,13 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "e-table-search.h" +#include <config.h> #include <string.h> +#include <libedataserver/libedataserver.h> + #include "e-marshal.h" #define d(x) @@ -98,17 +97,19 @@ ets_accept (gpointer data) static void drop_timeout (ETableSearch *ets) { - if (ets->priv->timeout_id) { + if (ets->priv->timeout_id > 0) { g_source_remove (ets->priv->timeout_id); + ets->priv->timeout_id = 0; } - ets->priv->timeout_id = 0; } static void add_timeout (ETableSearch *ets) { drop_timeout (ets); - ets->priv->timeout_id = g_timeout_add_seconds (1, ets_accept, ets); + + ets->priv->timeout_id = + e_named_timeout_add_seconds (1, ets_accept, ets); } static void |