Fix bug #2481237: Maps directory file chooser should look for directory
commit79672b858b676683a52cc5d70b4f8200ac6ef28f
authorJocelyn Jaubert <jocelyn.jaubert@gmail.com>
Sun, 15 Mar 2009 12:38:02 +0000 (15 13:38 +0100)
committerGuilhem Bonnefille <guilhem.bonnefille@gmail.com>
Sat, 4 Apr 2009 20:47:20 +0000 (4 22:47 +0200)
tree23cf6b52fad2f2929796f75656d0003f68c1142e
parent86e0bd77cd40bdaac645c9ebfe821b004f32f6d8
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