<p>I don't like the idea of generating a source file to create alias symbols, just because the GIR generator tool can't be properly told to put those as methods of the object.</p>

<p>Can't you, instead of actually adding the symbols, trick the tool to understand what you want?  Basically, rename the symbols it parses, and then fix them back in the output so they refer the actual name.</p>

<p>Maybe something roughly around those lines:</p>

<div class="highlight highlight-source-shell"><pre>TEMP_HEADER=geany-gtkdoc-sciobjected.h

sed <span class="pl-s"><span class="pl-pds">'</span>s/sci_/scintilla_object_/<span class="pl-pds">'</span></span> geany-gtkdoc.h <span class="pl-k">></span> <span class="pl-smi">$TEMP_HEADER</span>
g-ir-scanner ... <span class="pl-smi">$TEMP_HEADER</span>
sed <span class="pl-s"><span class="pl-pds">'</span>s/cname="scintilla_object_/cname="sci_/<span class="pl-pds">'</span></span> -i Geany-1.0.gir</pre></div>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/pull/935#issuecomment-192912469">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ_ZWLjuldc-F3KMNuEYvyympx5faks5pqu9egaJpZM4HqIcu.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/935#issuecomment-192912469"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>