[gi-docgen/callback-ctype] indices: Include the callback ctype



commit cd16ed772161eaee913cd994ce4df618942e86ab
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Sep 16 14:10:51 2021 +0100

    indices: Include the callback ctype
    
    Global callbacks are types, and they should have a C type in the index.

 gidocgen/gdgenindices.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gidocgen/gdgenindices.py b/gidocgen/gdgenindices.py
index 404649f..e759c2d 100644
--- a/gidocgen/gdgenindices.py
+++ b/gidocgen/gdgenindices.py
@@ -107,9 +107,10 @@ def _gen_callbacks(config, stemmer, index, repository, symbols):
         index_symbols.append({
             "type": "callback",
             "name": callback.name,
+            "ctype": callback.base_ctype,
             "summary": utils.preprocess_docs(cb_desc, repository.namespace, summary=True, plain=True),
         })
-        add_index_terms(index_terms, [callback.name.lower()], idx)
+        add_index_terms(index_terms, [callback.base_ctype.lower()], idx)
         add_index_terms(index_terms, utils.index_identifier(callback.name, stemmer), idx)
         add_index_terms(index_terms, utils.index_description(cb_desc, stemmer), idx)
 


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