[gnome-calendar/new-year-view] year-view: comment for post-release fixes
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/new-year-view] year-view: comment for post-release fixes
- Date: Tue, 20 Jan 2015 15:01:34 +0000 (UTC)
commit 149f761c5e56d9f6c1e21b784b35530bac306e06
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Mon Jan 19 22:18:16 2015 -0500
year-view: comment for post-release fixes
src/gcal-year-view.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-year-view.c b/src/gcal-year-view.c
index 3cc87d5..d209a7d 100644
--- a/src/gcal-year-view.c
+++ b/src/gcal-year-view.c
@@ -335,6 +335,8 @@ update_sidebar_headers (GtkListBoxRow *row,
date = *(priv->start_selected_date);
icaltime_adjust (&date, row_shift, 0, 0, 0);
+ /* XXX: compare_date_only does not work if is_date field is different */
+ date.is_date = priv->current_date->is_date;
if (icaltime_compare_date_only (date, *(priv->current_date)) == 0)
label_str = g_strdup (_("Today"));
else
@@ -987,6 +989,9 @@ gcal_year_view_component_changed (ECalDataModelSubscriber *subscriber,
e_cal_component_get_dtstart (comp, &dtstart);
e_cal_component_get_dtend (comp, &dtend);
+ /* FIXME: this implementation clear the sidebar are rebuild it
+ * it should only add, what's new, and add it sorted in its position */
+ /* XXX: implement using shift as data and GtkListBox sort_func */
if (icaltime_compare_date_only (*(dtstart.value), *(priv->start_selected_date)) >= 0)
priv->update_sidebar_needed = TRUE;
else if (icaltime_compare_date_only (*(dtend.value), *(priv->end_selected_date)) <= 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]