GtkViewport Constructor

GtkViewport ([GtkAdjustment hadjustment = null [, GtkAdjustment vadjustment = null]]);

Creates a new viewport. If one of the parameters is omitted or null, the adjustment is created automatically.

After creation, you should use GtkContainer's add() method to set the child.

If you plan to add the viewport to a GtkScrolledWindow, you should think about using add_with_viewport() function.