Skip to content
  • Matthias Clasen's avatar
    gridview: Work around unexpected focus changes · c13d7047
    Matthias Clasen authored
    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.
    c13d7047