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: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/743>
This commit is contained in:
Hari Rana
2026-07-04 23:04:29 -04:00
parent cc6edfed79
commit 1f06a71ee0
2 changed files with 3 additions and 2 deletions
-1
View File
@@ -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;
+3 -1
View File
@@ -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)
{