]> git.saurik.com Git - wxWidgets.git/commitdiff
init the file and dir pickers with dummy files/folders
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Sat, 11 Oct 2008 16:03:59 +0000 (16:03 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Sat, 11 Oct 2008 16:03:59 +0000 (16:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

utils/screenshotgen/src/screenshot_main.cpp

index 165f71441455e005ddc2b1dd10ffd0b776d1ca07..0d9185147f58d07059f9f1b27fc467b574287fc0 100644 (file)
@@ -114,6 +114,18 @@ void ScreenshotFrame::InitFBControls()
                m_listCtrl1->SetItem(index, 1, wxString::Format("%d", index));
        }
 
                m_listCtrl1->SetItem(index, 1, wxString::Format("%d", index));
        }
 
+       // Init file and dir pickers
+       wxString file, dir;
+#if defined(__WXMSW__)
+       file = "C:\\Windows\\explorer.exe";
+       dir = "C:\\Windows";
+#else
+       file = "/bin/bash";
+       dir = "/home";
+#endif
+       m_filePicker1->SetPath(file);
+       m_dirPicker1->SetPath(dir);
+
     // Check the first item in wxCheckListBox
     m_checkList1->Check(0);
 
     // Check the first item in wxCheckListBox
     m_checkList1->Check(0);