gobject-introspection r933 - trunk/tools



Author: walters
Date: Mon Nov 17 00:27:39 2008
New Revision: 933
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=933&view=rev

Log:
Also generate new syntax

Modified:
   trunk/tools/generate.c

Modified: trunk/tools/generate.c
==============================================================================
--- trunk/tools/generate.c	(original)
+++ trunk/tools/generate.c	Mon Nov 17 00:27:39 2008
@@ -986,24 +986,19 @@
 
   if (deprecated)
     xml_printf (file, " deprecated=\"1\"");
-	
 
   if (g_interface_info_get_n_prerequisites (info) > 0)
     {
-      xml_start_element (file, "requires");
       for (i = 0; i < g_interface_info_get_n_prerequisites (info); i++)
 	{
 	  GIBaseInfo *req = g_interface_info_get_prerequisite (info, i);
-	  
-	  if (g_base_info_get_type (req) == GI_INFO_TYPE_INTERFACE)
-            xml_start_element (file, "interface");
-	  else
-            xml_start_element (file, "object");
+
+	  xml_start_element (file, "prerequisite");
 	  write_type_name_attribute (namespace, req, "name", file);
+
           xml_end_element_unchecked (file);
 	  g_base_info_unref (req);
 	}
-      xml_end_element (file, "requires");
     }
 
   for (i = 0; i < g_interface_info_get_n_methods (info); i++)



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