From 5ed93e73d4bc3493df9785240b0b17aea598c6bb Mon Sep 17 00:00:00 2001 From: Hari Rana Date: Thu, 5 Feb 2026 17:12:46 -0500 Subject: [PATCH] views/month-cell: Add method for retrieving overflow button This is needed for keyboard navigation, specifically for grabbing focus and checking focus. Part-of: --- src/gui/views/gcal-month-cell.c | 9 +++++++++ src/gui/views/gcal-month-cell.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/src/gui/views/gcal-month-cell.c b/src/gui/views/gcal-month-cell.c index 5575e6a1..01b15a3e 100644 --- a/src/gui/views/gcal-month-cell.c +++ b/src/gui/views/gcal-month-cell.c @@ -637,3 +637,12 @@ gcal_month_cell_set_selected (GcalMonthCell *self, gtk_widget_queue_resize (GTK_WIDGET (self)); } + +GtkWidget * +gcal_month_cell_get_overflow_button (GcalMonthCell *self) +{ + g_assert (GCAL_IS_MONTH_CELL (self)); + + return self->overflow_button; +} + diff --git a/src/gui/views/gcal-month-cell.h b/src/gui/views/gcal-month-cell.h index e7b0a0b9..2526c3c3 100644 --- a/src/gui/views/gcal-month-cell.h +++ b/src/gui/views/gcal-month-cell.h @@ -57,6 +57,8 @@ gboolean gcal_month_cell_get_selected (GcalMonthCell void gcal_month_cell_set_selected (GcalMonthCell *self, gboolean selected); +GtkWidget *gcal_month_cell_get_overflow_button (GcalMonthCell *self); + G_END_DECLS #endif /* GCAL_MONTH_VIEW_CELL_H */