After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 743595 - GtkListBox(Row) and gtk_widget_grab_focus don't mix well
GtkListBox(Row) and gtk_widget_grab_focus don't mix well
Status: RESOLVED DUPLICATE of bug 708320
Product: gtk+
Classification: Platform
Component: .General
3.15.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-01-27 17:42 UTC by Timm Bäder
Modified: 2015-01-31 04:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Timm Bäder 2015-01-27 17:42:53 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?
Comment 1 Matthias Clasen 2015-01-31 04:55:08 UTC

*** This bug has been marked as a duplicate of bug 708320 ***