[gtk+] listbox: Don't assume that row child == focus widget



commit cb0d2616ff78b4618334edba61d6d97dda767d23
Author: Timm Bäder <mail baedert org>
Date:   Tue Jan 16 15:12:24 2018 +0100

    listbox: Don't assume that row child == focus widget
    
    With widgets supporting child widgets and custom GtkListBoxRow
    subclasses, this might not be true.

 gtk/gtklistbox.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index f710bf1..32135f3 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -3007,7 +3007,7 @@ gtk_list_box_row_focus (GtkWidget        *widget,
   else if (gtk_widget_get_focus_child (widget) != NULL)
     {
       /* Child has focus, always navigate inside it first */
-      if (gtk_widget_child_focus (child, direction))
+      if (gtk_widget_child_focus (gtk_widget_get_focus_child (widget), direction))
         return TRUE;
 
       /* If exiting child container to the left, select row  */


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