[seed] Update timeout.js to include the priority argument now required for GLib.timeout_add
- From: Robert Carr <racarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] Update timeout.js to include the priority argument now required for GLib.timeout_add
- Date: Tue, 28 Apr 2009 17:47:55 -0400 (EDT)
commit 64a30d269dfc4eda04e91f12ded7ed6627f534e1
Author: Robert Carr <racarr svn gnome org>
Date: Tue Apr 28 17:47:50 2009 -0400
Update timeout.js to include the priority argument now required for GLib.timeout_add
---
examples/glib/timeout.js | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/examples/glib/timeout.js b/examples/glib/timeout.js
index a18935e..1f16cbd 100755
--- a/examples/glib/timeout.js
+++ b/examples/glib/timeout.js
@@ -4,8 +4,7 @@ GLib = imports.gi.GLib;
count = 0;
-function test()
-{
+function test(){
count++;
Seed.print("Hello from timeout number " + count);
if (count == 5)
@@ -13,8 +12,7 @@ function test()
return true;
}
-GLib.timeout_add(500,
-test,null);
+GLib.timeout_add(0, 500, test);
// No offset/size data for GLib.MainLoop, not our fault. Have to use context right now, because mainloop has a bad typelib info.
context = GLib.main_context_default();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]