aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/calendar-commands.c')
-rw-r--r--calendar/gui/calendar-commands.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c
index f56d941d2c..7519e0458e 100644
--- a/calendar/gui/calendar-commands.c
+++ b/calendar/gui/calendar-commands.c
@@ -428,10 +428,14 @@ new_calendar (void)
GtkWidget *gcal;
gcal = gnome_calendar_new ();
+ if (!gcal) {
+ gnome_warning_dialog (_("Could not create the calendar view. Please check your "
+ "ORBit and OAF setup."));
+ return NULL;
+ }
all_calendars = g_list_prepend (all_calendars, gcal);
- gtk_widget_show (gcal);
return GNOME_CALENDAR (gcal);
}