+2005-02-24 Marco Pesenti Gritti <marco@gnome.org>
+
+ * shell/ev-view.c: (ev_view_size_allocate):
+
+ Calculate offsets before calling the parent
+ class (which does a redraw)
+
2005-02-24 Marco Pesenti Gritti <marco@gnome.org>
* pdf/xpdf/pdf-document.cc:
GtkBorder border;
gint width, height;
- GTK_WIDGET_CLASS (ev_view_parent_class)->size_allocate (widget, allocation);
-
- view_set_adjustment_values (view, GTK_ORIENTATION_HORIZONTAL);
- view_set_adjustment_values (view, GTK_ORIENTATION_VERTICAL);
-
if (view->document) {
ev_document_get_page_size (view->document, -1,
&width, &height);
view->y_offset += MAX (0, (widget->allocation.height - target_height) / 2);
}
+ GTK_WIDGET_CLASS (ev_view_parent_class)->size_allocate (widget, allocation);
+
+ view_set_adjustment_values (view, GTK_ORIENTATION_HORIZONTAL);
+ view_set_adjustment_values (view, GTK_ORIENTATION_VERTICAL);
+
if (GTK_WIDGET_REALIZED (widget)) {
gdk_window_resize (view->bin_window,
MAX (widget->allocation.width, widget->requisition.width),