]> git.street.me.uk Git - andy/viking.git/blobdiff - src/vikfileentry.h
[QA] Rename and correct some map cache variables usage for better understanding.
[andy/viking.git] / src / vikfileentry.h
index b83af5806477b98c27b78f2124b40e18af1f6d24..d5585f2edfeca85b2d4caba74ac1f7e6a6dd6eac 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <glib.h>
 #include <glib-object.h>
-#include <gtk/gtkhbox.h>
+#include <gtk/gtk.h>
 
 G_BEGIN_DECLS
 
@@ -44,8 +44,17 @@ struct _VikFileEntryClass
 
 GType vik_file_entry_get_type ();
 
-GtkWidget *vik_file_entry_new (GtkFileChooserAction action);
-G_CONST_RETURN gchar *vik_file_entry_get_filename ( VikFileEntry *vfe );
+typedef enum {
+  VF_FILTER_NONE = 0,
+  VF_FILTER_IMAGE,   // JPG+PNG
+  VF_FILTER_MBTILES,
+  VF_FILTER_LAST
+} vf_filter_type;
+
+GtkWidget *vik_file_entry_new (GtkFileChooserAction action, vf_filter_type filter_type);
+const gchar *vik_file_entry_get_filename ( VikFileEntry *vfe );
 void vik_file_entry_set_filename ( VikFileEntry *vfe, const gchar *filename );
 
+G_END_DECLS
+
 #endif