views/month: Use variable for better readability
The second part of the if condition is not obvious, so use a variable with a proper name to make it easier to understand. Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/758>
This commit is contained in:
committed by
Marge Bot
parent
573e1dc042
commit
601acef508
@@ -772,9 +772,13 @@ recalculate_layout_blocks (GcalMonthViewRow *self)
|
||||
|
||||
for (gint cell = first_cell; cell <= last_cell; cell++)
|
||||
{
|
||||
gboolean event_will_break;
|
||||
|
||||
events_at_weekday[cell]++;
|
||||
|
||||
if (!block || (cell > first_cell && events_at_weekday[cell] != events_at_weekday[cell - 1]))
|
||||
event_will_break = cell > first_cell && events_at_weekday[cell] != events_at_weekday[cell - 1];
|
||||
|
||||
if (!block || event_will_break)
|
||||
{
|
||||
GtkWidget *event_widget = pick_existing_event_widget (event_widgets, event);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user