gvfs r2177 - in trunk: . daemon
- From: awalton svn gnome org
- To: svn-commits-list gnome org
- Subject: gvfs r2177 - in trunk: . daemon
- Date: Thu, 22 Jan 2009 00:58:21 +0000 (UTC)
Author: awalton
Date: Thu Jan 22 00:58:21 2009
New Revision: 2177
URL: http://svn.gnome.org/viewvc/gvfs?rev=2177&view=rev
Log:
2009-01-21 A. Walton <awalton gnome org>
* daemon/gvfsdaemon.c (daemon_schedule_exit):
* daemon/gvfsjobcreatemonitor.c (create_reply):
Use g_timeout_add_seconds() instead of g_timeout_add() to save
some power.
Modified:
trunk/ChangeLog
trunk/daemon/gvfsdaemon.c
trunk/daemon/gvfsjobcreatemonitor.c
Modified: trunk/daemon/gvfsdaemon.c
==============================================================================
--- trunk/daemon/gvfsdaemon.c (original)
+++ trunk/daemon/gvfsdaemon.c Thu Jan 22 00:58:21 2009
@@ -309,7 +309,7 @@
daemon_schedule_exit (GVfsDaemon *daemon)
{
if (daemon->exit_tag == 0)
- daemon->exit_tag = g_timeout_add (1000, exit_at_idle, daemon);
+ daemon->exit_tag = g_timeout_add_seconds (1, exit_at_idle, daemon);
}
static void
Modified: trunk/daemon/gvfsjobcreatemonitor.c
==============================================================================
--- trunk/daemon/gvfsjobcreatemonitor.c (original)
+++ trunk/daemon/gvfsjobcreatemonitor.c Thu Jan 22 00:58:21 2009
@@ -232,9 +232,9 @@
to allow for a subscribe call to come in and bump
the refcount */
g_object_ref (op_job->monitor);
- g_timeout_add (5000,
- unref_monitor_timeout,
- op_job->monitor);
+ g_timeout_add_seconds (5,
+ unref_monitor_timeout,
+ op_job->monitor);
obj_path = g_vfs_monitor_get_object_path (op_job->monitor);
dbus_message_iter_init_append (reply, &iter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]