Changeset 69

Show
Ignore:
Timestamp:
04/15/06 11:09:53 (3 years ago)
Author:
jordi
Message:

When the page changed, the scrolled window shows the top of the page instead of maintaining the current position.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gtk/MainView.cxx

    r68 r69  
    383383    gtk_image_set_from_pixbuf (GTK_IMAGE (m_PageView), pixbuf); 
    384384    gdk_pixbuf_unref (pixbuf); 
     385    // Set the vertical scroll to the top of the page. 
     386    GtkAdjustment *adjustment = gtk_scrolled_window_get_vadjustment ( 
     387                                    GTK_SCROLLED_WINDOW (m_PageViewScroll)); 
     388    gtk_adjustment_set_value (adjustment, adjustment->lower); 
    385389} 
    386390