/usr/include/xfce4/libxfcegui4/xfce-filechooser.h is in libxfcegui4-dev 4.8.1-5ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | /*
* xfce-file-chooser - a wrapper around GtkFileChooser(Dialog) (gtk 2.4+)
* and/or GtkFileChooser (gtk 2.0, 2.2)
*
* Copyright (c) 2004 Brian Tarricone <bjt23@cornell.edu>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library 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
* Library 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, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _XFCE_FILE_CHOOSER_H_
#define _XFCE_FILE_CHOOSER_H_
#if defined(LIBXFCEGUI4_COMPILATION) || !defined(XFCE_DISABLE_DEPRECATED)
#include <gtk/gtkdialog.h>
G_BEGIN_DECLS
#define XFCE_TYPE_FILE_CHOOSER (xfce_file_chooser_get_type())
#define XFCE_FILE_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), XFCE_TYPE_FILE_CHOOSER, XfceFileChooser))
#define XFCE_FILE_CHOOSER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), XFCE_TYPE_FILE_CHOOSER, XfceFileChooserClass))
#define XFCE_IS_FILE_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), XFCE_TYPE_FILE_CHOOSER))
#define XFCE_IS_FILE_CHOOSER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), XFCE_TYPE_FILE_CHOOSER))
#define XFCE_FILE_CHOOSER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), XFCE_TYPE_FILE_CHOOSER, XfceFileChooserClass))
typedef enum { /*< prefix=XFCE_FILE_CHOOSER_ACTION_ >*/
XFCE_FILE_CHOOSER_ACTION_OPEN,
XFCE_FILE_CHOOSER_ACTION_SAVE,
XFCE_FILE_CHOOSER_ACTION_SELECT_FOLDER,
XFCE_FILE_CHOOSER_ACTION_CREATE_FOLDER
}
XfceFileChooserAction;
typedef GtkDialog XfceFileChooser;
typedef GtkDialogClass XfceFileChooserClass;
typedef GtkObject XfceFileFilter;
typedef void (*PreviewUpdateFunc)(XfceFileChooser *chooser, gpointer user_data);
#define xfce_file_chooser_get_type() gtk_dialog_get_type()
GtkWidget *xfce_file_chooser_new (const gchar *title,
GtkWindow *parent,
XfceFileChooserAction action,
const gchar *first_button_text,
...);
void xfce_file_chooser_set_select_multiple (XfceFileChooser *chooser,
gboolean select_multiple);
gboolean xfce_file_chooser_get_select_multiple (XfceFileChooser *chooser);
void xfce_file_chooser_set_current_name (XfceFileChooser *chooser,
const gchar *name);
gchar *xfce_file_chooser_get_filename (XfceFileChooser *chooser);
gboolean xfce_file_chooser_set_filename (XfceFileChooser *chooser,
const gchar *filename);
GSList *xfce_file_chooser_get_filenames (XfceFileChooser *chooser);
gboolean xfce_file_chooser_set_current_folder (XfceFileChooser *chooser,
const gchar *filename);
gchar *xfce_file_chooser_get_current_folder (XfceFileChooser *chooser);
void xfce_file_chooser_set_preview_widget (XfceFileChooser *chooser,
GtkWidget *preview_widget);
GtkWidget *xfce_file_chooser_get_preview_widget (XfceFileChooser *chooser);
void xfce_file_chooser_set_preview_callback (XfceFileChooser *chooser,
PreviewUpdateFunc func,
gpointer user_data);
void xfce_file_chooser_set_preview_widget_active (XfceFileChooser *chooser,
gboolean active);
gboolean xfce_file_chooser_get_preview_widget_active(XfceFileChooser *chooser);
void xfce_file_chooser_set_use_preview_label (XfceFileChooser *chooser,
gboolean use_label);
void xfce_file_chooser_set_extra_widget (XfceFileChooser *chooser,
GtkWidget *extra_widget);
GtkWidget *xfce_file_chooser_get_extra_widget (XfceFileChooser *chooser);
/* noops for gtk 2.[02] */
void xfce_file_chooser_add_filter (XfceFileChooser *chooser,
XfceFileFilter *filter);
void xfce_file_chooser_remove_filter (XfceFileChooser *chooser,
XfceFileFilter *filter);
void xfce_file_chooser_set_filter (XfceFileChooser *chooser,
XfceFileFilter *filter);
gboolean xfce_file_chooser_add_shortcut_folder (XfceFileChooser *chooser,
const gchar *folder,
GError **error);
gboolean xfce_file_chooser_remove_shortcut_folder (XfceFileChooser *chooser,
const gchar *folder,
GError **error);
/* file filter routines */
XfceFileFilter *xfce_file_filter_new (void);
void xfce_file_filter_set_name (XfceFileFilter *filter,
const gchar *name);
void xfce_file_filter_add_mime_type (XfceFileFilter *filter,
const gchar *mime_type);
void xfce_file_filter_add_pattern (XfceFileFilter *filter,
const gchar *pattern);
GtkWidget *xfce_file_chooser_dialog_new (const gchar *title,
GtkWindow *parent,
XfceFileChooserAction action,
const gchar *first_button_text,
...);
void xfce_file_chooser_set_local_only (XfceFileChooser *chooser,
gboolean local_only);
gboolean xfce_file_chooser_get_local_only (XfceFileChooser *chooser);
G_END_DECLS
#endif /* ifndef XFCE_DISABLE_DEPRECATED */
#endif /* ifndef _XFCE_FILE_CHOOSER_H_ */
|