[gtk-doc/actions: 4/4] Better index entries for actions



commit 7f470415d308ffb83bc51a8a851ec5a9e6179f57
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jun 23 04:44:17 2019 +0000

    Better index entries for actions

 gtkdoc/mkdb.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)
---
diff --git a/gtkdoc/mkdb.py b/gtkdoc/mkdb.py
index 3d9bfe7..8a9e6e3 100644
--- a/gtkdoc/mkdb.py
+++ b/gtkdoc/mkdb.py
@@ -970,6 +970,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)
@@ -994,6 +995,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]


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