X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=inline;f=shell%2Fev-view.c;h=98be15fd92d90f85b4a66e6bc7be82099bf10b7c;hb=d09bf63180e0fd1ef51c5e537fff9c4a556aa6e4;hp=7353e7d2d659331d49e947425fbeafc1f6fc4d1f;hpb=fe8ea2226d06f58142a9c192960bc369ac442e20;p=evince.git diff --git a/shell/ev-view.c b/shell/ev-view.c index 7353e7d2..98be15fd 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -122,9 +122,6 @@ static void view_update_range_and_current_page (EvView static void set_scroll_adjustment (EvView *view, GtkOrientation orientation, GtkAdjustment *adjustment); -static void ev_view_set_scroll_adjustments (EvView *view, - GtkAdjustment *hadjustment, - GtkAdjustment *vadjustment); static void add_scroll_binding_keypad (GtkBindingSet *binding_set, guint keyval, GdkModifierType modifiers, @@ -1707,6 +1704,8 @@ ev_view_size_allocate (GtkWidget *widget, { EvView *view = EV_VIEW (widget); + GTK_WIDGET_CLASS (ev_view_parent_class)->size_allocate (widget, allocation); + if (view->sizing_mode == EV_SIZING_FIT_WIDTH || view->sizing_mode == EV_SIZING_BEST_FIT) { @@ -1723,8 +1722,6 @@ ev_view_size_allocate (GtkWidget *widget, view->pending_scroll = SCROLL_TO_KEEP_POSITION; view->pending_resize = FALSE; - - GTK_WIDGET_CLASS (ev_view_parent_class)->size_allocate (widget, allocation); } static void