]> git.street.me.uk Git - andy/viking.git/blobdiff - src/vikfileentry.h
SF Bugs#132: Fix to correctly open GPX files in Windows via double click.
[andy/viking.git] / src / vikfileentry.h
index d5585f2edfeca85b2d4caba74ac1f7e6a6dd6eac..34db287df10095b45f02b23f171cc2fc3a6a9482 100644 (file)
@@ -46,12 +46,16 @@ GType vik_file_entry_get_type ();
 
 typedef enum {
   VF_FILTER_NONE = 0,
 
 typedef enum {
   VF_FILTER_NONE = 0,
-  VF_FILTER_IMAGE,   // JPG+PNG
+  VF_FILTER_IMAGE,   // JPG+PNG+TIFF
   VF_FILTER_MBTILES,
   VF_FILTER_MBTILES,
+  VF_FILTER_XML,
+  VF_FILTER_CARTO,   // MML + MSS
   VF_FILTER_LAST
 } vf_filter_type;
 
   VF_FILTER_LAST
 } vf_filter_type;
 
-GtkWidget *vik_file_entry_new (GtkFileChooserAction action, vf_filter_type filter_type);
+typedef void (*VikFileEntryFunc) (VikFileEntry *, gpointer);
+
+GtkWidget *vik_file_entry_new (GtkFileChooserAction action, vf_filter_type filter_type, VikFileEntryFunc cb, gpointer user_data);
 const gchar *vik_file_entry_get_filename ( VikFileEntry *vfe );
 void vik_file_entry_set_filename ( VikFileEntry *vfe, const gchar *filename );
 
 const gchar *vik_file_entry_get_filename ( VikFileEntry *vfe );
 void vik_file_entry_set_filename ( VikFileEntry *vfe, const gchar *filename );