@@ -372,7 +372,7 @@ def __repr__(self):
372372 @staticmethod
373373 def parse (node , gtkmethod , pkg = None , ignore_return = False ):
374374 """Parse the parameter info and return type info from the XML
375- GIR node, overriding with binding.xml .
375+ GIR node, overriding with binding.toml .
376376 gtkmethod is the GtkAdaMethod that contains the overriding for the
377377 various method attributes.
378378 If pkg is specified, with statements are added as necessary.
@@ -931,7 +931,7 @@ def _handle_function_internal(self, section, node, cname,
931931 This returns None if no binding was made, an instance of Subprogram
932932 otherwise.
933933 `adaname' is the name of the generated Ada subprograms. By default,
934- it is computed automatically from either binding.xml or the "name"
934+ it is computed automatically from either binding.toml or the "name"
935935 attribute of `node'.
936936 `profile' is an instance of SubprogramProfile
937937 """
@@ -1645,7 +1645,7 @@ def _virtual_methods(self):
16451645 self .pkg .add_with ('Glib.Object' )
16461646
16471647 def _globals (self ):
1648- funcs = self .gtkpkg .get_global_functions () # List of binding.xml nodes
1648+ funcs = self .gtkpkg .get_global_functions () # List of binding.toml entries
16491649 if funcs :
16501650 section = self .pkg .section ("Functions" ) # Make sure section exists
16511651 for f in funcs :
@@ -2912,9 +2912,9 @@ def generate(self, gir):
29122912 dest = "gir_file" ,
29132913 metavar = "FILE" )
29142914parser .add_option (
2915- "--xml -file" ,
2916- help = "input GtkAda binding.xml file" ,
2917- dest = "xml_file " ,
2915+ "--toml -file" ,
2916+ help = "input GtkAda binding.toml file" ,
2917+ dest = "toml_file " ,
29182918 metavar = "FILE" )
29192919parser .add_option (
29202920 "--ada-output" ,
@@ -2933,16 +2933,16 @@ def generate(self, gir):
29332933missing_files = []
29342934if options .gir_file is None :
29352935 missing_files .append ("GIR file" )
2936- if options .xml_file is None :
2937- missing_files .append ("binding.xml file" )
2936+ if options .toml_file is None :
2937+ missing_files .append ("binding.toml file" )
29382938if options .ada_outfile is None :
29392939 missing_files .append ("Ada output file" )
29402940if options .c_outfile is None :
29412941 missing_files .append ("C output file" )
29422942if missing_files :
29432943 parser .error ('Must specify files:\n \t ' + ', ' .join (missing_files ))
29442944
2945- gtkada = GtkAda (options .xml_file )
2945+ gtkada = GtkAda (options .toml_file )
29462946gir = GIR (options .gir_file )
29472947
29482948Package .copyright_header = \
0 commit comments