aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-table-search.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-10-30 02:04:54 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-10-30 03:22:35 +0800
commitbc0d5d40ed39c92dcdf62ae891a2e99c25237d74 (patch)
treea07763eeaa20602bd4c0620b2fe67c443c52d29c /e-util/e-table-search.c
parentd3e0f96c73dde49acde92f6347b9e362d85e94aa (diff)
downloadgsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar
gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.gz
gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.bz2
gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.lz
gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.xz
gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.zst
gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.zip
Bug 710797 - Name all the timeouts added with g_timeout_add()
Diffstat (limited to 'e-util/e-table-search.c')
-rw-r--r--e-util/e-table-search.c15
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