[epiphany] search-provider: don't live forever
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] search-provider: don't live forever
- Date: Thu, 11 Sep 2014 13:10:53 +0000 (UTC)
commit 2b1d6d699e4394393da009a6f0e58f58fc6501e2
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Wed Sep 10 22:01:35 2014 -0500
search-provider: don't live forever
Search providers are supposed to quit after running for a few seconds.
https://bugzilla.gnome.org/show_bug.cgi?id=735912
src/ephy-search-provider.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-search-provider.c b/src/ephy-search-provider.c
index 31a517d..dbe1049 100644
--- a/src/ephy-search-provider.c
+++ b/src/ephy-search-provider.c
@@ -52,6 +52,8 @@ struct _EphySearchProviderClass
G_DEFINE_TYPE (EphySearchProvider, ephy_search_provider, G_TYPE_APPLICATION)
+#define INACTIVITY_TIMEOUT 10000 /* Ten seconds, in milliseconds */
+
static void
on_model_updated (EphyHistoryService *service,
gboolean success,
@@ -369,6 +371,8 @@ ephy_search_provider_init (EphySearchProvider *self)
g_free (filename);
self->cancellable = g_cancellable_new ();
+
+ g_application_set_inactivity_timeout (G_APPLICATION (self), INACTIVITY_TIMEOUT);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]