GtkToolbar::set_space_size

void set_space_size(int space_size);

Sets the width (horitontal orientation) or height (vertical orientation) which a spacer takes for display. The width of the line is not affected by this setting.

You can read the current space size with the space_size property.