GNOME Bugzilla – Bug 743595
GtkListBox(Row) and gtk_widget_grab_focus don't mix well
Last modified: 2015-01-31 04:55:08 UTC
When gtk_widget_focus_grab'ing a GtkListBoxRow inside a GtkListBox, the row *will* get the focus, but when using the up/down arrows afterwards, the next focused row will not be the one before/after the now focused row, but the one next to the row that was focused before that (if that makes any sense). tl;dr: GtkListBox keeps track of the focused row (cursor_row) and doesn't know when gtk_widget_grab_focus is called on one of its rows. Now before I write a patch of this: it seems like making gtk_widget_grab_focus update the cursor_row of the listbox is not possible (because rows have no pointer to their listbox and gtk_list_box_update_cursor is private), even though I think it would be the best solution. So would gtk_list_box_focus_row (GtkListBoxRow *row) be ok? Or am I missing something else?
*** This bug has been marked as a duplicate of bug 708320 ***