diff options
author | Rafal Luzynski <digitalfreak@lingonborough.com> | 2015-08-23 02:32:21 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-10-03 22:48:15 -0400 |
commit | 3c253c46a5d3979475a6cd968cd15c85f0bf26b0 (patch) | |
tree | fd270b5a42ebfd546c6636fa535a3a1fd4f08ce6 /gtk/gtkflowbox.h | |
parent | 896f911ea17c5818c9364980f5c82a95533bb070 (diff) | |
download | gtk+-3c253c46a5d3979475a6cd968cd15c85f0bf26b0.tar.gz |
flowbox: correct the behavior with "can-focus"==FALSE
In fact there were two issues:
1. GtkFlowBoxChild with "can-focus"==FALSE should pass the focus
to its child immediately.
2. GtkFlowBox with "can-focus"==FALSE should cease its custom keynav
implementation and fall back to the default GtkContainer behavior
which is more natural.
Thanks to these changes the flow box can act as a better replacement
for GtkGrid and similar containers.
https://bugzilla.gnome.org/show_bug.cgi?id=753371
Diffstat (limited to 'gtk/gtkflowbox.h')
-rw-r--r-- | gtk/gtkflowbox.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkflowbox.h b/gtk/gtkflowbox.h index f15a86a98f..0b6ad4dc8f 100644 --- a/gtk/gtkflowbox.h +++ b/gtk/gtkflowbox.h @@ -61,7 +61,7 @@ struct _GtkFlowBoxClass void (*selected_children_changed) (GtkFlowBox *box); void (*activate_cursor_child) (GtkFlowBox *box); void (*toggle_cursor_child) (GtkFlowBox *box); - void (*move_cursor) (GtkFlowBox *box, + gboolean (*move_cursor) (GtkFlowBox *box, GtkMovementStep step, gint count); void (*select_all) (GtkFlowBox *box); |