From 47cd9d5b88adc4a58bc982e32e84b01682ec2030 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Fri, 12 Jan 2007 16:58:49 +0000 Subject: Restore horizontal scrollbar after switching to/from fullscreen or 2007-01-12 Carlos Garcia Campos * shell/ev-view.c: (ev_view_size_allocate): Restore horizontal scrollbar after switching to/from fullscreen or presentation mode. Fixes bug #331728. svn path=/trunk/; revision=2218 --- (limited to 'shell/ev-view.c') diff --git a/shell/ev-view.c b/shell/ev-view.c index 7353e7d..98be15f 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 -- cgit v0.9.1