Commit cb09d0ed authored by Martyn James Russell's avatar Martyn James Russell

Use g_timeout_add_seconds() in preference to g_timeout_add(). Fixes bug

	* src/tracker-applet/tracker-applet.c: (filter_x_events):
	* src/trackerd/tracker-main.c: (main):
	* src/trackerd/tracker-processor.c: (item_queue_handlers_set_up):
	Use g_timeout_add_seconds() in preference to g_timeout_add().
	Fixes bug #573834 (Marcel Stimberg).

svn path=/trunk/; revision=3094
parent 11bc6329
2009-03-16 Martyn Russell <martyn@imendio.com>
* src/tracker-applet/tracker-applet.c: (filter_x_events):
* src/trackerd/tracker-main.c: (main):
* src/trackerd/tracker-processor.c: (item_queue_handlers_set_up):
Use g_timeout_add_seconds() in preference to g_timeout_add().
Fixes bug #573834 (Marcel Stimberg).
2009-03-16 Martyn Russell <martyn@imendio.com>
* configure.ac: Fix confusion and error with deskbar-applet module
......
......@@ -762,7 +762,7 @@ filter_x_events (GdkXEvent *xevent,
case MotionNotify:
if (ev->xmotion.is_hint) {
/* need to respond to hints so we continue to get events */
g_timeout_add (1000,
g_timeout_add_seconds (1,
(GSourceFunc) query_pointer_timeout,
GINT_TO_POINTER (ev->xmotion.window));
}
......
......@@ -1103,7 +1103,7 @@ main (gint argc, gchar *argv[])
if (seconds > 0) {
g_message ("Waiting %d seconds before starting",
seconds);
g_timeout_add (seconds * 1000, start_cb, NULL);
g_timeout_add_seconds (seconds, start_cb, NULL);
} else {
g_idle_add (start_cb, NULL);
}
......
......@@ -43,7 +43,7 @@
#define TRACKER_PROCESSOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TRACKER_TYPE_PROCESSOR, TrackerProcessorPrivate))
#define ITEMS_QUEUE_PROCESS_INTERVAL 2000
#define ITEMS_QUEUE_PROCESS_INTERVAL 2
#define ITEMS_QUEUE_PROCESS_MAX 1000
#define ITEMS_SIGNAL_TO_DAEMON_RATIO 500
......@@ -751,7 +751,7 @@ item_queue_handlers_set_up (TrackerProcessor *processor)
}
processor->private->item_queues_handler_id =
g_timeout_add (ITEMS_QUEUE_PROCESS_INTERVAL,
g_timeout_add_seconds (ITEMS_QUEUE_PROCESS_INTERVAL,
item_queue_handlers_cb,
processor);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment