diff options
author | Armin Weatherwax | 2010-02-19 13:15:39 +0100 |
---|---|---|
committer | Jacek Antonelli | 2010-02-22 00:54:42 -0600 |
commit | 0a9bdaed77836f02eb3196a369083a7c52271a2b (patch) | |
tree | e324c0b43c56f3b62bde5ac72bde1e289355adef /linden/indra/newview/llfilepicker.cpp | |
parent | Ignore HideFromEditor from settings.xml. (diff) | |
download | meta-impy-0a9bdaed77836f02eb3196a369083a7c52271a2b.zip meta-impy-0a9bdaed77836f02eb3196a369083a7c52271a2b.tar.gz meta-impy-0a9bdaed77836f02eb3196a369083a7c52271a2b.tar.bz2 meta-impy-0a9bdaed77836f02eb3196a369083a7c52271a2b.tar.xz |
Fixed Linux file picker not showing WAV files.
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfilepicker.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/linden/indra/newview/llfilepicker.cpp b/linden/indra/newview/llfilepicker.cpp index 6334688..7b4caa8 100644 --- a/linden/indra/newview/llfilepicker.cpp +++ b/linden/indra/newview/llfilepicker.cpp | |||
@@ -1090,8 +1090,13 @@ static std::string add_simple_mime_filter_to_gtkchooser(GtkWindow *picker, | |||
1090 | 1090 | ||
1091 | static std::string add_wav_filter_to_gtkchooser(GtkWindow *picker) | 1091 | static std::string add_wav_filter_to_gtkchooser(GtkWindow *picker) |
1092 | { | 1092 | { |
1093 | return add_simple_mime_filter_to_gtkchooser(picker, "audio/x-wav", | 1093 | GtkFileFilter *gfilter = gtk_file_filter_new(); |
1094 | LLTrans::getString("sound_files") + " (*.wav)"); | 1094 | gtk_file_filter_add_pattern(gfilter, "*.wav"); |
1095 | gtk_file_filter_add_mime_type(gfilter,"audio/x-wav");//not working | ||
1096 | |||
1097 | std::string filtername = LLTrans::getString("sound_files") + " (*.wav)"; | ||
1098 | add_common_filters_to_gtkchooser(gfilter, picker, filtername); | ||
1099 | return filtername; | ||
1095 | } | 1100 | } |
1096 | 1101 | ||
1097 | static std::string add_bvh_filter_to_gtkchooser(GtkWindow *picker) | 1102 | static std::string add_bvh_filter_to_gtkchooser(GtkWindow *picker) |