[Pkg-privacy-commits] [mat] 54/68: The GUI proposes to add supported files only by default
Sascha Steinbiss
sascha at steinbiss.name
Sun Jan 3 12:32:43 UTC 2016
This is an automated email from the git hooks/post-receive script.
sascha-guest pushed a commit to branch master
in repository mat.
commit 27746e4cd822cf80d467fdff40f3e7509a0d9af2
Author: jvoisin <julien.voisin at dustri.org>
Date: Sat Dec 19 20:15:38 2015 +0100
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(-)
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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/mat.git
More information about the Pkg-privacy-commits
mailing list