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) {