From 27746e4cd822cf80d467fdff40f3e7509a0d9af2 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 19 Dec 2015 20:15:38 +0100 Subject: The GUI proposes to add supported files only by default Now, the popup to add files to the interface only shows supported files by default. It's of course still possible to chose to show every possible files, but it's not the default behaviour anymore. --- mat-gui | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'mat-gui') diff --git a/mat-gui b/mat-gui index 25ec86f..e313251 100755 --- a/mat-gui +++ b/mat-gui @@ -136,12 +136,6 @@ class GUI(object): chooser.set_default_response(0) chooser.set_select_multiple(True) - # filter that shows all files - all_filter = Gtk.FileFilter() - all_filter.set_name(_('All files')) - all_filter.add_pattern('*') - chooser.add_filter(all_filter) - # filter that shows only supported formats supported_filter = Gtk.FileFilter() supported_filter.set_name(_('Supported files')) @@ -149,6 +143,12 @@ class GUI(object): supported_filter.add_mime_type(i) chooser.add_filter(supported_filter) + # filter that shows all files + all_filter = Gtk.FileFilter() + all_filter.set_name(_('All files')) + all_filter.add_pattern('*') + chooser.add_filter(all_filter) + if not chooser.run(): # Gtk.STOCK_OK filenames = chooser.get_filenames() GLib.idle_add(self.populate(filenames).next) # asynchronous processing -- cgit v1.3