[gtk/matthiasc/for-master: 12/19] flowbox: Make the children focusable again



commit cea66139ae79f48fb2d4ae733813ac5dbb263cfa
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed May 13 18:27:18 2020 -0400

    flowbox: Make the children focusable again
    
    This broke when the :focusable property was introduced.
    The symptom was that keynav in the Emoji chooser did
    not work anymore.

 gtk/gtkflowbox.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index f5afde78fb..26b78e3fa3 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -545,8 +545,9 @@ gtk_flow_box_child_class_init (GtkFlowBoxChildClass *class)
 static void
 gtk_flow_box_child_init (GtkFlowBoxChild *child)
 {
+  gtk_widget_set_focusable (GTK_WIDGET (child), TRUE);
 }
- 
+
 /* Public API {{{2 */
 
 /**


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