aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-file-chooser.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ephy-file-chooser.h')
-rw-r--r--lib/ephy-file-chooser.h26
1 files changed, 24 insertions, 2 deletions
diff --git a/lib/ephy-file-chooser.h b/lib/ephy-file-chooser.h
index d3d729ca6..5b576728a 100644
--- a/lib/ephy-file-chooser.h
+++ b/lib/ephy-file-chooser.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003 Christian Persch
+ * Copyright (C) 2003, 2004 Christian Persch
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -24,6 +24,7 @@
#include <glib-object.h>
#include <gtk/gtkwidget.h>
+#include <gtk/gtkfilefilter.h>
#include <gtk/gtkfilechooserdialog.h>
G_BEGIN_DECLS
@@ -37,6 +38,16 @@ G_BEGIN_DECLS
typedef struct EphyFileChooserPrivate EphyFileChooserPrivate;
+typedef enum
+{
+ EPHY_FILE_FILTER_ALL_SUPPORTED,
+ EPHY_FILE_FILTER_WEBPAGES,
+ EPHY_FILE_FILTER_IMAGES,
+ EPHY_FILE_FILTER_ALL,
+ EPHY_FILE_FILTER_NONE,
+ EPHY_FILE_FILTER_LAST = EPHY_FILE_FILTER_NONE
+} EphyFileFilterDefault;
+
typedef struct
{
GtkFileChooserDialog parent;
@@ -55,13 +66,24 @@ GType ephy_file_chooser_get_type (void);
EphyFileChooser *ephy_file_chooser_new (const char *title,
GtkWidget *parent,
GtkFileChooserAction action,
- const char *persist_key);
+ const char *persist_key,
+ EphyFileFilterDefault default_filter);
void ephy_file_chooser_set_persist_key (EphyFileChooser *dialog,
const char *key);
const char *ephy_file_chooser_get_persist_key (EphyFileChooser *dialog);
+GtkFileFilter *ephy_file_chooser_add_pattern_filter (EphyFileChooser *dialog,
+ const char *title,
+ const char *first_pattern,
+ ...);
+
+GtkFileFilter *ephy_file_chooser_add_mime_filter (EphyFileChooser *dialog,
+ const char *title,
+ const char *first_mimetype,
+ ...);
+
G_END_DECLS
#endif