1 /* GTK - The GIMP Toolkit 2 * gtkfilechooserutils.h: Private utility functions useful for 3 * implementing a GtkFileChooser interface 4 * Copyright (C) 2003, Red Hat, Inc. 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 #ifndef __GTK_FILE_CHOOSER_UTILS_H__ 21 #define __GTK_FILE_CHOOSER_UTILS_H__ 22 23 #include "gtkfilechooserprivate.h" 24 25 G_BEGIN_DECLS 26 27 #define GTK_FILE_CHOOSER_DELEGATE_QUARK (_gtk_file_chooser_delegate_get_quark ()) 28 29 typedef enum { 30 GTK_FILE_CHOOSER_PROP_FIRST = 0x1000, 31 GTK_FILE_CHOOSER_PROP_ACTION = GTK_FILE_CHOOSER_PROP_FIRST, 32 GTK_FILE_CHOOSER_PROP_FILTER, 33 GTK_FILE_CHOOSER_PROP_LOCAL_ONLY, 34 GTK_FILE_CHOOSER_PROP_PREVIEW_WIDGET, 35 GTK_FILE_CHOOSER_PROP_PREVIEW_WIDGET_ACTIVE, 36 GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL, 37 GTK_FILE_CHOOSER_PROP_EXTRA_WIDGET, 38 GTK_FILE_CHOOSER_PROP_SELECT_MULTIPLE, 39 GTK_FILE_CHOOSER_PROP_SHOW_HIDDEN, 40 GTK_FILE_CHOOSER_PROP_DO_OVERWRITE_CONFIRMATION, 41 GTK_FILE_CHOOSER_PROP_CREATE_FOLDERS, 42 GTK_FILE_CHOOSER_PROP_LAST = GTK_FILE_CHOOSER_PROP_CREATE_FOLDERS 43 } GtkFileChooserProp; 44 45 void _gtk_file_chooser_install_properties (GObjectClass *klass); 46 47 void _gtk_file_chooser_delegate_iface_init (GtkFileChooserIface *iface); 48 void _gtk_file_chooser_set_delegate (GtkFileChooser *receiver, 49 GtkFileChooser *delegate); 50 51 GQuark _gtk_file_chooser_delegate_get_quark (void) G_GNUC_CONST; 52 53 GList *_gtk_file_chooser_extract_recent_folders (GList *infos); 54 55 GSettings *_gtk_file_chooser_get_settings_for_widget (GtkWidget *widget); 56 57 gchar * _gtk_file_chooser_label_for_file (GFile *file); 58 59 G_END_DECLS 60 61 #endif /* __GTK_FILE_CHOOSER_UTILS_H__ */ 62