<p>@tchee There is a bug in the prefs UI: when deactivating "show sidebar", the new option isn't grayed out.  What I'd do is make the whole <code>vbox46</code> insensitive in <code>on_sidebar_visible_toggled()</code> -- and renamed the glade ID to something more sensible, like i.e. <code>box_sidebar_visible_children</code> or alike.</p>

<hr>

<p>Also, what about using an multi-choice UI like this (or a drop-down, but well) instead of a checkbox?:<br>
<a href="https://cloud.githubusercontent.com/assets/793526/12222199/63be1498-b7b5-11e5-88fe-7278518c50bb.png" target="_blank"><img src="https://cloud.githubusercontent.com/assets/793526/12222199/63be1498-b7b5-11e5-88fe-7278518c50bb.png" alt="capture" style="max-width:100%;"></a><br>
This would</p>

<ul>
<li>make it easier for the user to see the available options</li>
<li>make it easier to add new options in the future (although unlikely)</li>
</ul>

<p>And while at it, what about storing the actual sort mode in the prefs instead of a flag?  Again, scales better.</p>

<p>If we want the above, I have some working version I could polish and publish.</p>

<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/581#issuecomment-170359728">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJyXuWvouKfRsK1wU70fPzT1i7NTBks5pYm6jgaJpZM4FbTe1.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/581#issuecomment-170359728"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>