diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-08-20 12:42:04 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-08-20 12:42:04 +0800 |
commit | d9ed7a6a6366e5b47341c31409f4ac0f12aca690 (patch) | |
tree | 49f414492082b291156a8de6558b25f4dc3794f5 /shell/e-component-registry.c | |
parent | 5ab5cd2560b80b34432173508bed44d8fbc03b5f (diff) | |
download | gsoc2013-evolution-d9ed7a6a6366e5b47341c31409f4ac0f12aca690.tar.gz gsoc2013-evolution-d9ed7a6a6366e5b47341c31409f4ac0f12aca690.tar.zst gsoc2013-evolution-d9ed7a6a6366e5b47341c31409f4ac0f12aca690.zip |
Added display_name and description to the type.
* evolution-test-component.c: Added display_name and description
to the type.
* evolution-shell-component.c (impl__get_supported_types): Pass
`display_name' and `description' here.
(evolution_shell_component_construct): Likewise.
* evolution-shell-component.h: New members `display_name',
`description' in `EvolutionShellComponentFolderType'.
* e-component-registry.c (register_type): New args @description
and @display_name. Pass to
`e_folder_type_registry_register_type()'.
(register_component): Pass the values returned in the sequence
from __get_supported_types.
* e-folder-type-registry.c: New members `display_name' and
`description' in `struct _FolderType'.
(folder_type_new): New args @description and @display_name.
Initialize the respective fields in the `FolderType' accordingly.
(folder_type_free): Free `display_name' and `description'.
(register_folder_type): New args @display_name, @description.
(e_folder_type_registry_register_type): New args @display_name,
@description.
(e_folder_type_registry_get_description_for_type): New.
(e_folder_type_registry_get_display_name_for_type): New.
* Evolution-ShellComponent.idl: Added `display_name' and
`description' fields to the `FolderType' struct.
svn path=/trunk/; revision=12245
Diffstat (limited to 'shell/e-component-registry.c')
-rw-r--r-- | shell/e-component-registry.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/shell/e-component-registry.c b/shell/e-component-registry.c index e37fa5fe43..acbed694f5 100644 --- a/shell/e-component-registry.c +++ b/shell/e-component-registry.c @@ -105,6 +105,8 @@ static gboolean register_type (EComponentRegistry *component_registry, const char *name, const char *icon_name, + const char *display_name, + const char *description, gboolean user_creatable, int num_exported_dnd_types, const char **exported_dnd_types, @@ -121,7 +123,9 @@ register_type (EComponentRegistry *component_registry, g_assert (folder_type_registry != NULL); if (! e_folder_type_registry_register_type (folder_type_registry, - name, icon_name, user_creatable, + name, icon_name, + display_name, description, + user_creatable, num_exported_dnd_types, exported_dnd_types, num_accepted_dnd_types, @@ -189,7 +193,9 @@ register_component (EComponentRegistry *component_registry, type = supported_types->_buffer + i; if (! register_type (component_registry, - type->name, type->icon_name, type->user_creatable, + type->name, type->icon_name, + type->display_name, type->description, + type->user_creatable, type->exported_dnd_types._length, (const char **) type->exported_dnd_types._buffer, type->accepted_dnd_types._length, |