<p>For the sake of comparison I made a branch to show what the minimal changes would look like to make GeanyDocument a real GObject instead of GBoxed: <a href="https://github.com/codebrainz/geany/commit/60feae4be48835e5c74f7c5c1adbf0070247546e" class="commit-link">codebrainz@<tt>60feae4</tt></a></p>

<p>It's within a few lines +/- of <a href="https://github.com/geany/geany/commit/07a84b11982327f7aa1dbbd3129bfba76b108afc" class="commit-link"><tt>07a84b1</tt></a> and also probably still has lifetime issues (still abusing G* ownership semantics a bit).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/geany/geany/pull/1038#issuecomment-220505695">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ9oCLouE1t1E6k2raV2F1qaAyQyxks5qDSM4gaJpZM4Ifw_7.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/1038#issuecomment-220505695"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>