Commit d56b90d7 authored by Morten Welinder's avatar Morten Welinder

gmorten poors syrup into Miguel's keyboard.

* gmorten poors syrup into Miguel's keyboard.
parent 3a53673f
2000-11-09 Morten Welinder <terra@diku.dk>
* src/gnumeric-sheet.h (GNUMERIC_SHEET_FACTOR_X,
GNUMERIC_SHEET_FACTOR_Y): 1000000 and 2000000. Still ugly, but
now central.
* src/sheet-view.c (sheet_view_set_zoom_factor): Don't hard-code
scroll region sizes multiple places.
* src/gnumeric-sheet.c (gnumeric_sheet_new): Ditto.
* src/sheet-control.c (sheet_control_set_zoom_factor): Ditto.
* src/sheet.h (SHEET_MAX_ROWS, SHEET_MAX_COLS): Remove duplicate
macros.
2000-11-09 Jody Goldberg <jgoldberg@home.com>
* src/stf.c (stf_read_workbook) : We are passing an IOContext.
......
2000-11-09 Morten Welinder <terra@diku.dk>
* src/gnumeric-sheet.h (GNUMERIC_SHEET_FACTOR_X,
GNUMERIC_SHEET_FACTOR_Y): 1000000 and 2000000. Still ugly, but
now central.
* src/sheet-view.c (sheet_view_set_zoom_factor): Don't hard-code
scroll region sizes multiple places.
* src/gnumeric-sheet.c (gnumeric_sheet_new): Ditto.
* src/sheet-control.c (sheet_control_set_zoom_factor): Ditto.
* src/sheet.h (SHEET_MAX_ROWS, SHEET_MAX_COLS): Remove duplicate
macros.
2000-11-09 Jody Goldberg <jgoldberg@home.com>
* src/stf.c (stf_read_workbook) : We are passing an IOContext.
......
2000-11-09 Morten Welinder <terra@diku.dk>
* src/gnumeric-sheet.h (GNUMERIC_SHEET_FACTOR_X,
GNUMERIC_SHEET_FACTOR_Y): 1000000 and 2000000. Still ugly, but
now central.
* src/sheet-view.c (sheet_view_set_zoom_factor): Don't hard-code
scroll region sizes multiple places.
* src/gnumeric-sheet.c (gnumeric_sheet_new): Ditto.
* src/sheet-control.c (sheet_control_set_zoom_factor): Ditto.
* src/sheet.h (SHEET_MAX_ROWS, SHEET_MAX_COLS): Remove duplicate
macros.
2000-11-09 Jody Goldberg <jgoldberg@home.com>
* src/stf.c (stf_read_workbook) : We are passing an IOContext.
......
2000-11-09 Morten Welinder <terra@diku.dk>
* src/gnumeric-sheet.h (GNUMERIC_SHEET_FACTOR_X,
GNUMERIC_SHEET_FACTOR_Y): 1000000 and 2000000. Still ugly, but
now central.
* src/sheet-view.c (sheet_view_set_zoom_factor): Don't hard-code
scroll region sizes multiple places.
* src/gnumeric-sheet.c (gnumeric_sheet_new): Ditto.
* src/sheet-control.c (sheet_control_set_zoom_factor): Ditto.
* src/sheet.h (SHEET_MAX_ROWS, SHEET_MAX_COLS): Remove duplicate
macros.
2000-11-09 Jody Goldberg <jgoldberg@home.com>
* src/stf.c (stf_read_workbook) : We are passing an IOContext.
......
2000-11-09 Morten Welinder <terra@diku.dk>
* src/gnumeric-sheet.h (GNUMERIC_SHEET_FACTOR_X,
GNUMERIC_SHEET_FACTOR_Y): 1000000 and 2000000. Still ugly, but
now central.
* src/sheet-view.c (sheet_view_set_zoom_factor): Don't hard-code
scroll region sizes multiple places.
* src/gnumeric-sheet.c (gnumeric_sheet_new): Ditto.
* src/sheet-control.c (sheet_control_set_zoom_factor): Ditto.
* src/sheet.h (SHEET_MAX_ROWS, SHEET_MAX_COLS): Remove duplicate
macros.
2000-11-09 Jody Goldberg <jgoldberg@home.com>
* src/stf.c (stf_read_workbook) : We are passing an IOContext.
......
......@@ -958,7 +958,7 @@ gnumeric_sheet_new (SheetView *sheet_view, ItemBar *colbar, ItemBar *rowbar)
/* FIXME: figure out some real size for the canvas scrolling region */
gnome_canvas_set_scroll_region (GNOME_CANVAS (gsheet), 0, 0,
1000000, 1200000);
GNUMERIC_SHEET_FACTOR_X, GNUMERIC_SHEET_FACTOR_Y);
/* handy shortcuts */
gsheet_canvas = GNOME_CANVAS (gsheet);
......
......@@ -8,6 +8,9 @@
#define GNUMERIC_SHEET_CLASS(k) (GTK_CHECK_CLASS_CAST ((k), GNUMERIC_TYPE_SHEET))
#define GNUMERIC_IS_SHEET(o) (GTK_CHECK_TYPE((o), GNUMERIC_TYPE_SHEET))
#define GNUMERIC_SHEET_FACTOR_X 1000000
#define GNUMERIC_SHEET_FACTOR_Y 2000000
struct _GnumericSheet {
GnomeCanvas canvas;
......
......@@ -958,7 +958,7 @@ gnumeric_sheet_new (SheetView *sheet_view, ItemBar *colbar, ItemBar *rowbar)
/* FIXME: figure out some real size for the canvas scrolling region */
gnome_canvas_set_scroll_region (GNOME_CANVAS (gsheet), 0, 0,
1000000, 1200000);
GNUMERIC_SHEET_FACTOR_X, GNUMERIC_SHEET_FACTOR_Y);
/* handy shortcuts */
gsheet_canvas = GNOME_CANVAS (gsheet);
......
......@@ -8,6 +8,9 @@
#define GNUMERIC_SHEET_CLASS(k) (GTK_CHECK_CLASS_CAST ((k), GNUMERIC_TYPE_SHEET))
#define GNUMERIC_IS_SHEET(o) (GTK_CHECK_TYPE((o), GNUMERIC_TYPE_SHEET))
#define GNUMERIC_SHEET_FACTOR_X 1000000
#define GNUMERIC_SHEET_FACTOR_Y 2000000
struct _GnumericSheet {
GnomeCanvas canvas;
......
......@@ -211,11 +211,11 @@ sheet_view_set_zoom_factor (SheetView *sheet_view, double factor)
gtk_widget_set_usize (GTK_WIDGET (sheet_view->col_canvas), -1, h);
gnome_canvas_set_scroll_region (GNOME_CANVAS (sheet_view->col_canvas), 0, 0,
1000000*factor, h);
GNUMERIC_SHEET_FACTOR_X * factor, h);
gtk_widget_set_usize (GTK_WIDGET (sheet_view->row_canvas), w, -1);
gnome_canvas_set_scroll_region (GNOME_CANVAS (sheet_view->row_canvas), 0, 0,
w, 1200000*factor);
w, GNUMERIC_SHEET_FACTOR_Y * factor);
/* Recalibrate the starting offsets */
gsheet->col_offset.first =
......
......@@ -211,11 +211,11 @@ sheet_view_set_zoom_factor (SheetView *sheet_view, double factor)
gtk_widget_set_usize (GTK_WIDGET (sheet_view->col_canvas), -1, h);
gnome_canvas_set_scroll_region (GNOME_CANVAS (sheet_view->col_canvas), 0, 0,
1000000*factor, h);
GNUMERIC_SHEET_FACTOR_X * factor, h);
gtk_widget_set_usize (GTK_WIDGET (sheet_view->row_canvas), w, -1);
gnome_canvas_set_scroll_region (GNOME_CANVAS (sheet_view->row_canvas), 0, 0,
w, 1200000*factor);
w, GNUMERIC_SHEET_FACTOR_Y * factor);
/* Recalibrate the starting offsets */
gsheet->col_offset.first =
......
......@@ -17,9 +17,6 @@ struct _SheetSelection {
Range user;
};
#define SHEET_MAX_ROWS (64 * 1024)
#define SHEET_MAX_COLS 256 /* 0 - 255 inclusive */
/* The size, mask, and shift must be kept in sync */
#define COLROW_SEGMENT_SIZE 0x80
#define COLROW_SUB_INDEX(i) ((i) & 0x7f)
......
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