gobject-introspection r871 - in trunk: . giscanner



Author: juergbi
Date: Sun Nov  9 14:33:24 2008
New Revision: 871
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=871&view=rev

Log:
2008-11-09  JÃrg Billeter  <j bitron ch>

	* giscanner/ast.py:
	* giscanner/girwriter.py:

	Write throws attribute for virtual functions, fixes bug 559703


Modified:
   trunk/ChangeLog
   trunk/giscanner/ast.py
   trunk/giscanner/girwriter.py

Modified: trunk/giscanner/ast.py
==============================================================================
--- trunk/giscanner/ast.py	(original)
+++ trunk/giscanner/ast.py	Sun Nov  9 14:33:24 2008
@@ -430,6 +430,7 @@
         self.retval = retval
         self.parameters = parameters
         self.ctype = ctype
+        self.throws = False
 
     def __repr__(self):
         return 'Callback(%r, %r, %r)' % (

Modified: trunk/giscanner/girwriter.py
==============================================================================
--- trunk/giscanner/girwriter.py	(original)
+++ trunk/giscanner/girwriter.py	Sun Nov  9 14:33:24 2008
@@ -291,6 +291,7 @@
         # FIXME: reuse _write_function
         attrs = [('name', callback.name), ('c:type', callback.ctype)]
         self._append_deprecated(callback, attrs)
+        self._append_throws(callback, attrs)
         with self.tagcontext('callback', attrs):
             self._write_return_type(callback.retval)
             self._write_parameters(callback.parameters)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]