GTK: rename fileChooserDialog and add title parameter

This commit is contained in:
2015-12-25 23:17:22 +01:00
parent 71a2cb90be
commit 3edd3c8a19
2 changed files with 6 additions and 6 deletions

View File

@@ -267,8 +267,8 @@ upDir mygui myview = withErrorDialog $ do
-- |Go up one directory and visualize it in the treeView.
newFile :: MyGUI -> MyView -> IO ()
newFile mygui myview = withErrorDialog $ do
cdir <- getCurrentDir myview
mfn <- fileChooserDialog
cdir <- getCurrentDir myview
mfn <- textInputDialog "Enter file name"
maybe (return ()) (\fn -> do
createFile cdir fn
refreshTreeView' mygui myview cdir