<blockquote>
<p>Slightly related is this Gist I made for someone last year who just wanted documents to remain sorted by basename: <a href="https://gist.github.com/codebrainz/3824677">https://gist.github.com/codebrainz/3824677</a></p>
</blockquote>

<p>I've been wondering how to use a custom struct to hold document or tab info, and also how to use <code>g_slice_alloc()</code>.  Your example demonstrates it well.   I thought about using a custom list before, but the solution I was working on turned out be not the proper one.  Still, I could use your code as a reference someday.  I'll also refer to it if I convert this feature to a plugin.</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, <a href="https://github.com/geany/geany/pull/1144#issuecomment-235597792">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJxu3JHJAq3epMzTyhbPKfgABha_cks5qZ2eLgaJpZM4JQxCD">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ5-rxMywtKwYMN8EtBXdbTf-Y2WDks5qZ2eLgaJpZM4JQxCD.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/1144#issuecomment-235597792"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>