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
This commit is contained in:
@ -156,8 +156,9 @@ impl_ShellComponent__get_supported_types (PortableServer_Servant servant,
|
||||
folder_type = (EvolutionShellComponentFolderType *) p->data;
|
||||
|
||||
corba_folder_type = folder_type_list->_buffer + i;
|
||||
corba_folder_type->name = CORBA_string_dup (folder_type->name);
|
||||
corba_folder_type->icon_name = CORBA_string_dup (folder_type->icon_name);
|
||||
corba_folder_type->name = CORBA_string_dup (folder_type->name);
|
||||
corba_folder_type->icon_name = CORBA_string_dup (folder_type->icon_name);
|
||||
corba_folder_type->user_creatable = folder_type->user_creatable;
|
||||
|
||||
fill_corba_sequence_from_null_terminated_string_array (& corba_folder_type->accepted_dnd_types,
|
||||
folder_type->accepted_dnd_types);
|
||||
@ -617,6 +618,7 @@ evolution_shell_component_construct (EvolutionShellComponent *shell_component,
|
||||
new = g_new (EvolutionShellComponentFolderType, 1);
|
||||
new->name = g_strdup (folder_types[i].name);
|
||||
new->icon_name = g_strdup (folder_types[i].icon_name);
|
||||
new->user_creatable = folder_types[i].user_creatable;
|
||||
new->accepted_dnd_types = duplicate_null_terminated_string_array (folder_types[i].accepted_dnd_types);
|
||||
new->exported_dnd_types = duplicate_null_terminated_string_array (folder_types[i].exported_dnd_types);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user