title: Programmatically change FileChooserDialog to list directories first with Python 3.4 and Gtk3?
body: <p>I'm new to UI developement with Gtk and ran into something I didn't expect.  The FileChooser automatically sorts by name, regardless to if it's a file or directory.  I like having directories listed first, and people are used to/expect it.</p>
  
  <p>Is there some way I can get FileChooser to behave this way?</p>
  
  <p>EDIT:
  In most of the major visual file managers, it is the default behavior to list the directories before the files.  These links show what people typically see in their file managers:
  <a href="http://agateau.com/2010/obsessed-with-details-file-dialog-audio-preview/kfileaudiopreview-before.png" rel="nofollow">konqueror</a>, <a href="http://blogs.gnome.org/cneumair/files/2008/02/screenshot-compact-icons.png" rel="nofollow">nautilus</a>, <a href="http://almostconnecticut.net/linuxismylife/wp-content/uploads/2011/06/foresight_03.png" rel="nofollow">thunar</a>, <a href="https://earthsci.stanford.edu/computing/hosting/access/images/windowsexplorerwwwfolder.png" rel="nofollow">windows</a>, <a href="http://screenshots.en.sftcdn.net/blog/en/2013/04/total-finder.jpg" rel="nofollow">osx</a> and this is what I'm seeing with <a href="http://www.imagesup.net/?di=1214223085603" rel="nofollow">my Gtk FileChooser</a>.  Is there a way I can get it to look like the rest of the file managers by default, using code?</p>
  
  <p>EDIT2, the code I open it with:</p>
  
  <pre><code>dialog=Gtk.FileChooserDialog("Select a file",self,
          Gtk.FileChooserAction.OPEN,(
              Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
              Gtk.STOCK_OPEN, Gtk.ResponseType.OK))
  response=dialog.run()
  </code></pre>