aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-selection.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-02-08 13:07:42 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-02-08 13:07:42 +0800
commit41d52c7063b47ba2deafa8ca28beae6d0f1cc7f0 (patch)
treeea8225202aefd6ac983ab19d55711bc76d8509f4 /mail/em-folder-selection.c
parentc0c618e5a7aeb6d1130760669ee8936e7f896458 (diff)
downloadgsoc2013-evolution-41d52c7063b47ba2deafa8ca28beae6d0f1cc7f0.tar
gsoc2013-evolution-41d52c7063b47ba2deafa8ca28beae6d0f1cc7f0.tar.gz
gsoc2013-evolution-41d52c7063b47ba2deafa8ca28beae6d0f1cc7f0.tar.bz2
gsoc2013-evolution-41d52c7063b47ba2deafa8ca28beae6d0f1cc7f0.tar.lz
gsoc2013-evolution-41d52c7063b47ba2deafa8ca28beae6d0f1cc7f0.tar.xz
gsoc2013-evolution-41d52c7063b47ba2deafa8ca28beae6d0f1cc7f0.tar.zst
gsoc2013-evolution-41d52c7063b47ba2deafa8ca28beae6d0f1cc7f0.zip
** See bug #72209
2005-02-07 Not Zed <NotZed@Ximian.com> ** 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
Diffstat (limited to 'mail/em-folder-selection.c')
-rw-r--r--mail/em-folder-selection.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mail/em-folder-selection.c b/mail/em-folder-selection.c
index acc6ea3a3f..63deb1430a 100644
--- a/mail/em-folder-selection.c
+++ b/mail/em-folder-selection.c
@@ -55,6 +55,7 @@ emfs_selector_response(EMFolderSelector *emfs, int response, struct _select_fold
void
em_select_folder (GtkWindow *parent_window, const char *title, const char *oklabel, const char *default_uri,
+ EMFTExcludeFunc exclude,
void (*done) (const char *uri, void *user_data), void *user_data)
{
struct _select_folder_data *d;
@@ -64,7 +65,10 @@ em_select_folder (GtkWindow *parent_window, const char *title, const char *oklab
model = mail_component_peek_tree_model (mail_component_peek ());
emft = (EMFolderTree *) em_folder_tree_new_with_model (model);
- em_folder_tree_set_excluded (emft, EMFT_EXCLUDE_NOSELECT|EMFT_EXCLUDE_VIRTUAL|EMFT_EXCLUDE_VTRASH);
+ if (exclude)
+ em_folder_tree_set_excluded_func(emft, exclude, user_data);
+ else
+ em_folder_tree_set_excluded (emft, EMFT_EXCLUDE_NOSELECT|EMFT_EXCLUDE_VIRTUAL|EMFT_EXCLUDE_VTRASH);
dialog = em_folder_selector_new(emft, EM_FOLDER_SELECTOR_CAN_CREATE, title, NULL, oklabel);