utils: Prefix every function with gcal_util_
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/842>
This commit is contained in:
@@ -96,7 +96,7 @@ update_style_flags (GcalMonthCell *self)
|
||||
gtk_widget_remove_css_class (GTK_WIDGET (self), "today");
|
||||
|
||||
weekday = g_date_time_get_day_of_week (self->date);
|
||||
if (is_workday (weekday))
|
||||
if (gcal_util_is_workday (weekday))
|
||||
gtk_widget_add_css_class (GTK_WIDGET (self), "workday");
|
||||
else
|
||||
gtk_widget_remove_css_class (GTK_WIDGET (self), "workday");
|
||||
@@ -280,7 +280,7 @@ gcal_month_cell_class_init (GcalMonthCellClass *klass)
|
||||
1,
|
||||
GTK_TYPE_WIDGET);
|
||||
|
||||
signals[ACTIVATE] = gcal_create_activate_signal_and_shortcuts (widget_class, GCAL_TYPE_MONTH_CELL);
|
||||
signals[ACTIVATE] = gcal_util_create_activate_signal_and_shortcuts (widget_class, GCAL_TYPE_MONTH_CELL);
|
||||
|
||||
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/calendar/ui/views/gcal-month-cell.ui");
|
||||
|
||||
|
||||
@@ -1405,7 +1405,7 @@ gcal_month_view_row_get_children_by_uuid (GcalMonthViewRow *self,
|
||||
{
|
||||
g_assert (GCAL_IS_MONTH_VIEW_ROW (self));
|
||||
|
||||
return filter_children_by_uid_and_modtype (GTK_WIDGET (self), mod, uuid);
|
||||
return gcal_util_filter_children_by_uid_and_modtype (GTK_WIDGET (self), mod, uuid);
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
|
||||
@@ -194,13 +194,13 @@ allocate_overflow_popover (GcalMonthView *self,
|
||||
static inline void
|
||||
update_weekday_labels (GcalMonthView *self)
|
||||
{
|
||||
const gint first_weekday = get_first_weekday ();
|
||||
const gint first_weekday = gcal_util_get_first_weekday ();
|
||||
|
||||
for (gint i = 0; i < N_WEEKDAYS; i++)
|
||||
{
|
||||
g_autofree gchar *weekday_name = NULL;
|
||||
|
||||
weekday_name = g_utf8_strup (gcal_get_weekday ((i + first_weekday) % N_WEEKDAYS), -1);
|
||||
weekday_name = g_utf8_strup (gcal_util_get_weekday ((i + first_weekday) % N_WEEKDAYS), -1);
|
||||
|
||||
gtk_label_set_label (GTK_LABEL (self->weekday_label[i]), weekday_name);
|
||||
}
|
||||
@@ -1047,11 +1047,11 @@ on_drop_target_drop_cb (GtkDropTarget *drop_target,
|
||||
data->event = g_object_ref (event);
|
||||
data->target_date = g_date_time_ref (target_date);
|
||||
|
||||
gcal_utils_ask_recurrence_modification_type (GTK_WIDGET (self),
|
||||
event,
|
||||
FALSE,
|
||||
on_recurrence_response_cb,
|
||||
data);
|
||||
gcal_util_ask_recurrence_modification_type (GTK_WIDGET (self),
|
||||
event,
|
||||
FALSE,
|
||||
on_recurrence_response_cb,
|
||||
data);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -767,11 +767,11 @@ on_drop_target_drop_cb (GtkDropTarget *drop_target,
|
||||
data->event = g_object_ref (event);
|
||||
data->drop_cell = cell;
|
||||
|
||||
gcal_utils_ask_recurrence_modification_type (GTK_WIDGET (self),
|
||||
event,
|
||||
FALSE,
|
||||
on_ask_recurrence_response_cb,
|
||||
data);
|
||||
gcal_util_ask_recurrence_modification_type (GTK_WIDGET (self),
|
||||
event,
|
||||
FALSE,
|
||||
on_ask_recurrence_response_cb,
|
||||
data);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1278,7 +1278,7 @@ gcal_week_grid_get_children_by_uuid (GcalWeekGrid *self,
|
||||
|
||||
GCAL_ENTRY;
|
||||
|
||||
result = filter_children_by_uid_and_modtype (GTK_WIDGET (self), mod, uid);
|
||||
result = gcal_util_filter_children_by_uid_and_modtype (GTK_WIDGET (self), mod, uid);
|
||||
|
||||
GCAL_RETURN (g_steal_pointer (&result));
|
||||
}
|
||||
|
||||
@@ -1375,11 +1375,11 @@ on_drop_target_drop_cb (GtkDropTarget *drop_target,
|
||||
data->event = g_object_ref (event);
|
||||
data->drop_cell = cell;
|
||||
|
||||
gcal_utils_ask_recurrence_modification_type (GTK_WIDGET (self),
|
||||
event,
|
||||
FALSE,
|
||||
on_ask_recurrence_response_cb,
|
||||
data);
|
||||
gcal_util_ask_recurrence_modification_type (GTK_WIDGET (self),
|
||||
event,
|
||||
FALSE,
|
||||
on_ask_recurrence_response_cb,
|
||||
data);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1762,7 +1762,7 @@ gcal_week_header_init (GcalWeekHeader *self)
|
||||
gtk_widget_set_visible (self->dnd.widget, FALSE);
|
||||
gtk_widget_set_parent (self->dnd.widget, GTK_WIDGET (self));
|
||||
|
||||
self->first_weekday = get_first_weekday ();
|
||||
self->first_weekday = gcal_util_get_first_weekday ();
|
||||
|
||||
gtk_widget_init_template (GTK_WIDGET (self));
|
||||
|
||||
@@ -1834,7 +1834,7 @@ gcal_week_header_get_children_by_uuid (GcalWeekHeader *self,
|
||||
|
||||
GCAL_ENTRY;
|
||||
|
||||
result = filter_children_by_uid_and_modtype (GTK_WIDGET (self->grid), mod, uuid);
|
||||
result = gcal_util_filter_children_by_uid_and_modtype (GTK_WIDGET (self->grid), mod, uuid);
|
||||
|
||||
GCAL_RETURN (g_steal_pointer (&result));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user