From: Jürg Billeter Date: Thu, 17 Sep 2009 16:42:28 +0000 (+0200) Subject: glib-2.0: Support owned delegates with Timeout.add X-Git-Tag: 0.7.6~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=925ae5e9d2b3c536f007e9706470b2790c1485c5;p=thirdparty%2Fvala.git glib-2.0: Support owned delegates with Timeout.add --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 7133e2199..c62b34df6 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -1251,7 +1251,8 @@ namespace GLib { } namespace Timeout { - public static uint add (uint interval, SourceFunc function); + [CCode (cname = "g_timeout_add_full")] + public static uint add (uint interval, owned SourceFunc function, [CCode (pos = 0.1)] int priority = 0); public static uint add_full (int priority, uint interval, owned SourceFunc function); public static uint add_seconds (uint interval, SourceFunc function); public static uint add_seconds_full (int priority, uint interval, owned SourceFunc function);