From 1f06a71ee0df0867707788025ede58c5b005ada4 Mon Sep 17 00:00:00 2001 From: Hari Rana Date: Sat, 4 Apr 2026 20:01:20 -0400 Subject: [PATCH] views/month-cell: Set child visible instead of sensitive When hovering over the bottom side of a month cell regardless of the sensitivity state of the overflow button, it queries the button's tooltip text. Using `gtk_widget_set_child_visible()` fixes that issue. Part-of: --- src/gui/views/gcal-month-cell.blp | 1 - src/gui/views/gcal-month-cell.c | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/views/gcal-month-cell.blp b/src/gui/views/gcal-month-cell.blp index 66956a93..13b909d4 100644 --- a/src/gui/views/gcal-month-cell.blp +++ b/src/gui/views/gcal-month-cell.blp @@ -71,7 +71,6 @@ template $GcalMonthCell: Widget { Adw.Bin { child: Button overflow_button { accessible-role: toggle_button; - sensitive: false; clicked => $overflow_button_clicked_cb(template) not-swapped; tooltip-text: _("All Events"); margin-top: 1; diff --git a/src/gui/views/gcal-month-cell.c b/src/gui/views/gcal-month-cell.c index 0656b76b..a1efc0c3 100644 --- a/src/gui/views/gcal-month-cell.c +++ b/src/gui/views/gcal-month-cell.c @@ -450,6 +450,8 @@ gcal_month_cell_init (GcalMonthCell *self) GcalWeatherService *weather_service = gcal_context_get_weather_service (context); gcal_weather_service_hold (weather_service); + + gtk_widget_set_child_visible (self->overflow_button, FALSE); } GtkWidget* @@ -520,7 +522,7 @@ gcal_month_cell_set_overflow (GcalMonthCell *self, self->n_overflow = n_overflow; - gtk_widget_set_sensitive (self->overflow_button, n_overflow > 0); + gtk_widget_set_child_visible (self->overflow_button, n_overflow > 0); if (n_overflow > 0) {