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/evolution-shell-component.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/evolution-shell-component.c')
-rw-r--r-- | shell/evolution-shell-component.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/shell/evolution-shell-component.c b/shell/evolution-shell-component.c index 0c2c72b004..eedbb98695 100644 --- a/shell/evolution-shell-component.c +++ b/shell/evolution-shell-component.c @@ -32,6 +32,7 @@ #include <glib.h> #include <gtk/gtksignal.h> #include <bonobo/bonobo-object.h> +#include <libgnome/gnome-i18n.h> #include <gal/util/e-util.h> @@ -197,6 +198,8 @@ impl__get_supported_types (PortableServer_Servant servant, 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->display_name = CORBA_string_dup (folder_type->display_name); + corba_folder_type->description = CORBA_string_dup (folder_type->description); corba_folder_type->user_creatable = folder_type->user_creatable; fill_corba_sequence_from_null_terminated_string_array (& corba_folder_type->exported_dnd_types, @@ -733,6 +736,11 @@ 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); + + /* Notice that these get translated here. */ + new->display_name = g_strdup (_(folder_types[i].display_name)); + new->description = g_strdup (_(folder_types[i].description)); + 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); |