aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-day-view.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-02-23 22:11:43 +0800
committerMilan Crha <mcrha@redhat.com>2011-02-23 22:11:43 +0800
commit56fa4795bbb46d17c90ca9f02ca8b4d64a8289f1 (patch)
tree5c5f0a8305c9ce05770b16808ca9d11f654c867f /calendar/gui/e-day-view.c
parentc8a46943439f1544cb32650078e8598a308c34db (diff)
downloadgsoc2013-evolution-56fa4795bbb46d17c90ca9f02ca8b4d64a8289f1.tar.gz
gsoc2013-evolution-56fa4795bbb46d17c90ca9f02ca8b4d64a8289f1.tar.zst
gsoc2013-evolution-56fa4795bbb46d17c90ca9f02ca8b4d64a8289f1.zip
Bug #550867 - Showing location in meetings
Diffstat (limited to 'calendar/gui/e-day-view.c')
-rw-r--r--calendar/gui/e-day-view.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index 3c792e6330..b0a2683ce2 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -2122,7 +2122,13 @@ e_day_view_update_event_label (EDayView *day_view,
if (!editing_event) {
if (!short_event) {
- text = g_strdup_printf (" \n%s", text);
+ const gchar *location = icalcomponent_get_location (event->comp_data->icalcomp);
+
+ if (location && *location)
+ text = g_strdup_printf (" \n%s%c(%s)", text, day_view->days_shown == 1 ? ' ' : '\n', location);
+ else
+ text = g_strdup_printf (" \n%s", text);
+
free_text = TRUE;
}
}