From faae476f9945cb6d9b31ee3f88e12e65b202312a Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Wed, 3 Jan 2001 16:05:19 +0000 Subject: Handle the case where the calendar view cannot be created; present a 2001-01-03 Federico Mena Quintero * gui/calendar-commands.c (new_calendar): Handle the case where the calendar view cannot be created; present a warning dialog box. (new_calendar): Do not show the widget here, since we already show it in control-factory.c. * gui/control-factory.c (control_factory_new_control): Handle the case where the calendar view cannot be created. * gui/component-factory.c (create_view): Ditto. * gui/calendar-summary.h: Added prototype for calendar_summary_factory_init(). svn path=/trunk/; revision=7233 --- calendar/gui/component-factory.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'calendar/gui/component-factory.c') diff --git a/calendar/gui/component-factory.c b/calendar/gui/component-factory.c index dd1b6edb3a..700631b78d 100644 --- a/calendar/gui/component-factory.c +++ b/calendar/gui/component-factory.c @@ -58,6 +58,9 @@ create_view (EvolutionShellComponent *shell_component, return EVOLUTION_SHELL_COMPONENT_UNSUPPORTEDTYPE; control = control_factory_new_control (); + if (!control) + return EVOLUTION_SHELL_COMPONENT_CORBAERROR; + bonobo_control_set_property (control, "folder_uri", physical_uri, NULL); *control_return = control; @@ -97,7 +100,8 @@ factory_fn (BonoboGenericFactory *factory, { EvolutionShellComponent *shell_component; - shell_component = evolution_shell_component_new (folder_types, create_view, NULL, NULL, NULL, NULL); + shell_component = evolution_shell_component_new (folder_types, + create_view, NULL, NULL, NULL, NULL); gtk_signal_connect (GTK_OBJECT (shell_component), "owner_set", GTK_SIGNAL_FUNC (owner_set_cb), NULL); @@ -108,6 +112,7 @@ factory_fn (BonoboGenericFactory *factory, } + void component_factory_init (void) { -- cgit v1.2.3