<p>Looks mostly sensible.  But all this <code>GFile</code> creation, and this making Geany use GIO more and more makes me wonder: don't we rather want to have a <code>GFile</code> member attached to a document in addition to the path, and have this <code>NULL</code> when not using GIO?  That would re-use the same link all the way, and possibly might prevent some oddies when loading from an URI and writing to a path (when <em>gvfs-fuse</em> is available) -- I doubt it should be a problem, but still, could be suboptimal I guess.</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/963#issuecomment-198804732">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ5Dru5ehUPMe9s74MT8BXs2utGOXks5pvIFsgaJpZM4HvqFb.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/963#issuecomment-198804732"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>