mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-05 18:31:09 +00:00
listbox: Use :focus-on-click policy from row instead of list
Using the property from the container is inconsistent with the :selectable and :activatable properties, which are per row.
This commit is contained in:
parent
d505a1af68
commit
0a35886b0a
@ -1906,7 +1906,7 @@ gtk_list_box_multipress_gesture_released (GtkGestureMultiPress *gesture,
|
||||
|
||||
if (priv->active_row != NULL && priv->active_row_active)
|
||||
{
|
||||
gboolean focus_on_click = gtk_widget_get_focus_on_click (GTK_WIDGET (box));
|
||||
gboolean focus_on_click = gtk_widget_get_focus_on_click (GTK_WIDGET (priv->active_row));
|
||||
|
||||
gtk_widget_unset_state_flags (GTK_WIDGET (priv->active_row),
|
||||
GTK_STATE_FLAG_ACTIVE);
|
||||
|
Loading…
Reference in New Issue
Block a user