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



commit e451bb3fa95e8e52dd045c77991e7fc080e53720
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 79a7dbe..0f64993 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]


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