[gtk+] listbox: Use :focus-on-click policy from row instead of list



commit 0a35886b0a39a57b819d1f51adb357c13bda5bf3
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Nov 25 01:05:04 2015 +0100

    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.

 gtk/gtklistbox.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index 9b963d9..f9b74b7 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]