Skip to content

gridview: Work around unexpected focus changes

Matthias Clasen requested to merge focus-workaround into master

As things currently stand, we get events for focus changes before the widget is allocated, and try to scroll in response. Therefore, leaving n_columns at 0 until size-allocate leads to plenty of division-by-zero. Just set it to 1 initially to avoid that. This is a workaround for #3025.

Merge request reports