add_with_viewport() is a convenience function that invisibly adds the child widget to a GtkViewport before adding the viewport to the GtkScrolledWindow.
The GtkViewport is a scrolling-aware container that provides its child widget with that characteristic.