diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2001-10-20 01:43:31 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2001-10-20 01:43:31 +0800 |
commit | 3e517a00308004b021cb5a02fa8ae17dfc30040f (patch) | |
tree | d98e620bd7c9e9e8131f07fc1cd09bfafc0c3c7a /calendar/gui/gnome-cal.c | |
parent | cc15e1dca6d00f6ec693c70117ed3bd48ec68291 (diff) | |
download | gsoc2013-evolution-3e517a00308004b021cb5a02fa8ae17dfc30040f.tar.gz gsoc2013-evolution-3e517a00308004b021cb5a02fa8ae17dfc30040f.tar.zst gsoc2013-evolution-3e517a00308004b021cb5a02fa8ae17dfc30040f.zip |
make it a public function
2001-10-19 Rodrigo Moya <rodrigo@ximian.com>
* gui/calendar-model.c (calendar_model_set_status_message): make
it a public function
* gui/e-tasks.c (e_tasks_open): display progress messages
(cal_opened_cb): clean up status bar messages
* gui/gnome-cal.c (gnome_calendar_open): display progress messages
(client_cal_opened_cb): clean up status bar messages
svn path=/trunk/; revision=13796
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r-- | calendar/gui/gnome-cal.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index d220db17dd..b1f7c9470c 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -1341,6 +1341,8 @@ client_cal_opened_cb (CalClient *client, CalClientOpenStatus status, gpointer da gcal = GNOME_CALENDAR (data); priv = gcal->priv; + e_week_view_set_status_message (priv->week_view, NULL); + switch (status) { case CAL_CLIENT_OPEN_SUCCESS: if (client == priv->client) @@ -1657,6 +1659,7 @@ gnome_calendar_open (GnomeCalendar *gcal, const char *str_uri) char *tasks_uri; gboolean success; EUri *uri; + char *message; g_return_val_if_fail (gcal != NULL, FALSE); g_return_val_if_fail (GNOME_IS_CALENDAR (gcal), FALSE); @@ -1672,6 +1675,10 @@ gnome_calendar_open (GnomeCalendar *gcal, const char *str_uri) cal_client_get_load_state (priv->task_pad_client) == CAL_CLIENT_LOAD_NOT_LOADED, FALSE); + message = g_strdup_printf (_("Opening calendar at %s"), str_uri); + e_week_view_set_status_message (priv->week_view, message); + g_free (message); + if (!cal_client_open_calendar (priv->client, str_uri, FALSE)) { g_message ("gnome_calendar_open(): Could not issue the request"); return FALSE; |