aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-extensions-manager.c
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@svn.gnome.org>2007-01-03 16:08:12 +0800
committerDiego Escalante Urrelo <diegoe@src.gnome.org>2007-01-03 16:08:12 +0800
commitba82c09a4fad2c258eee6198c2c460fce28afd7b (patch)
treefbca03b2be9de64f2073ed154f184c798fac96c8 /src/ephy-extensions-manager.c
parent6f06e1d567f30dc39347f8ce0f05ab16499aea7a (diff)
downloadgsoc2013-epiphany-ba82c09a4fad2c258eee6198c2c460fce28afd7b.tar
gsoc2013-epiphany-ba82c09a4fad2c258eee6198c2c460fce28afd7b.tar.gz
gsoc2013-epiphany-ba82c09a4fad2c258eee6198c2c460fce28afd7b.tar.bz2
gsoc2013-epiphany-ba82c09a4fad2c258eee6198c2c460fce28afd7b.tar.lz
gsoc2013-epiphany-ba82c09a4fad2c258eee6198c2c460fce28afd7b.tar.xz
gsoc2013-epiphany-ba82c09a4fad2c258eee6198c2c460fce28afd7b.tar.zst
gsoc2013-epiphany-ba82c09a4fad2c258eee6198c2c460fce28afd7b.zip
Utilize GLib's new g_timeout_add_seconds to reduce context switches and
2007-01-03 Diego Escalante Urrelo <diegoe@svn.gnome.org> * embed/ephy-favicon-cache.c: (ephy_favicon_cache_init): * embed/ephy-history.c: (ephy_history_init): * lib/Makefile.am: * lib/ephy-glib-compat.h: * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_save_delayed): * src/ephy-dbus.c: (session_filter_func), (system_filter_func): * src/ephy-extensions-manager.c: (reload_cb): * src/ephy-session.c: (confirm_shutdown_cb): Utilize GLib's new g_timeout_add_seconds to reduce context switches and improve CPU/power efficiency. Patch by Chris Wilson. svn path=/trunk/; revision=6783
Diffstat (limited to 'src/ephy-extensions-manager.c')
-rw-r--r--src/ephy-extensions-manager.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ephy-extensions-manager.c b/src/ephy-extensions-manager.c
index bd8ca8e00..23ca87996 100644
--- a/src/ephy-extensions-manager.c
+++ b/src/ephy-extensions-manager.c
@@ -35,6 +35,8 @@
#include "ephy-object-helpers.h"
#include "ephy-debug.h"
+#include "ephy-glib-compat.h"
+
#include <libxml/tree.h>
#include <libxml/xmlreader.h>
#include <libxml/globals.h>
@@ -62,7 +64,7 @@
#define EE_GROUP "Epiphany Extension"
#define DOT_INI ".ephy-extension"
#define RELOAD_DELAY 333 /* ms */
-#define RELOAD_SYNC_DELAY 1000 /* ms */
+#define RELOAD_SYNC_DELAY 1 /* seconds */
#define ENABLE_LEGACY_FORMAT
@@ -940,7 +942,7 @@ reload_cb (gpointer *data)
g_source_remove (priv->sync_timeout_id);
}
- priv->sync_timeout_id = g_timeout_add (RELOAD_SYNC_DELAY,
+ priv->sync_timeout_id = g_timeout_add_seconds (RELOAD_SYNC_DELAY,
(GSourceFunc) reload_sync_cb,
manager);
return FALSE;