diff options
author | McCabe Maxsted | 2009-10-18 17:58:27 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-10-18 17:58:27 -0700 |
commit | e4b0e7c82d670081c071d8a3da31b5ec407b8e07 (patch) | |
tree | 9410962bbb582eedbec448139e217f2714050777 /linden/indra/newview/llfilepicker.cpp | |
parent | Started 1.3.0 branch (diff) | |
parent | Updated and added some Linux libs. (diff) | |
download | meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.zip meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.gz meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.bz2 meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.xz |
Merged working branch of 1.2 into LL 1.23 merge
Diffstat (limited to 'linden/indra/newview/llfilepicker.cpp')
-rw-r--r-- | linden/indra/newview/llfilepicker.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/linden/indra/newview/llfilepicker.cpp b/linden/indra/newview/llfilepicker.cpp index 8f58826..60fa608 100644 --- a/linden/indra/newview/llfilepicker.cpp +++ b/linden/indra/newview/llfilepicker.cpp | |||
@@ -329,6 +329,18 @@ BOOL LLFilePicker::getSaveFile(ESaveFilter filter, const std::string& filename) | |||
329 | L"Targa, Bitmap Images (*.tga; *.bmp)\0*.tga;*.bmp\0" \ | 329 | L"Targa, Bitmap Images (*.tga; *.bmp)\0*.tga;*.bmp\0" \ |
330 | L"\0"; | 330 | L"\0"; |
331 | break; | 331 | break; |
332 | case FFSAVE_TEXT: | ||
333 | if (filename.empty()) | ||
334 | { | ||
335 | wcsncpy( mFilesW,L"untitled.txt", FILENAME_BUFFER_SIZE); /*Flawfinder: ignore*/ | ||
336 | } | ||
337 | mOFN.lpstrDefExt = L"txt"; | ||
338 | mOFN.lpstrFilter = | ||
339 | L"Text files (*.txt)\0*.txt\0" | ||
340 | L"RTF Files (*.rtf)\0*.rtf\0" | ||
341 | L"LSL Files (*.lsl)\0*.lsl\0" | ||
342 | L"\0"; | ||
343 | break; | ||
332 | case FFSAVE_WAV: | 344 | case FFSAVE_WAV: |
333 | if (filename.empty()) | 345 | if (filename.empty()) |
334 | { | 346 | { |
@@ -996,6 +1008,12 @@ GtkWindow* LLFilePicker::buildFilePicker(bool is_save, bool is_folder, std::stri | |||
996 | (GTK_FILE_CHOOSER(win), | 1008 | (GTK_FILE_CHOOSER(win), |
997 | this_path->second.c_str()); | 1009 | this_path->second.c_str()); |
998 | } | 1010 | } |
1011 | else if (getenv("HOME")) | ||
1012 | { | ||
1013 | gtk_file_chooser_set_current_folder | ||
1014 | (GTK_FILE_CHOOSER(win), | ||
1015 | getenv("HOME")); | ||
1016 | } | ||
999 | 1017 | ||
1000 | # if LL_X11 | 1018 | # if LL_X11 |
1001 | // Make GTK tell the window manager to associate this | 1019 | // Make GTK tell the window manager to associate this |