utils: Prefix every function with gcal_util_

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 38ad6ea3ea
commit 117c032d95
34 changed files with 176 additions and 176 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ paintable_from_gdk_rgb (GBinding *binding,
gpointer user_data)
{
GdkRGBA *rgba = g_value_get_boxed (from_value);
g_value_take_object (to_value, get_circle_paintable_from_color (rgba, 16));
g_value_take_object (to_value, gcal_util_get_circle_paintable_from_color (rgba, 16));
return TRUE;
}
+1 -1
View File
@@ -206,7 +206,7 @@ gcal_date_chooser_day_set_date (GcalDateChooserDay *self,
else
gtk_widget_remove_css_class (widget, "today");
if (G_LIKELY (is_workday (weekday)))
if (G_LIKELY (gcal_util_is_workday (weekday)))
gtk_widget_remove_css_class (widget, "non-workday");
else
gtk_widget_add_css_class (widget, "non-workday");
+5 -5
View File
@@ -393,7 +393,7 @@ format_month (GcalMultiChoice *choice,
gint value,
gpointer data)
{
return g_strdup (gcal_get_month_name (value));
return g_strdup (gcal_util_get_month_name (value));
}
static gchar *
@@ -408,9 +408,9 @@ format_month_year (GcalMultiChoice *choice,
decode_combined_choice_value (value, &year, &month, NULL);
if (g_date_time_get_year (now) == year)
return g_strdup (gcal_get_month_name (month - 1));
return g_strdup (gcal_util_get_month_name (month - 1));
else
return g_strdup_printf ("%s %d", gcal_get_month_name (month - 1), year);
return g_strdup_printf ("%s %d", gcal_util_get_month_name (month - 1), year);
}
static void
@@ -422,7 +422,7 @@ calendar_init_month_display (GcalDateChooser *self)
for (i = 0; i < 12; i++)
{
month = gcal_get_month_name (i);
month = gcal_util_get_month_name (i);
months[i] = g_strdup (month);
}
@@ -1083,7 +1083,7 @@ gcal_date_chooser_init (GcalDateChooser *self)
self->date = g_date_time_new_now_local ();
g_date_time_get_ymd (self->date, &self->this_year, NULL, NULL);
self->week_start = get_first_weekday ();
self->week_start = gcal_util_get_first_weekday ();
gtk_widget_init_template (GTK_WIDGET (self));