From 1c7760bd89d7357e4d0ea7da2949778f0ab66b8d Mon Sep 17 00:00:00 2001 From: Zoey Date: Thu, 1 May 2025 18:27:05 +0100 Subject: [PATCH] Reuse day_of_month to check if date of month is 1 --- src/gui/views/gcal-month-cell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/views/gcal-month-cell.c b/src/gui/views/gcal-month-cell.c index 3c45facf..3e07e2ee 100644 --- a/src/gui/views/gcal-month-cell.c +++ b/src/gui/views/gcal-month-cell.c @@ -486,7 +486,7 @@ gcal_month_cell_set_date (GcalMonthCell *self, /* Month name */ day_of_month = g_date_time_get_day_of_month (date); gtk_widget_set_visible (GTK_WIDGET (self->month_name_label), day_of_month == 1); - if (g_date_time_get_day_of_month (date) == 1) + if (day_of_month == 1) { g_autofree gchar *month_name = g_date_time_format (date, "%b"); gtk_label_set_text (self->month_name_label, month_name);