From: John Darrington Date: Tue, 18 Nov 2008 00:09:57 +0000 (+0900) Subject: Correct scrollbar adjustments for row/column titles width. X-Git-Tag: v0.7.1~154 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1b98c15156a32b058294ba4f5c54fb745550222;p=pspp-builds.git Correct scrollbar adjustments for row/column titles width. --- diff --git a/lib/gtksheet/gtksheet.c b/lib/gtksheet/gtksheet.c index b5233db8..e46edc70 100644 --- a/lib/gtksheet/gtksheet.c +++ b/lib/gtksheet/gtksheet.c @@ -5478,6 +5478,9 @@ adjust_scrollbars (GtkSheet *sheet) g_sheet_row_get_height (sheet->row_geometry, last_row) ; + if (sheet->column_titles_visible) + sheet->vadjustment->upper += sheet->column_title_area.height; + sheet->vadjustment->lower = 0; sheet->vadjustment->page_size = height; @@ -5499,6 +5502,9 @@ adjust_scrollbars (GtkSheet *sheet) g_sheet_column_get_width (sheet->column_geometry, last_col) ; + if (sheet->row_titles_visible) + sheet->hadjustment->upper += sheet->row_title_area.width; + sheet->hadjustment->lower = 0; sheet->hadjustment->page_size = width;