[gi-docgen/callback-link] utils: Fix links to callback types
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gi-docgen/callback-link] utils: Fix links to callback types
- Date: Sat, 6 Nov 2021 14:58:37 +0000 (UTC)
commit 0774624f8b275d93bc949274ff32ef79fc14ddd9
Author: Emmanuele Bassi <ebassi gnome org>
Date: Sat Nov 6 14:58:01 2021 +0000
utils: Fix links to callback types
We're detecting callbacks, but not generating the appropriate link for
them.
gidocgen/utils.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gidocgen/utils.py b/gidocgen/utils.py
index e2ed0f3..de3a488 100644
--- a/gidocgen/utils.py
+++ b/gidocgen/utils.py
@@ -569,7 +569,7 @@ class LinkGenerator:
def text(self):
if self._alt_text is not None:
return self._alt_text[1:len(self._alt_text) - 1]
- elif self._fragment in ['alias', 'class', 'const', 'enum', 'error', 'flags', 'iface', 'struct']:
+ elif self._fragment in ['alias', 'callback', 'class', 'const', 'enum', 'error', 'flags', 'iface',
'struct']:
return f"<code>{self._type}</code>"
elif self._fragment == 'property':
return f"<code>{self._type}:{self._property_name}</code>"
@@ -584,7 +584,7 @@ class LinkGenerator:
@property
def href(self):
- if self._fragment in ['alias', 'class', 'const', 'enum', 'error', 'flags', 'iface', 'struct']:
+ if self._fragment in ['alias', 'callback', 'class', 'const', 'enum', 'error', 'flags', 'iface',
'struct']:
return f"{self._fragment}.{self._name}.html"
elif self._fragment == 'property':
return f"property.{self._name}.{self._property_name}.html"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]