Commit eecfe9d1 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

Fix old off by 1 error. Number of visible = last - first PLUS 1.

2001-09-18  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-control-gui.c (scg_scrollbar_config) : Fix old off by 1
	  error.  Number of visible = last - first PLUS 1.
parent 8a5c2910
2001-09-18 Jody Goldberg <jgoldberg@home.com>
* src/sheet-control-gui.c (scg_scrollbar_config) : Fix old off by 1
error. Number of visible = last - first PLUS 1.
2001-09-18 Jody Goldberg <jgoldberg@home.com>
* src/sheet-control-gui.c (scg_redraw_all) : make headers optional.
......
2001-09-18 Jody Goldberg <jgoldberg@home.com>
* src/sheet-control-gui.c (scg_scrollbar_config) : Fix old off by 1
error. Number of visible = last - first PLUS 1.
2001-09-18 Jody Goldberg <jgoldberg@home.com>
* src/sheet-control-gui.c (scg_redraw_all) : make headers optional.
......
2001-09-18 Jody Goldberg <jgoldberg@home.com>
* src/sheet-control-gui.c (scg_scrollbar_config) : Fix old off by 1
error. Number of visible = last - first PLUS 1.
2001-09-18 Jody Goldberg <jgoldberg@home.com>
* src/sheet-control-gui.c (scg_redraw_all) : make headers optional.
......
2001-09-18 Jody Goldberg <jgoldberg@home.com>
* src/sheet-control-gui.c (scg_scrollbar_config) : Fix old off by 1
error. Number of visible = last - first PLUS 1.
2001-09-18 Jody Goldberg <jgoldberg@home.com>
* src/sheet-control-gui.c (scg_redraw_all) : make headers optional.
......
......@@ -325,9 +325,9 @@ scg_scrollbar_config (SheetControl const *sc)
max_row = sheet->rows.max_used;
if (max_row < sheet->max_object_extent.row)
max_row = sheet->max_object_extent.row;
va->upper = max_row;
va->upper = max_row + 1;
va->value = gcanvas->first.row;
va->page_size = last_row - gcanvas->first.row;
va->page_size = last_row - gcanvas->first.row + 1;
va->page_increment = MAX (va->page_size - 3.0, 1.0);
va->step_increment = 1;
......@@ -335,8 +335,8 @@ scg_scrollbar_config (SheetControl const *sc)
max_col = sheet->cols.max_used;
if (max_col < sheet->max_object_extent.col)
max_col = sheet->max_object_extent.col;
ha->upper = max_col;
ha->page_size = last_col - gcanvas->first.col;
ha->upper = max_col + 1;
ha->page_size = last_col - gcanvas->first.col + 1;
ha->value = gcanvas->first.col;
ha->page_increment = MAX (ha->page_size - 3.0, 1.0);
ha->step_increment = 1;
......
......@@ -3784,18 +3784,18 @@ workbook_control_gui_init (WorkbookControlGUI *wbcg,
wbcg->editing_cell = NULL;
wbcg->rangesel = NULL;
gtk_signal_connect_after (
GTK_OBJECT (wbcg->toplevel), "delete_event",
gtk_signal_connect_after (GTK_OBJECT (wbcg->toplevel),
"delete_event",
GTK_SIGNAL_FUNC (wbcg_delete_event), wbcg);
gtk_signal_connect_after (
GTK_OBJECT (wbcg->toplevel), "set_focus",
gtk_signal_connect_after ( GTK_OBJECT (wbcg->toplevel),
"set_focus",
GTK_SIGNAL_FUNC (wbcg_set_focus), wbcg);
gtk_signal_connect (GTK_OBJECT (wbcg->toplevel),
"button-release-event",
GTK_SIGNAL_FUNC (cb_scroll_wheel_support),
wbcg);
gtk_signal_connect (GTK_OBJECT (wbcg->toplevel), "realize",
GTK_SIGNAL_FUNC (cb_realize), wbcg);
"button-release-event",
GTK_SIGNAL_FUNC (cb_scroll_wheel_support), wbcg);
gtk_signal_connect (GTK_OBJECT (wbcg->toplevel),
"realize",
GTK_SIGNAL_FUNC (cb_realize), wbcg);
#if 0
/* Enable toplevel as a drop target */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment