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:
Florian Müllner 2015-11-25 01:05:04 +01:00
parent d505a1af68
commit 0a35886b0a

View File

@ -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);