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 /mail | |
parent | 01101330717eca3f06233281fa40eefa5293f378 (diff) | |
download | gsoc2013-evolution-ced2af332134dcdf783ef6d86d6f6ab8b948589b.tar.gz 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 'mail')
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/component-factory.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 97472250c2..d784aa1f79 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2001-07-21 Ettore Perazzoli <ettore@ximian.com> + + * component-factory.c: Make types "mailstorage" and "vtrash" + non-user-creatable. + 2001-07-20 Jason Leach <jleach@ximian.com> * mail-summary.c (generate_html_summary): Change this back to the diff --git a/mail/component-factory.c b/mail/component-factory.c index 272f5d571a..c0d257399d 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -90,9 +90,9 @@ static char *exported_dnd_types[] = { }; static const EvolutionShellComponentFolderType folder_types[] = { - { "mail", "evolution-inbox.png", accepted_dnd_types, exported_dnd_types }, - { "mailstorage", "evolution-inbox.png", NULL, NULL }, - { "vtrash", "evolution-trash.png", accepted_dnd_types, exported_dnd_types }, + { "mail", "evolution-inbox.png", TRUE, accepted_dnd_types, exported_dnd_types }, + { "mailstorage", "evolution-inbox.png", FALSE, NULL, NULL }, + { "vtrash", "evolution-trash.png", FALSE, accepted_dnd_types, exported_dnd_types }, { NULL, NULL, NULL, NULL } }; |