[evolution] Bug 415261 - Show description for long Day View events
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 415261 - Show description for long Day View events
- Date: Mon, 15 Jun 2015 16:28:21 +0000 (UTC)
commit fe3d4698bce25b56ce28033b489006f2de9fbae8
Author: Milan Crha <mcrha redhat com>
Date: Mon Jun 15 18:27:17 2015 +0200
Bug 415261 - Show description for long Day View events
calendar/gui/e-day-view.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index 2682dae..a02d8d5 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -3292,13 +3292,19 @@ e_day_view_update_event_label (EDayView *day_view,
if (!editing_event) {
if (!short_event) {
- const gchar *location;
+ const gchar *description, *location;
gint days_shown;
days_shown = e_day_view_get_days_shown (day_view);
+ description = icalcomponent_get_description (event->comp_data->icalcomp);
location = icalcomponent_get_location (event->comp_data->icalcomp);
- if (location && *location)
+ if (description && *description) {
+ if (location && *location)
+ text = g_strdup_printf (" \n%s%c(%s)\n\n%s", text, days_shown == 1 ?
' ' : '\n', location, description);
+ else
+ text = g_strdup_printf (" \n%s\n\n%s", text, description);
+ } else if (location && *location)
text = g_strdup_printf (" \n%s%c(%s)", text, days_shown == 1 ? ' ' : '\n',
location);
else
text = g_strdup_printf (" \n%s", text);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]