Make category switching work

The listbox is not a direct child of the stack. We need
to take the scrolled window and a viewport to take into account.

https://bugzilla.gnome.org/show_bug.cgi?id=709123