From eeac05d5cbd42308c33e777aecbf00595256519d Mon Sep 17 00:00:00 2001 From: Paul Pogonyshev Date: Mon, 14 Jul 2008 18:19:25 +0000 Subject: New class. (MethodDefBase.__init__): Make 'self.ret' a 'ReturnType' 2008-07-14 Paul Pogonyshev * codegen/definitions.py (ReturnType): New class. (MethodDefBase.__init__): Make 'self.ret' a 'ReturnType' instance, not string. Accept 'optional' flag. * codegen/argtypes.py (ArgMatcher.get_reverse_ret): Test if 'ptype' has true 'optional' attribute and copy it to 'props' then. * codegen/reversewrapper.py (ReturnType.support_optional): New class field, False by default. (GObjectReturn.support_optional, GObjectReturn.write_decl) (GObjectReturn.write_conversion): Support optional return. svn path=/trunk/; revision=796 --- ChangeLog | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index abd0f1a..26bff50 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,17 @@ 2008-07-14 Paul Pogonyshev + * codegen/definitions.py (ReturnType): New class. + (MethodDefBase.__init__): Make 'self.ret' a 'ReturnType' instance, + not string. Accept 'optional' flag. + + * codegen/argtypes.py (ArgMatcher.get_reverse_ret): Test if + 'ptype' has true 'optional' attribute and copy it to 'props' then. + + * codegen/reversewrapper.py (ReturnType.support_optional): New + class field, False by default. + (GObjectReturn.support_optional, GObjectReturn.write_decl) + (GObjectReturn.write_conversion): Support optional return. + * pygobject-2.0.pc.in: Add 'codegendir' variable. * codegen/pygtk-codegen-2.0.in: Make 'codegendir' refer to PyGObject's codegen, not PyGTK's one --- the latter will be -- cgit