utils: Prefix macros with GCAL_

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/842>
This commit is contained in:
Hari Rana
2026-09-20 12:44:24 +00:00
committed by Marge Bot
parent 117c032d95
commit 65896c6ece
16 changed files with 128 additions and 128 deletions
+4 -4
View File
@@ -52,7 +52,7 @@ struct _GcalMonthView
GtkWidget parent;
GtkWidget *header;
GtkWidget *weekday_label[N_WEEKDAYS];
GtkWidget *weekday_label[GCAL_N_WEEKDAYS];
GtkEventController *motion_controller;
@@ -196,11 +196,11 @@ update_weekday_labels (GcalMonthView *self)
{
const gint first_weekday = gcal_util_get_first_weekday ();
for (gint i = 0; i < N_WEEKDAYS; i++)
for (gint i = 0; i < GCAL_N_WEEKDAYS; i++)
{
g_autofree gchar *weekday_name = NULL;
weekday_name = g_utf8_strup (gcal_util_get_weekday ((i + first_weekday) % N_WEEKDAYS), -1);
weekday_name = g_utf8_strup (gcal_util_get_weekday ((i + first_weekday) % GCAL_N_WEEKDAYS), -1);
gtk_label_set_label (GTK_LABEL (self->weekday_label[i]), weekday_name);
}
@@ -2086,7 +2086,7 @@ gcal_month_view_init (GcalMonthView *self)
update_weekday_labels (self);
gtk_accessible_update_relation (GTK_ACCESSIBLE (self),
GTK_ACCESSIBLE_RELATION_COL_COUNT, N_WEEKDAYS,
GTK_ACCESSIBLE_RELATION_COL_COUNT, GCAL_N_WEEKDAYS,
GTK_ACCESSIBLE_RELATION_ROW_COUNT, N_ROWS_PER_PAGE,
-1);