]> www.fi.muni.cz Git - evince.git/commitdiff
Calculate offsets before calling the parent class (which does a redraw)
authorMarco Pesenti Gritti <marco@gnome.org>
Thu, 24 Feb 2005 13:13:23 +0000 (13:13 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Thu, 24 Feb 2005 13:13:23 +0000 (13:13 +0000)
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)

ChangeLog
shell/ev-view.c

index 2557032d02d0e70791be97f498f1c4971ae15d8c..b668080332341df5e0bac173fcfeaea089298839 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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:
index c667bf9dbe40f6a627133106366b359fc215fcde..610c880c421edde61d9af32650cc0cc55a08ecc4 100644 (file)
@@ -280,11 +280,6 @@ ev_view_size_allocate (GtkWidget      *widget,
        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);
@@ -297,6 +292,11 @@ ev_view_size_allocate (GtkWidget      *widget,
                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),