From: Carlos Garcia Campos Date: Fri, 12 Jan 2007 16:58:49 +0000 (+0000) Subject: Restore horizontal scrollbar after switching to/from fullscreen or X-Git-Tag: EVINCE_0_7_2~103 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=47cd9d5b88adc4a58bc982e32e84b01682ec2030;p=evince.git 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 --- diff --git a/ChangeLog b/ChangeLog index 758dfbad..19d50a19 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +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. + 2007-01-11 Carlos Garcia Campos * shell/ev-view-private.h: 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