From 41d52c7063b47ba2deafa8ca28beae6d0f1cc7f0 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 8 Feb 2005 05:07:42 +0000 Subject: ** See bug #72209 2005-02-07 Not Zed ** See bug #72209 * em-folder-tree.c (emft_popup_copy_folder_exclude): implement one for copying/moving folders. * em-folder-selection.c (em_select_folder): add an excluded func argument, fix callers. * em-folder-tree.c (em_folder_tree_set_exclude_func): allow custom callback for exclusion. (emft_select_func): handle the custom excluded callback. svn path=/trunk/; revision=28745 --- mail/em-folder-tree.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mail/em-folder-tree.h') diff --git a/mail/em-folder-tree.h b/mail/em-folder-tree.h index 8ce1ad5873..e7c465998b 100644 --- a/mail/em-folder-tree.h +++ b/mail/em-folder-tree.h @@ -51,6 +51,8 @@ typedef struct _EMFolderTreeClass EMFolderTreeClass; #define EMFT_EXCLUDE_SYSTEM CAMEL_FOLDER_SYSTEM #define EMFT_EXCLUDE_VTRASH CAMEL_FOLDER_VTRASH +typedef gboolean (*EMFTExcludeFunc)(EMFolderTree *emft, GtkTreeModel *model, GtkTreeIter *iter, void *data); + struct _EMFolderTree { GtkVBox parent_object; @@ -74,6 +76,7 @@ void em_folder_tree_enable_drag_and_drop (EMFolderTree *emft); void em_folder_tree_set_multiselect (EMFolderTree *emft, gboolean mode); void em_folder_tree_set_excluded(EMFolderTree *emft, guint32 flags); +void em_folder_tree_set_excluded_func(EMFolderTree *emft, EMFTExcludeFunc exclude, void *data); void em_folder_tree_set_selected_list (EMFolderTree *emft, GList *list); GList *em_folder_tree_get_selected_uris (EMFolderTree *emft); -- cgit v1.2.3