[gnome-calendar/gnome-3-24] week-header: Move events at column after remove event from list
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/gnome-3-24] week-header: Move events at column after remove event from list
- Date: Thu, 4 May 2017 00:58:35 +0000 (UTC)
commit e00bed49ac4ab1ef60e02feab27fa78f901604ac
Author: Orkun Tezer <orkuntezerm gmail com>
Date: Wed May 3 03:49:23 2017 +0300
week-header: Move events at column after remove event from list
The Problem: When user remove 4rt fullday event, header only shows two
events and not shows 3rd fullday event
Because, we check and set visibility of event that user wants to remove
from calendar, before remove event from event list which causes 3rd
event unvisible.
Fix that with check and set visibility of event after remove event
from event list, then visibilties and overflow corretly calculated
https://bugzilla.gnome.org/show_bug.cgi?id=777423
src/views/gcal-week-header.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/views/gcal-week-header.c b/src/views/gcal-week-header.c
index f567447..3aa179e 100644
--- a/src/views/gcal-week-header.c
+++ b/src/views/gcal-week-header.c
@@ -1666,13 +1666,13 @@ gcal_week_header_remove_event (GcalWeekHeader *self,
if (event_position == -1)
continue;
- /* Move remaining events up */
- move_events_at_column (self, UP, weekday, event_position);
-
/* Remove from the current weekday */
l = g_list_remove (l, removed_event);
self->events[weekday] = l;
+ /* Move remaining events up */
+ move_events_at_column (self, UP, weekday, event_position);
+
}
/* Check if we eventually can merge events */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]