[gi-docgen/callback-arg-link] generate: Add links to callback arguments




commit 895a21f6872ee17fefd1a5ad919f2bf0d06724d7
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Jul 20 11:00:45 2021 +0100

    generate: Add links to callback arguments
    
    We're missing that AST type in our link generation code.

 gidocgen/gdgenerate.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gidocgen/gdgenerate.py b/gidocgen/gdgenerate.py
index 321ad20..ec58d91 100644
--- a/gidocgen/gdgenerate.py
+++ b/gidocgen/gdgenerate.py
@@ -274,6 +274,8 @@ def gen_type_link(namespace, name):
             return f"<a href=\"alias.{name}.html\"><code>{t.ctype}</code></a>"
         elif isinstance(t, gir.BitField):
             return f"<a href=\"flags.{name}.html\"><code>{t.ctype}</code></a>"
+        elif isinstance(t, gir.Callback):
+            return f"<a href=\"callback.{name}.html\"><code>{t.ctype}</code></a>"
         elif isinstance(t, gir.Class):
             return f"<a href=\"class.{name}.html\"><code>{t.ctype}</code></a>"
         elif isinstance(t, gir.ErrorDomain):


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