Commit 3d4349f3 authored by Jody Goldberg's avatar Jody Goldberg

Another attempt at fixing the problems with item-bar and zoom.

The trick is ....
   Dont't Zoom :-)

We are already scaling everything manually.  Don't scale the canvas too.
That way we avoid being auto centered when zoomed.
parent c571f980
1999-11-15 Jody Goldberg <jgoldberg@home.com>
* src/sheet-view.c (sheet_view_set_zoom_factor) : We are already
manually scaling everything. Don't do it again by scrolling the
canvas.
* src/item-bar.c (item_bar_draw) : Burn that silly hack now that the
mysteries have been made clear. The canvas was auto centering.
* src/sheet.c (sheet_move_range) : Clear the target region content
and comments before pasting.
......
1999-11-15 Jody Goldberg <jgoldberg@home.com>
* src/sheet-view.c (sheet_view_set_zoom_factor) : We are already
manually scaling everything. Don't do it again by scrolling the
canvas.
* src/item-bar.c (item_bar_draw) : Burn that silly hack now that the
mysteries have been made clear. The canvas was auto centering.
* src/sheet.c (sheet_move_range) : Clear the target region content
and comments before pasting.
......
......@@ -209,7 +209,6 @@ item_bar_draw (GnomeCanvasItem *item, GdkDrawable *drawable, int x, int y, int w
int total = -y;
int const real_width = GTK_WIDGET (item->canvas)->allocation.width;
if (x < 0) x = 0;
do {
if (element >= SHEET_MAX_ROWS) {
GtkWidget *canvas = GTK_WIDGET (item->canvas);
......@@ -240,7 +239,6 @@ item_bar_draw (GnomeCanvasItem *item, GdkDrawable *drawable, int x, int y, int w
int total = -x;
int const real_height = GTK_WIDGET (item->canvas)->allocation.height;
if (y < 0) y = 0;
do {
if (element >= SHEET_MAX_COLS) {
GtkWidget *canvas = GTK_WIDGET (item->canvas);
......
......@@ -143,8 +143,6 @@ sheet_view_set_zoom_factor (SheetView *sheet_view, double factor)
item_bar_fonts_init (ITEM_BAR (sheet_view->row_item), factor);
gnome_canvas_set_pixels_per_unit (GNOME_CANVAS (sheet_view->sheet_view), factor);
gnome_canvas_set_pixels_per_unit (GNOME_CANVAS (sheet_view->col_canvas), factor);
gnome_canvas_set_pixels_per_unit (GNOME_CANVAS (sheet_view->row_canvas), factor);
gtk_widget_set_usize (GTK_WIDGET (sheet_view->col_canvas),
-1, COLUMN_HEADER_HEIGHT * factor);
......
......@@ -143,8 +143,6 @@ sheet_view_set_zoom_factor (SheetView *sheet_view, double factor)
item_bar_fonts_init (ITEM_BAR (sheet_view->row_item), factor);
gnome_canvas_set_pixels_per_unit (GNOME_CANVAS (sheet_view->sheet_view), factor);
gnome_canvas_set_pixels_per_unit (GNOME_CANVAS (sheet_view->col_canvas), factor);
gnome_canvas_set_pixels_per_unit (GNOME_CANVAS (sheet_view->row_canvas), factor);
gtk_widget_set_usize (GTK_WIDGET (sheet_view->col_canvas),
-1, COLUMN_HEADER_HEIGHT * factor);
......
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