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:
@@ -465,6 +465,9 @@ gcal_multi_choice_state_flags_changed (GtkWidget *widget,
|
|||||||
{
|
{
|
||||||
GcalMultiChoice *self = GCAL_MULTI_CHOICE (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 (!gtk_widget_is_sensitive (widget))
|
||||||
{
|
{
|
||||||
if (self->popover)
|
if (self->popover)
|
||||||
|
|||||||
Reference in New Issue
Block a user