]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Support owned delegates with Idle.add
authorJürg Billeter <j@bitron.ch>
Thu, 17 Sep 2009 14:49:55 +0000 (16:49 +0200)
committerJürg Billeter <j@bitron.ch>
Thu, 17 Sep 2009 14:49:55 +0000 (16:49 +0200)
vala/valaformalparameter.vala
vapi/glib-2.0.vapi

index 3a35aebcc713dcb3f55035dbadd72b09e9c426da..b9dd31a69815d70d0627dcf7e0ab911ef400048e 100644 (file)
@@ -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");
                }
index a06c271c558e3e22ba3100fd7ce39b0dbb4d9354..7133e2199ed75f422db5a0af4954a2f5bb5065eb 100644 (file)
@@ -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);
        }