diff options
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 12 | ||||
-rw-r--r-- | addressbook/gui/component/addressbook-component.c | 13 |
2 files changed, 22 insertions, 3 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index aa797e91bf..6e7786d6fc 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,15 @@ +2000-06-09 Ettore Perazzoli <ettore@helixcode.com> + + * gui/component/addressbook-component.c (factory_fn): Pass NULL + for the new args @create_folder_fn and @remove_folder_fn. + +2000-06-08 Ettore Perazzoli <ettore@helixcode.com> + + * gui/component/addressbook-component.c (create_view): Updated for + the new `EvolutionShellComponentCreateViewFn'. Return + `EVOLUTION_SHELL_COMPONENT_UNSUPPORTEDTYPE' if @type is not + "contacts". + 2000-06-08 Christopher James Lahey <clahey@helixcode.com> * contact-editor/e-contact-editor.c: Bind Save As to save the diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c index c3c7a14d60..793e168c18 100644 --- a/addressbook/gui/component/addressbook-component.c +++ b/addressbook/gui/component/addressbook-component.c @@ -50,17 +50,24 @@ static const EvolutionShellComponentFolderType folder_types[] = { /* EvolutionShellComponent methods and signals. */ -static BonoboControl * +static EvolutionShellComponentResult create_view (EvolutionShellComponent *shell_component, const char *physical_uri, + const char *type, + BonoboControl **control_return, void *closure) { BonoboControl *control; + if (g_strcasecmp (type, "contacts") != 0) + return EVOLUTION_SHELL_COMPONENT_UNSUPPORTEDTYPE; + control = addressbook_factory_new_control (); bonobo_control_set_property (control, "folder_uri", physical_uri, NULL); - return control; + *control_return = control; + + return EVOLUTION_SHELL_COMPONENT_OK; } static int owner_count = 0; @@ -92,7 +99,7 @@ factory_fn (BonoboGenericFactory *factory, { EvolutionShellComponent *shell_component; - shell_component = evolution_shell_component_new (folder_types, create_view, NULL); + shell_component = evolution_shell_component_new (folder_types, create_view, NULL, NULL, NULL); gtk_signal_connect (GTK_OBJECT (shell_component), "owner_set", GTK_SIGNAL_FUNC (owner_set_cb), NULL); |