diff options
author | Colin Walters <walters@verbum.org> | 2010-06-17 10:38:39 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-06-17 10:49:41 -0400 |
commit | 7b4af5e3bd9081e5ff72d9439bb868017dd8c2c8 (patch) | |
tree | b24d72c5d8bf36c5e8fd20d666fe6da657401774 /giscanner/girwriter.py | |
parent | b683ef027b2d96c7cd6c7f895a0437a03567dc05 (diff) | |
download | gobject-introspection-7b4af5e3bd9081e5ff72d9439bb868017dd8c2c8.tar.gz |
More explicitly document how we'll use the version= attribute on repository
I want to start bumping it on incompatible .gir changes.
https://bugzilla.gnome.org/show_bug.cgi?id=621895
Diffstat (limited to 'giscanner/girwriter.py')
-rw-r--r-- | giscanner/girwriter.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py index 2dff4fe2..11f9dbe9 100644 --- a/giscanner/girwriter.py +++ b/giscanner/girwriter.py @@ -29,6 +29,9 @@ from .glibast import (GLibBoxed, GLibEnum, GLibEnumMember, GLibRecord) from .xmlwriter import XMLWriter +# Bump this for *incompatible* changes to the .gir. +# Compatible changes we just make inline +COMPATIBLE_GIR_VERSION = '1.0' class GIRWriter(XMLWriter): @@ -50,7 +53,7 @@ and/or use gtk-doc annotations. ''') if c_includes is None: c_includes = frozenset() attrs = [ - ('version', '1.0'), + ('version', COMPATIBLE_GIR_VERSION), ('xmlns', 'http://www.gtk.org/introspection/core/1.0'), ('xmlns:c', 'http://www.gtk.org/introspection/c/1.0'), ('xmlns:glib', 'http://www.gtk.org/introspection/glib/1.0'), |