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/control-factory.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'calendar/gui/control-factory.c') diff --git a/calendar/gui/control-factory.c b/calendar/gui/control-factory.c index ddec91be71..17e4c9d622 100644 --- a/calendar/gui/control-factory.c +++ b/calendar/gui/control-factory.c @@ -165,6 +165,9 @@ control_factory_new_control (void) GnomeCalendar *gcal; gcal = new_calendar (); + if (!gcal) + return NULL; + gtk_widget_show (GTK_WIDGET (gcal)); control = bonobo_control_new (GTK_WIDGET (gcal)); -- cgit v1.2.3