1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3  *  Copyright © 2003, 2004 Christian Persch
4  *  Copyright © 2017 Igalia S.L.
5  *
6  *  This file is part of Epiphany.
7  *
8  *  Epiphany is free software: you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation, either version 3 of the License, or
11  *  (at your option) any later version.
12  *
13  *  Epiphany is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with Epiphany.  If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 #pragma once
23 
24 #include <glib-object.h>
25 
26 #include <gtk/gtk.h>
27 
28 G_BEGIN_DECLS
29 
30 typedef enum
31 {
32         EPHY_FILE_FILTER_ALL_SUPPORTED,
33         EPHY_FILE_FILTER_WEBPAGES,
34         EPHY_FILE_FILTER_IMAGES,
35         EPHY_FILE_FILTER_ALL,
36         EPHY_FILE_FILTER_NONE,
37         EPHY_FILE_FILTER_LAST = EPHY_FILE_FILTER_NONE
38 } EphyFileFilterDefault;
39 
40 GtkFileChooser *ephy_create_file_chooser (const char *title,
41                                           GtkWidget *parent,
42                                           GtkFileChooserAction action,
43                                           EphyFileFilterDefault default_filter);
44 
45 G_END_DECLS
46