views/month: Implement get_children_by_uuid

Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1057
This commit is contained in:
Georges Basile Stavracas Neto
2023-08-14 14:57:51 -03:00
parent 1fd984306f
commit f1f9d83943
3 changed files with 34 additions and 1 deletions
+11
View File
@@ -28,6 +28,7 @@
#include "gcal-month-cell.h"
#include "gcal-month-view-row.h"
#include "gcal-range-tree.h"
#include "gcal-utils.h"
typedef struct
{
@@ -764,3 +765,13 @@ gcal_month_view_row_update_style_for_date (GcalMonthViewRow *self,
gcal_month_cell_set_different_month (GCAL_MONTH_CELL (self->day_cells[i]), different_month);
}
}
GList*
gcal_month_view_row_get_children_by_uuid (GcalMonthViewRow *self,
GcalRecurrenceModType mod,
const gchar *uuid)
{
g_assert (GCAL_IS_MONTH_VIEW_ROW (self));
return filter_children_by_uid_and_modtype (GTK_WIDGET (self), mod, uuid);
}