Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2005-02-24 13:13:23 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-02-24 13:13:23 (GMT)
commitd5304b64bb19300df181703917d3c06c7c194b33 (patch)
tree8de1c8ce1096ebd22fd98c431859f7722e8814cf /shell
parent662b57ab5fc05d98a0ab3e4258c15cf2a2cc66c1 (diff)
Calculate offsets before calling the parent class (which does a redraw)
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)
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-view.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c
index c667bf9..610c880 100644
--- a/shell/ev-view.c
+++ b/shell/ev-view.c
@@ -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),