+
+ x_offset = MAX (0, (widget->allocation.width -
+ widget->requisition.width) / 2);
+ y_offset = MAX (0, (widget->allocation.height -
+ widget->requisition.height) / 2);
+ gdk_draw_rectangle (view->bin_window,
+ widget->style->black_gc,
+ FALSE,
+ x_offset,
+ y_offset,
+ widget->requisition.width - 1,
+ widget->requisition.height - 1);
+
+ ev_document_set_page_offset (view->document,
+ x_offset + 1,
+ y_offset + 1);
+