[pygobject] Doc Extractor: Print the gtk-doc blocks sorted by function name.



commit 73e933d2429aea4d14e15350a538da1c5c3f71eb
Author: José Alburquerque <jaalburqu svn gnome org>
Date:   Sun Dec 12 20:38:46 2010 -0500

    	Doc Extractor: Print the gtk-doc blocks sorted by function name.
    
    	* codegen/docextract_to_xml.py: Print the xml of the gtk-doc block in
    	alphabetical order according to the identifier (function name) so that
    	the generation of xml files in the C++ bindings is deterministic.
    	Thanks to Krzesimir Nowak for suggesting this in a gtksourceviewmm
    	recent commit.

 codegen/docextract_to_xml.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/docextract_to_xml.py b/codegen/docextract_to_xml.py
index 7ac1053..f41c839 100755
--- a/codegen/docextract_to_xml.py
+++ b/codegen/docextract_to_xml.py
@@ -89,7 +89,7 @@ if __name__ == '__main__':
 
         print "<root>"
 
-        for name, value in docs.items():
+        for name, value in sorted(docs.items()):
             # Get the type of comment block ('function', 'signal' or
             # 'property') (the value is a GtkDoc).
             block_type = value.get_type()



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