]> www.fi.muni.cz Git - evince.git/commitdiff
Restore horizontal scrollbar after switching to/from fullscreen or
authorCarlos Garcia Campos <carlosgc@gnome.org>
Fri, 12 Jan 2007 16:58:49 +0000 (16:58 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Fri, 12 Jan 2007 16:58:49 +0000 (16:58 +0000)
2007-01-12  Carlos Garcia Campos  <carlosgc@gnome.org>
* 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

ChangeLog
shell/ev-view.c

index 758dfbad6f64426ff460f0bcef1ae0f5fba247a7..19d50a19ab1b46804c44a13b0e2305b2c27a6a94 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-01-12  Carlos Garcia Campos  <carlosgc@gnome.org>
+       
+       * 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  <carlosgc@gnome.org>
 
        * shell/ev-view-private.h:
index 7353e7d2d659331d49e947425fbeafc1f6fc4d1f..98be15fd92d90f85b4a66e6bc7be82099bf10b7c 100644 (file)
@@ -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