[pango/gi-docs] Drop some useless things from the gir



commit 49fd29b5729af478fcb4f17fb061850d1ed89df8
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Feb 15 21:06:28 2021 -0500

    Drop some useless things from the gir
    
    We don't need the deprecated and useless module
    and engine types in the gir and the docs.

 pango/pango-engine.h  | 10 +++++-----
 pango/pango-modules.h |  7 +++++++
 pango/pango-types.h   |  2 ++
 3 files changed, 14 insertions(+), 5 deletions(-)
---
diff --git a/pango/pango-engine.h b/pango/pango-engine.h
index 8b99ec63..16b39c3f 100644
--- a/pango/pango-engine.h
+++ b/pango/pango-engine.h
@@ -30,6 +30,11 @@
 
 G_BEGIN_DECLS
 
+/* All of this is deprecated and entirely useless for bindings.
+ * Leave it out of the gir file.
+ */
+#ifndef __GI_SCANNER__
+
 #ifndef PANGO_DISABLE_DEPRECATED
 
 /**
@@ -287,11 +292,6 @@ struct _PangoEngineInfo
   gint n_scripts;
 };
 
-/* We should to ignore these unprefixed symbols when going through
- * this header with the introspection scanner
- */
-#ifndef __GI_SCANNER__
-
 /**
  * script_engine_list: (skip)
  * @engines: location to store a pointer to an array of engines.
diff --git a/pango/pango-modules.h b/pango/pango-modules.h
index 64900a17..54b347a2 100644
--- a/pango/pango-modules.h
+++ b/pango/pango-modules.h
@@ -26,6 +26,11 @@
 
 G_BEGIN_DECLS
 
+/* All of this is deprecated and entirely useless for bindings.
+ * Leave it out of the gir file.
+ */
+#ifndef __GI_SCANNER__
+
 #ifndef PANGO_DISABLE_DEPRECATED
 
 typedef struct _PangoMap PangoMap;
@@ -72,6 +77,8 @@ void           pango_module_register (PangoIncludedModule *module);
 
 #endif /* PANGO_DISABLE_DEPRECATED */
 
+#endif /* __GI_SCANNER__ */
+
 G_END_DECLS
 
 #endif /* __PANGO_MODULES_H__ */
diff --git a/pango/pango-types.h b/pango/pango-types.h
index 82f879da..f9c0cf35 100644
--- a/pango/pango-types.h
+++ b/pango/pango-types.h
@@ -31,8 +31,10 @@ G_BEGIN_DECLS
 
 typedef struct _PangoLogAttr PangoLogAttr;
 
+#ifndef __GI_SCANNER__
 typedef struct _PangoEngineLang PangoEngineLang;
 typedef struct _PangoEngineShape PangoEngineShape;
+#endif
 
 typedef struct _PangoFont    PangoFont;
 typedef struct _PangoFontMap PangoFontMap;


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