const gint height = box.defined() ? Gtk_RenderingContext::toGtkPixels(box.verticalExtent()) : page_height;
setup_adjustments(GtkMathView* math_view){  g_return_if_fail(math_view != NULL);  g_return_if_fail(math_view->view);  const BoundingBox box = math_view->view->getBoundingBox();  if (math_view->hadjustment != NULL) {    const gint width = box.defined() ? Gtk_RenderingContext::toGtkPixels(box.width) : 0;    const gint page_width = GTK_WIDGET(math_view)->allocation.width;        if (math_view->top_x > width - page_width)      math_view->top_x = std::max(0, width - page_width);    setup_adjustment(math_view->hadjustment, width, page_width);  }  if (math_view->vadjustment != NULL) {    const gint height = box.defined() ? Gtk_RenderingContext::toGtkPixels(box.verticalExtent()) : 0;    const gint page_height = GTK_WIDGET(math_view)->allocation.height;    if (math_view->top_y > height - page_height)      math_view->old_top_y = math_view->top_y = std::max(0, height - page_height);    setup_adjustment(math_view->vadjustment, height, page_height);  }}