[california/wip/734698-agenda: 2/3] Deal with event sort order (mutation)
- From: Jim Nelson <jnelson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [california/wip/734698-agenda: 2/3] Deal with event sort order (mutation)
- Date: Mon, 8 Dec 2014 22:53:01 +0000 (UTC)
commit 7052ee616f5488711633881fda7b992fc0cc37a2
Author: Jim Nelson <jim yorba org>
Date: Mon Dec 8 14:52:14 2014 -0800
Deal with event sort order (mutation)
Easiest way out.
src/view/agenda/agenda-event-row.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/view/agenda/agenda-event-row.vala b/src/view/agenda/agenda-event-row.vala
index af1d4cc..2558dae 100644
--- a/src/view/agenda/agenda-event-row.vala
+++ b/src/view/agenda/agenda-event-row.vala
@@ -68,6 +68,10 @@ private class EventRow : Gtk.Box, Toolkit.MutableWidget {
// instances)
event.calendar_source.notify[Backing.Source.PROP_COLOR].connect(update_ui);
+ // .. and assume that all property changes cause sort-order changes (no reliable way to
+ // know exactly when for now)
+ event.altered.connect(() => { mutated(); });
+
// .. date formatting changes
Calendar.System.instance.is_24hr_changed.connect(update_ui);
Calendar.System.instance.zone_changed.connect(update_ui);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]