diff options
author | Diego Escalante Urrelo <diegoe@svn.gnome.org> | 2007-01-03 16:08:12 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <diegoe@src.gnome.org> | 2007-01-03 16:08:12 +0800 |
commit | ba82c09a4fad2c258eee6198c2c460fce28afd7b (patch) | |
tree | fbca03b2be9de64f2073ed154f184c798fac96c8 /src/ephy-session.c | |
parent | 6f06e1d567f30dc39347f8ce0f05ab16499aea7a (diff) | |
download | gsoc2013-epiphany-ba82c09a4fad2c258eee6198c2c460fce28afd7b.tar.gz 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-session.c')
-rw-r--r-- | src/ephy-session.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ephy-session.c b/src/ephy-session.c index 1214d9e07..b8493abdd 100644 --- a/src/ephy-session.c +++ b/src/ephy-session.c @@ -35,6 +35,7 @@ #include "ephy-gui.h" #include "ephy-debug.h" #include "ephy-stock-icons.h" +#include "ephy-glib-compat.h" #include <glib/gi18n.h> #include <gtk/gtkmain.h> @@ -293,7 +294,7 @@ confirm_shutdown_cb (GnomeClient *client, data->key = key; /* This isn't very exact, but it's good enough here */ - data->timeout_id = g_timeout_add (1000, + data->timeout_id = g_timeout_add_seconds (1, (GSourceFunc) confirm_shutdown_dialog_tick_cb, data); data->ticks = 60; |