From 92ef36c14423a66b3b3d4d0525c82642d59d6eaa Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Wed, 15 Nov 2006 08:07:15 +0000 Subject: Display a warning message when calendar fails to load. svn path=/trunk/; revision=32984 --- calendar/gui/gnome-cal.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'calendar/gui') diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index b58a75bc08..5b80084fc2 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -2587,6 +2587,8 @@ client_cal_opened_cb (ECal *ecal, ECalendarStatus status, GnomeCalendar *gcal) gtk_signal_emit (GTK_OBJECT (gcal), gnome_calendar_signals[SOURCE_REMOVED], source_type, source); g_object_unref (source); + g_warning ("Unable to load the calendar %s \n", e_cal_get_error_message (status)); + return; } @@ -2689,6 +2691,8 @@ default_client_cal_opened_cb (ECal *ecal, ECalendarStatus status, GnomeCalendar gtk_signal_emit (GTK_OBJECT (gcal), gnome_calendar_signals[SOURCE_REMOVED], source_type, source); g_object_unref (source); + g_warning ("Unable to load the calendar %s \n", e_cal_get_error_message (status)); + return; } -- cgit v1.2.3