From: Dan Winship Date: Wed, 29 Jun 2011 12:41:41 +0000 (-0400) Subject: giscanner: mark GAsyncReadyCallbacks as allow-none X-Git-Tag: GOBJECT_INTROSPECTION_1_29_15~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=834f928f2032434fa8f54f68c51cc40fa8271733;p=platform%2Fupstream%2Fgobject-introspection.git giscanner: mark GAsyncReadyCallbacks as allow-none https://bugzilla.gnome.org/show_bug.cgi?id=653484 --- diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py index 0fa89051..34d17b44 100644 --- a/giscanner/maintransformer.py +++ b/giscanner/maintransformer.py @@ -537,6 +537,7 @@ usage is void (*_gtk_reserved1)(void);""" self._adjust_container_type(parent, node, options) if (OPT_ALLOW_NONE in options or + node.type.target_giname == 'Gio.AsyncReadyCallback' or node.type.target_giname == 'Gio.Cancellable'): node.allow_none = True diff --git a/tests/scanner/Foo-1.0-expected.gir b/tests/scanner/Foo-1.0-expected.gir index fa5ee930..8b9dc387 100644 --- a/tests/scanner/Foo-1.0-expected.gir +++ b/tests/scanner/Foo-1.0-expected.gir @@ -891,6 +891,7 @@ exposed to language bindings. diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir index e2f2f93e..a85f38b3 100644 --- a/tests/scanner/Regress-1.0-expected.gir +++ b/tests/scanner/Regress-1.0-expected.gir @@ -1598,7 +1598,10 @@ TpAccount::status-changed - +