event-editor/multi-choice: Always set focus-visible flag when focused

This is to ensure that the focus ring never disappears until
the toggle button is unfocused.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/603>
This commit is contained in:
Hari Rana
2025-06-29 08:51:24 -04:00
parent b4853da249
commit 7be43df099
+3
View File
@@ -465,6 +465,9 @@ gcal_multi_choice_state_flags_changed (GtkWidget *widget,
{
GcalMultiChoice *self = GCAL_MULTI_CHOICE (widget);
if (gtk_widget_is_focus (self->button))
gtk_widget_set_state_flags (self->button, GTK_STATE_FLAG_FOCUS_VISIBLE, FALSE);
if (!gtk_widget_is_sensitive (widget))
{
if (self->popover)