]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: Fix GAsyncReadyCallback binding
authorJürg Billeter <j@bitron.ch>
Thu, 17 Sep 2009 21:12:49 +0000 (23:12 +0200)
committerJürg Billeter <j@bitron.ch>
Thu, 17 Sep 2009 21:12:49 +0000 (23:12 +0200)
vapi/gio-2.0.vapi
vapi/packages/gio-2.0/gio-2.0.metadata
vapigen/valagidlparser.vala

index 21a78b92325f195f8cc55488e3196de5b88a3974..793d91db52b1a67beabcffc1bcd05dd02f4ec346 100644 (file)
@@ -1417,7 +1417,7 @@ namespace GLib {
                ADDRESS_IN_USE,
        }
        [CCode (cheader_filename = "gio/gio.h")]
-       public delegate void AsyncReadyCallback (GLib.Object source_object, GLib.AsyncResult res);
+       public delegate void AsyncReadyCallback (GLib.Object? source_object, GLib.AsyncResult res);
        [CCode (cheader_filename = "gio/gio.h")]
        public delegate void FileProgressCallback (int64 current_num_bytes, int64 total_num_bytes);
        [CCode (cheader_filename = "gio/gio.h", has_target = false)]
index 63051cbb1194e8a91fb14bf4c383af82be079a56..1ca9522622a15ce7ada77b307360dce1b947a9f5 100644 (file)
@@ -3,6 +3,7 @@ g_app_info_launch.envp is_array="1"
 g_app_info_launch.launch_context nullable="1"
 g_app_info_launch_default_for_uri.launch_context nullable="1"
 g_app_info_launch_uris.envp is_array="1"
+GAsyncReadyCallback.source_object nullable="1"
 g_content_type_guess.data_size hidden="1"
 g_content_type_guess.result_uncertain is_out="1"
 g_data_input_stream_read_line nullable="1"
index c7e2e1a66ed78f324b62c9f8738bd30f885c39f5..6cb068f23fdd8e7ca88bf6a2f3efc25f2cbd84dc 100644 (file)
@@ -369,6 +369,10 @@ public class Vala.GIdlParser : CodeVisitor {
                                                        if (eval (nv[1]) == "1") {
                                                                param_type.value_owned = true;
                                                        }
+                                               } else if (nv[0] == "nullable") {
+                                                       if (eval (nv[1]) == "1") {
+                                                               param_type.nullable = true;
+                                                       }
                                                }
                                        }
                                }