From ced2af332134dcdf783ef6d86d6f6ab8b948589b Mon Sep 17 00:00:00 2001
From: Ettore Perazzoli <ettore@src.gnome.org>
Date: Sun, 22 Jul 2001 03:50:07 +0000
Subject: Add a `user_creatable' property to folder types and make components
 use it, so that e.g. you cannot create a folder of type "mailstorage" or
 "vtrash".

svn path=/trunk/; revision=11298
---
 shell/e-shell-folder-creation-dialog.c | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'shell/e-shell-folder-creation-dialog.c')

diff --git a/shell/e-shell-folder-creation-dialog.c b/shell/e-shell-folder-creation-dialog.c
index 5e6c5e5556..ea81bfdc58 100644
--- a/shell/e-shell-folder-creation-dialog.c
+++ b/shell/e-shell-folder-creation-dialog.c
@@ -361,6 +361,9 @@ add_folder_types (GtkWidget *dialog,
 
 		type_name = (const char *) p->data;
 
+		if (! e_folder_type_registry_type_is_user_creatable (folder_type_registry, type_name))
+			continue;
+
 		menu_item = gtk_menu_item_new_with_label (type_name);
 		gtk_widget_show (menu_item);
 		gtk_menu_append (GTK_MENU (menu), menu_item);
-- 
cgit