diff options
author | Owen Taylor <otaylor@redhat.com> | 2003-07-23 15:31:10 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2003-07-23 15:31:10 +0000 |
commit | 733f4489ade5b79227af871e1cbe694806ec367e (patch) | |
tree | cb11e44251dfd274d38a2ef88d2cd7f3bb8619f1 /gtk/gtkfilesystemmodel.h | |
parent | 96ba7bb65e02858e08f78922f4d837ac7d1a65a0 (diff) | |
download | gtk+-733f4489ade5b79227af871e1cbe694806ec367e.tar.gz |
File filter objects.
Wed Jul 23 11:23:43 2003 Owen Taylor <otaylor@redhat.com>
* gtkfilefilter.[ch]: File filter objects.
* gtkfilechooser.[ch] gtkfilechooserutils.[ch]: Add
file filtering to API.
* gtkfilechooserimpldefault.c: Implement file filters.
* testfilechooser.c: Try out the filter functionality.
* gtkfilesystemmodel.c: Add
_gtk_file_system_model_set_filter() to set a callback
function for filtering.
* gtkfilechooserutils.c: Propagate property notification
to the receiver.
* fnmatch.c: Copy this from GTK+ temporarily to get
UTF-8 pattern matching functionality.
Diffstat (limited to 'gtk/gtkfilesystemmodel.h')
-rw-r--r-- | gtk/gtkfilesystemmodel.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtkfilesystemmodel.h b/gtk/gtkfilesystemmodel.h index e84d004def..759c1ab3c1 100644 --- a/gtk/gtkfilesystemmodel.h +++ b/gtk/gtkfilesystemmodel.h @@ -56,6 +56,14 @@ void _gtk_file_system_model_set_show_folders (GtkFileSystemModel void _gtk_file_system_model_set_show_files (GtkFileSystemModel *model, gboolean show_files); +typedef gboolean (*GtkFileSystemModelFilter) (GtkFileSystemModel *model, + GtkFilePath *path, + const GtkFileInfo *info, + gpointer user_data); + +void _gtk_file_system_model_set_filter (GtkFileSystemModel *model, + GtkFileSystemModelFilter filter, + gpointer user_data); typedef void (*GtkFileSystemModelPathFunc) (GtkFileSystemModel *model, GtkTreePath *path, |