summaryrefslogtreecommitdiff
path: root/gtk/gtkfilefilterprivate.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2015-11-03 14:52:42 +0100
committerAlexander Larsson <alexl@redhat.com>2015-11-05 16:52:52 +0100
commit693db082a158952efd5a326a62814490c3c8f6ad (patch)
treebe0ab5812c9f535d1809186ef813f0d8a3aeacaf /gtk/gtkfilefilterprivate.h
parent81cef0091e19874fed5dd4aadb136a7518a6d662 (diff)
downloadgtk+-693db082a158952efd5a326a62814490c3c8f6ad.tar.gz
GtkFileFilter: Add private function to represent filter as pattern
This will be needed for the win32 native file chooser which does not support mimetype sniffing.
Diffstat (limited to 'gtk/gtkfilefilterprivate.h')
-rw-r--r--gtk/gtkfilefilterprivate.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/gtk/gtkfilefilterprivate.h b/gtk/gtkfilefilterprivate.h
new file mode 100644
index 0000000000..0a3d4a452e
--- /dev/null
+++ b/gtk/gtkfilefilterprivate.h
@@ -0,0 +1,30 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* GTK - The GIMP Toolkit
+ * Copyright (C) 2015 Red Hat, Inc
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __GTK_FILE_FILTER_PRIVATE_H__
+#define __GTK_FILE_FILTER_PRIVATE_H__
+
+#include <gtk/gtkfilefilter.h>
+
+G_BEGIN_DECLS
+
+char ** _gtk_file_filter_get_as_patterns (GtkFileFilter *filter);
+
+G_END_DECLS
+
+#endif /* __GTK_FILE_FILTER_PRIVATE_H__ */