Fix bug #2481237: Maps directory file chooser should look for directory
commit6a926846ee986463c699789752589d744207c848
authorJocelyn Jaubert <jocelyn.jaubert@gmail.com>
Sun, 15 Mar 2009 12:38:02 +0000 (15 13:38 +0100)
committerJocelyn Jaubert <jocelyn.jaubert@gmail.com>
Sun, 15 Mar 2009 12:43:12 +0000 (15 13:43 +0100)
tree82c03c276147879bb783032b87b5bb827ad744dc
parent0dff0fd32cdbde6c5e59ee934fe00e99238f7486
Fix bug #2481237: Maps directory file chooser should look for directory

This adds a parameter to vik_file_entry_new() to specify if we are looking for
a file or a directory. There is also a new parameter for widget type:
VIK_LAYER_WIDGET_FOLDERENTRY in addition to VIK_LAYER_WIDGET_FILEENTRY. Now, we
can correctly select a directory when looking at the maps directory property of
maps layers.

Thanks Andrew Lunn to have reported the bug.
src/dialog.c
src/uibuilder.c
src/uibuilder.h
src/vikfileentry.c
src/vikfileentry.h
src/vikgeoreflayer.c
src/vikmapslayer.c