All invocations of widget.hideWhenNarrow(w) changed to w.hideWhenNarrow()