summaryrefslogtreecommitdiff
path: root/rhimport
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2010-03-25 17:51:10 (GMT)
committerChristian Pointner <equinox@helsinki.at>2010-03-25 17:51:10 (GMT)
commit7987c5d0d6fe9b37501b0bbbe241beca8b3d0c40 (patch)
tree03f6fc8ea82dc92913ee4e53e860a9712908b2f3 /rhimport
parenta4c979249bf8f6814cbf3382cedcfd855749c653 (diff)
added filter for audio files
Diffstat (limited to 'rhimport')
-rwxr-xr-xrhimport11
1 files changed, 10 insertions, 1 deletions
diff --git a/rhimport b/rhimport
index aa3cd4a..3b828bc 100755
--- a/rhimport
+++ b/rhimport
@@ -121,7 +121,16 @@ sub set_mode_file_gui()
my $l_file_playlist = $guixml->get_widget('l_file_playlist');
$l_file_playlist->set_label("<b>Datei</b>");
my $filter = Gtk2::FileFilter->new;
- $filter->add_pattern("*");
+ $filter->add_pattern("*.wav");
+ $filter->add_pattern("*.WAV");
+ $filter->add_pattern("*.ogg");
+ $filter->add_pattern("*.OGG");
+ $filter->add_pattern("*.flac");
+ $filter->add_pattern("*.FLAC");
+ $filter->add_pattern("*.fla");
+ $filter->add_pattern("*.FLA");
+ $filter->add_pattern("*.mp*");
+ $filter->add_pattern("*.MP*");
my $filechooser = $guixml->get_widget('filechooser');
$filechooser->set_filter($filter);
}