From: Jürg Billeter Date: Thu, 17 Sep 2009 14:49:55 +0000 (+0200) Subject: glib-2.0: Support owned delegates with Idle.add X-Git-Tag: 0.7.6~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a59d540b293051cef07a59bc9c92e79435c78eaa;p=thirdparty%2Fvala.git glib-2.0: Support owned delegates with Idle.add --- diff --git a/vala/valaformalparameter.vala b/vala/valaformalparameter.vala index 3a35aebcc..b9dd31a69 100644 --- a/vala/valaformalparameter.vala +++ b/vala/valaformalparameter.vala @@ -162,6 +162,9 @@ public class Vala.FormalParameter : Symbol { if (a.has_argument ("type")) { ctype = a.get_string ("type"); } + if (a.has_argument ("pos")) { + cparameter_position = a.get_double ("pos"); + } if (a.has_argument ("array_length")) { no_array_length = !a.get_bool ("array_length"); } diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index a06c271c5..7133e2199 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -1263,7 +1263,8 @@ namespace GLib { } namespace Idle { - public static uint add (SourceFunc function); + [CCode (cname = "g_idle_add_full")] + public static uint add (owned SourceFunc function, [CCode (pos = 0.1)] int priority = 0); public static uint add_full (int priority, owned SourceFunc function); public static bool remove_by_data (void* data); }