aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-cal.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2002-08-13 17:45:36 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2002-08-13 17:45:36 +0800
commit91b1dab521698c031db169f2385d37e05a995229 (patch)
tree8b60cf974c1d27c879620539c3296645427eccd6 /calendar/gui/gnome-cal.c
parent67d091d07ef507f2eee7b6a6ac8c81e359cf5a71 (diff)
downloadgsoc2013-evolution-91b1dab521698c031db169f2385d37e05a995229.tar.gz
gsoc2013-evolution-91b1dab521698c031db169f2385d37e05a995229.tar.zst
gsoc2013-evolution-91b1dab521698c031db169f2385d37e05a995229.zip
set status message to NULL if there is an error opening the calendar.
2002-08-13 Rodrigo Moya <rodrigo@ximian.com> * gui/gnome-cal.c (gnome_calendar_open): set status message to NULL if there is an error opening the calendar. (client_cal_opened_cb): set status message to NULL only when we have successfully opened the main CalClient. svn path=/trunk/; revision=17767
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r--calendar/gui/gnome-cal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index ff3f37dbc9..4e62ea8cdd 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -1556,12 +1556,11 @@ client_cal_opened_cb (CalClient *client, CalClientOpenStatus status, gpointer da
gcal = GNOME_CALENDAR (data);
priv = gcal->priv;
- e_week_view_set_status_message (E_WEEK_VIEW (priv->week_view), NULL);
-
switch (status) {
case CAL_CLIENT_OPEN_SUCCESS:
/* If this is the main CalClient, update the Date Navigator. */
if (client == priv->client) {
+ e_week_view_set_status_message (E_WEEK_VIEW (priv->week_view), NULL);
update_query (gcal);
}
@@ -1923,6 +1922,7 @@ gnome_calendar_open (GnomeCalendar *gcal, const char *str_uri)
g_message ("gnome_calendar_open(): Could not issue the request");
g_free (real_uri);
e_uri_free (uri);
+ e_week_view_set_status_message (E_WEEK_VIEW (priv->week_view), NULL);
return FALSE;
}