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
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:37 +0800
commitd6c9ab3e9d9b1c0b41abcd4d3e6c7fdb73c59203 (patch)
treeb30454559fb9ebc731bbc18fbecfc8d132d0d840 /calendar/gui/e-day-view.c
parentf6d03216a2588b17c5d4008ca00148c36fecbbde (diff)
downloadgsoc2013-evolution-d6c9ab3e9d9b1c0b41abcd4d3e6c7fdb73c59203.tar
gsoc2013-evolution-d6c9ab3e9d9b1c0b41abcd4d3e6c7fdb73c59203.tar.gz
gsoc2013-evolution-d6c9ab3e9d9b1c0b41abcd4d3e6c7fdb73c59203.tar.bz2
gsoc2013-evolution-d6c9ab3e9d9b1c0b41abcd4d3e6c7fdb73c59203.tar.lz
gsoc2013-evolution-d6c9ab3e9d9b1c0b41abcd4d3e6c7fdb73c59203.tar.xz
gsoc2013-evolution-d6c9ab3e9d9b1c0b41abcd4d3e6c7fdb73c59203.tar.zst
gsoc2013-evolution-d6c9ab3e9d9b1c0b41abcd4d3e6c7fdb73c59203.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;
}
}