summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-06-23 04:44:17 +0000
committerMatthias Clasen <mclasen@redhat.com>2020-10-01 14:51:04 -0400
commit72296f99570dc582fa73dcba6b0931292b8d85cd (patch)
tree612b2e613ceca7a9a7cd877afbaf857050a80194
parent6357e9fc598c8e1eb46b04b8f5aa8377a3d9cb16 (diff)
downloadgtk-doc-72296f99570dc582fa73dcba6b0931292b8d85cd.tar.gz
Better index entries for actions
-rw-r--r--gtkdoc/mkdb.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/gtkdoc/mkdb.py b/gtkdoc/mkdb.py
index f32fb1f..9a68da4 100644
--- a/gtkdoc/mkdb.py
+++ b/gtkdoc/mkdb.py
@@ -943,6 +943,7 @@ def OutputIndex(basename, apiindex):
logging.info("trying symbol %s", symbol)
m1 = re.search(r'(.*)::(.*)', symbol)
m2 = re.search(r'(.*):(.*)', symbol)
+ m3 = re.search(r'(.*)\|(.*)', symbol)
if m1:
oname = m1.group(1)
osym = m1.group(2)
@@ -967,6 +968,18 @@ def OutputIndex(basename, apiindex):
symbol_section = SymbolSection[oname]
symbol_section_id = SymbolSectionId[oname]
break
+ elif m3:
+ oname = m3.group(1)
+ osym = m3.group(2)
+ logging.info(" trying action %s|%s in %d actions", oname, osym, len(ActionNames))
+ for name in ActionNames:
+ logging.info(" " + name)
+ if name == osym:
+ symbol_type = "action"
+ if oname in SymbolSection:
+ symbol_section = SymbolSection[oname]
+ symbol_section_id = SymbolSectionId[oname]
+ break
else:
if symbol in SymbolSection:
symbol_section = SymbolSection[symbol]