diff options
author | Federico Mena Quintero <federico@helixcode.com> | 2001-01-04 00:05:19 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2001-01-04 00:05:19 +0800 |
commit | faae476f9945cb6d9b31ee3f88e12e65b202312a (patch) | |
tree | 4bb5c3800f7de547e9963c850d1111e656c09617 /calendar/gui/calendar-commands.c | |
parent | c37da1342398fdc4836baa89d0506a0950a10bb6 (diff) | |
download | gsoc2013-evolution-faae476f9945cb6d9b31ee3f88e12e65b202312a.tar.gz gsoc2013-evolution-faae476f9945cb6d9b31ee3f88e12e65b202312a.tar.zst gsoc2013-evolution-faae476f9945cb6d9b31ee3f88e12e65b202312a.zip |
Handle the case where the calendar view cannot be created; present a
2001-01-03 Federico Mena Quintero <federico@helixcode.com>
* 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
Diffstat (limited to 'calendar/gui/calendar-commands.c')
-rw-r--r-- | calendar/gui/calendar-commands.c | 6 |
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); } |