diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-07-22 11:50:07 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-07-22 11:50:07 +0800 |
commit | ced2af332134dcdf783ef6d86d6f6ab8b948589b (patch) | |
tree | dfdd86946d12ac9d791cac635ff57faa6d7106ce /shell/e-shell-folder-creation-dialog.c | |
parent | 01101330717eca3f06233281fa40eefa5293f378 (diff) | |
download | gsoc2013-evolution-ced2af332134dcdf783ef6d86d6f6ab8b948589b.tar gsoc2013-evolution-ced2af332134dcdf783ef6d86d6f6ab8b948589b.tar.gz gsoc2013-evolution-ced2af332134dcdf783ef6d86d6f6ab8b948589b.tar.bz2 gsoc2013-evolution-ced2af332134dcdf783ef6d86d6f6ab8b948589b.tar.lz gsoc2013-evolution-ced2af332134dcdf783ef6d86d6f6ab8b948589b.tar.xz gsoc2013-evolution-ced2af332134dcdf783ef6d86d6f6ab8b948589b.tar.zst gsoc2013-evolution-ced2af332134dcdf783ef6d86d6f6ab8b948589b.zip |
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
Diffstat (limited to 'shell/e-shell-folder-creation-dialog.c')
-rw-r--r-- | shell/e-shell-folder-creation-dialog.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |