ganv_canvas_set_center_scroll_region

void ganv_canvas_set_center_scroll_region (GanvCanvas* canvas,
                                           gboolean center_scroll_region);
  

When the scrolling region of the canvas is smaller than the canvas window, e.g. the allocation of the canvas, it can be either centered on the window or simply made to be on the upper-left corner on the window. This function lets you configure this property.

canvas

A canvas.

center_scroll_region

Whether to center the scrolling region in the canvas window when it is smaller than the canvas' allocation.

Returns