Commit 676c70fb authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

Some improvements to the default sizes of things to resizing.

We will need to tweak this to get things to match properly.

2000-02-09  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (change_displayed_zoom_cb) : Add a '%' at the end of
	  the zoom specification.
	(workbook_create_standard_toobar) : Adjust the list of zoom labels.

	* src/style.c (font_init) : Add comment explaining that the default
	  fonts are not scaled by resolution, and that we depend on that.

	* src/sheet.c (sheet_init_default_styles) : Set the default sizes
	  based on the size of the default font not on pixels.

	* src/sheet-view.c (new_canvas_bar) : Don't set the size or scroll
	  region here.
	(sheet_view_construct) : Call sheet_view_set_zoom_factor with a factor
	  of 1 to set sizes and scroll regions.
	(sheet_view_set_zoom_factor) : Do not hard code the sizes of the free
	  dimensions.  Set them based on the font used for the headers.
parent 989bc01e
2000-02-09 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (change_displayed_zoom_cb) : Add a '%' at the end of
the zoom specification.
(workbook_create_standard_toobar) : Adjust the list of zoom labels.
* src/style.c (font_init) : Add comment explaining that the default
fonts are not scaled by resolution, and that we depend on that.
* src/sheet.c (sheet_init_default_styles) : Set the default sizes
based on the size of the default font not on pixels.
* src/sheet-view.c (new_canvas_bar) : Don't set the size or scroll
region here.
(sheet_view_construct) : Call sheet_view_set_zoom_factor with a factor
of 1 to set sizes and scroll regions.
(sheet_view_set_zoom_factor) : Do not hard code the sizes of the free
dimensions. Set them based on the font used for the headers.
2000-02-08 Jody Goldberg <jgoldberg@home.com>
* src/commands.c (command_undo) : Be more careful and only undo
commands the successfully undo.
2000-02-06 Michael Meeks <michael@helixcode.com>
* src/sheet-object.c (sheet_object_construct): mark sheet as modified.
......
......@@ -28,6 +28,9 @@ Jody:
Jon:
* Cursor fixes and speedups.
ERDI Gergo :
* Add a zoom element to the toolbar.
--------------------------------------------------------------------------
Gnumeric 0.48
......
2000-02-09 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (change_displayed_zoom_cb) : Add a '%' at the end of
the zoom specification.
(workbook_create_standard_toobar) : Adjust the list of zoom labels.
* src/style.c (font_init) : Add comment explaining that the default
fonts are not scaled by resolution, and that we depend on that.
* src/sheet.c (sheet_init_default_styles) : Set the default sizes
based on the size of the default font not on pixels.
* src/sheet-view.c (new_canvas_bar) : Don't set the size or scroll
region here.
(sheet_view_construct) : Call sheet_view_set_zoom_factor with a factor
of 1 to set sizes and scroll regions.
(sheet_view_set_zoom_factor) : Do not hard code the sizes of the free
dimensions. Set them based on the font used for the headers.
2000-02-08 Jody Goldberg <jgoldberg@home.com>
* src/commands.c (command_undo) : Be more careful and only undo
commands the successfully undo.
2000-02-06 Michael Meeks <michael@helixcode.com>
* src/sheet-object.c (sheet_object_construct): mark sheet as modified.
......
......@@ -22,6 +22,8 @@ Description Difficulty Integration
browsing/listing the funtions & I/O routines it
provides.
- Reorder colours in src/widgets/widget-color-combo.c Artistic Very Low.
to be less random.
Difficulty: an estimate of how hard the task would be for the average hacker.
......
......@@ -38,15 +38,30 @@ application_init (void)
app.clipboard_copied_contents = NULL;
app.clipboard_sheet = NULL;
app.horizontal_dpi = 110.;
app.vertical_dpi = 120.;
/* FIXME : 101 as the default will scale Helvetica-10 to Helvetica-14
* which is not too ugly. Ideally we could get the correct values here but,
*
* XFree86-3) lies. It defaults to 75x75 dpi and only allows the user to
* specify one resolution, which it uses for both axis.
* XFree86-4) Makes a better guess, but still seems to use the same
* resolution for both directions.
*
* The trouble is that this value is not correct. To get a pixel match
* my monitor is closer to 120x110.
*
* I'll leave it as is for now, and revisit the solution when we shake
* out the flaws in the display code.
*/
app.horizontal_dpi = 101.;
app.vertical_dpi = 101.;
gnome_config_push_prefix ("Gnumeric/Screen_Resolution/");
app.horizontal_dpi =
gnome_config_get_float_with_default ("Horizontal_dpi=110",
gnome_config_get_float_with_default ("Horizontal_dpi=101",
&h_was_default);
app.vertical_dpi =
gnome_config_get_float_with_default ("Vertical_dpi=120",
gnome_config_get_float_with_default ("Vertical_dpi=101",
&v_was_default);
if (h_was_default)
......
......@@ -178,6 +178,7 @@ void
command_undo (CommandContext *context, Workbook *wb)
{
GnumericCommand *cmd;
GnumericCommandClass *klass;
g_return_if_fail (wb != NULL);
g_return_if_fail (wb->undo_commands != NULL);
......@@ -185,12 +186,17 @@ command_undo (CommandContext *context, Workbook *wb)
cmd = GNUMERIC_COMMAND(wb->undo_commands->data);
g_return_if_fail (cmd != NULL);
klass = GNUMERIC_COMMAND_CLASS(cmd->parent.klass);
g_return_if_fail (klass != NULL);
/* TRUE indicates a failure to undo. Leave the command where it is */
if (klass->undo_cmd (cmd, context))
return;
wb->undo_commands = g_slist_remove (wb->undo_commands,
wb->undo_commands->data);
GNUMERIC_COMMAND_CLASS(cmd->parent.klass)->undo_cmd (cmd, context);
wb->redo_commands = g_slist_prepend (wb->redo_commands, cmd);
undo_redo_menu_labels (wb);
/* TODO : Should we mark the workbook as clean or pristine too */
}
......@@ -207,6 +213,7 @@ void
command_redo (CommandContext *context, Workbook *wb)
{
GnumericCommand *cmd;
GnumericCommandClass *klass;
g_return_if_fail (wb);
g_return_if_fail (wb->redo_commands);
......@@ -214,10 +221,16 @@ command_redo (CommandContext *context, Workbook *wb)
cmd = GNUMERIC_COMMAND(wb->redo_commands->data);
g_return_if_fail (cmd != NULL);
klass = GNUMERIC_COMMAND_CLASS(cmd->parent.klass);
g_return_if_fail (klass != NULL);
/* TRUE indicates a failure to undo. Leave the command where it is */
if (klass->redo_cmd (cmd, context))
return;
/* Remove the command from the undo list */
wb->redo_commands = g_slist_remove (wb->redo_commands,
wb->redo_commands->data);
GNUMERIC_COMMAND_CLASS(cmd->parent.klass)->redo_cmd (cmd, context);
wb->undo_commands = g_slist_prepend (wb->undo_commands, cmd);
undo_redo_menu_labels (wb);
}
......
......@@ -89,7 +89,9 @@ gnumeric_sheet_get_cell_bounds (GnumericSheet *gsheet, int col, int row, int *x,
* placed at base_col, base_row
*/
void
gnumeric_sheet_set_selection (GnumericSheet *gsheet, SheetSelection const *ss)
gnumeric_sheet_set_selection (GnumericSheet *gsheet,
int base_col, int base_row,
SheetSelection const *ss)
{
g_return_if_fail (gsheet != NULL);
g_return_if_fail (ss != NULL);
......@@ -97,7 +99,7 @@ gnumeric_sheet_set_selection (GnumericSheet *gsheet, SheetSelection const *ss)
sheet_cursor_set (
gsheet->sheet_view->sheet,
ss->base.col, ss->base.row,
base_col, base_row,
ss->user.start.col, ss->user.start.row,
ss->user.end.col, ss->user.end.row);
}
......
......@@ -48,7 +48,8 @@ typedef struct {
GtkType gnumeric_sheet_get_type (void);
GtkWidget *gnumeric_sheet_new (SheetView *sheet, ItemBar *colbar, ItemBar *rowbar);
void gnumeric_sheet_set_selection (GnumericSheet *gsheet, SheetSelection const *ss);
void gnumeric_sheet_set_selection (GnumericSheet *gsheet, int base_col, int base_row,
SheetSelection const *ss);
void gnumeric_sheet_set_top_row (GnumericSheet *gsheet, int new_first_row);
void gnumeric_sheet_set_left_col (GnumericSheet *gsheet, int new_first_col);
void gnumeric_sheet_move_cursor (GnumericSheet *gsheet,
......
......@@ -89,7 +89,9 @@ gnumeric_sheet_get_cell_bounds (GnumericSheet *gsheet, int col, int row, int *x,
* placed at base_col, base_row
*/
void
gnumeric_sheet_set_selection (GnumericSheet *gsheet, SheetSelection const *ss)
gnumeric_sheet_set_selection (GnumericSheet *gsheet,
int base_col, int base_row,
SheetSelection const *ss)
{
g_return_if_fail (gsheet != NULL);
g_return_if_fail (ss != NULL);
......@@ -97,7 +99,7 @@ gnumeric_sheet_set_selection (GnumericSheet *gsheet, SheetSelection const *ss)
sheet_cursor_set (
gsheet->sheet_view->sheet,
ss->base.col, ss->base.row,
base_col, base_row,
ss->user.start.col, ss->user.start.row,
ss->user.end.col, ss->user.end.row);
}
......
......@@ -48,7 +48,8 @@ typedef struct {
GtkType gnumeric_sheet_get_type (void);
GtkWidget *gnumeric_sheet_new (SheetView *sheet, ItemBar *colbar, ItemBar *rowbar);
void gnumeric_sheet_set_selection (GnumericSheet *gsheet, SheetSelection const *ss);
void gnumeric_sheet_set_selection (GnumericSheet *gsheet, int base_col, int base_row,
SheetSelection const *ss);
void gnumeric_sheet_set_top_row (GnumericSheet *gsheet, int new_first_row);
void gnumeric_sheet_set_left_col (GnumericSheet *gsheet, int new_first_col);
void gnumeric_sheet_move_cursor (GnumericSheet *gsheet,
......
......@@ -94,7 +94,7 @@ sheet_selection_append_range (Sheet *sheet,
sheet_accept_pending_input (sheet);
sheet_load_cell_val (sheet);
sheet_set_selection (sheet, ss);
sheet_set_selection (sheet, base_col, base_row, ss);
sheet_redraw_selection (sheet, ss);
sheet_redraw_headers (sheet, TRUE, TRUE, &ss->user);
......@@ -168,7 +168,7 @@ sheet_selection_change (Sheet *sheet, SheetSelection *old, SheetSelection *new)
sheet_accept_pending_input (sheet);
sheet_set_selection (sheet, new);
sheet_set_selection (sheet, new->base.col, new->base.row, new);
sheet_selection_changed_hook (sheet);
if (range_overlap (&old->user, &new->user)){
......
......@@ -22,11 +22,6 @@
#include "selection.h"
#include "application.h"
/* Sizes for column/row headers */
#define COLUMN_HEADER_HEIGHT 20
#define ROW_HEADER_WIDTH 50
static GtkTableClass *sheet_view_parent_class;
void
......@@ -173,28 +168,40 @@ sheet_view_set_zoom_factor (SheetView *sheet_view, double factor)
{
GList *l;
GnumericSheet *gsheet;
ItemBar *col_item, *row_item;
int h, w;
g_return_if_fail (sheet_view != NULL);
g_return_if_fail (IS_SHEET_VIEW (sheet_view));
gsheet = GNUMERIC_SHEET (sheet_view->sheet_view);
col_item = ITEM_BAR (sheet_view->col_item);
row_item = ITEM_BAR (sheet_view->row_item);
/* Set pixels_per_unit before the font. The item bars look here for the number */
gnome_canvas_set_pixels_per_unit (GNOME_CANVAS (gsheet), factor);
/* resize the header fonts */
item_bar_fonts_init (ITEM_BAR (sheet_view->col_item));
item_bar_fonts_init (ITEM_BAR (sheet_view->row_item));
item_bar_fonts_init (col_item);
item_bar_fonts_init (row_item);
/*
* Use the size of the bold header font to size the free dimensions
* No need to zoom, the size of the font takes that into consideration.
*/
/* 2 pixels above and below */
h = 2 + 2 + style_font_get_height (col_item->bold_font);
/* 5 pixels left and right plus the width of the widest string I can think of */
w = 5 + 5 + gdk_string_width (style_font_gdk_font (col_item->bold_font), "88888");
gtk_widget_set_usize (GTK_WIDGET (sheet_view->col_canvas),
-1, COLUMN_HEADER_HEIGHT * 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, COLUMN_HEADER_HEIGHT*factor);
1000000*factor, h);
gtk_widget_set_usize (GTK_WIDGET (sheet_view->row_canvas),
ROW_HEADER_WIDTH * factor, -1);
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,
ROW_HEADER_WIDTH*factor, 1200000*factor);
w, 1200000*factor);
/* Recalibrate the starting offsets */
gsheet->col_offset.first =
......@@ -224,40 +231,25 @@ canvas_bar_realized (GtkWidget *widget, gpointer data)
static GnomeCanvas *
new_canvas_bar (SheetView *sheet_view, GtkOrientation o, GnomeCanvasItem **itemp)
{
GnomeCanvasGroup *group;
GnomeCanvasItem *item;
GtkWidget *canvas;
int w, h;
canvas = gnome_canvas_new ();
GtkWidget *canvas =
gnome_canvas_new ();
GnomeCanvasGroup *group =
GNOME_CANVAS_GROUP (GNOME_CANVAS (canvas)->root);
GnomeCanvasItem *item =
gnome_canvas_item_new (group,
item_bar_get_type (),
"ItemBar::SheetView", sheet_view,
"ItemBar::Orientation", o,
NULL);
gtk_signal_connect (GTK_OBJECT (canvas), "realize",
(GtkSignalFunc) canvas_bar_realized,
NULL);
/* FIXME: need to set the correct scrolling regions. This will do for now */
if (o == GTK_ORIENTATION_VERTICAL){
w = ROW_HEADER_WIDTH;
h = -1;
gnome_canvas_set_scroll_region (GNOME_CANVAS (canvas), 0, 0, w, 1200000);
} else {
w = -1;
h = COLUMN_HEADER_HEIGHT;
gnome_canvas_set_scroll_region (GNOME_CANVAS (canvas), 0, 0, 1000000, h);
}
gtk_widget_set_usize (canvas, w, h);
group = GNOME_CANVAS_GROUP (GNOME_CANVAS (canvas)->root);
item = gnome_canvas_item_new (group,
item_bar_get_type (),
"ItemBar::SheetView", sheet_view,
"ItemBar::Orientation", o,
NULL);
*itemp = GNOME_CANVAS_ITEM (item);
*itemp = item;
gtk_widget_show (canvas);
return GNOME_CANVAS (canvas);
return GNOME_CANVAS(canvas);
}
/* Manages the scrollbar dimensions and paging parameters. */
......@@ -617,6 +609,7 @@ sheet_view_construct (SheetView *sheet_view)
GTK_FILL,
GTK_EXPAND | GTK_FILL | GTK_SHRINK,
0, 0);
sheet_view_set_zoom_factor (sheet_view, 1.);
}
void
......
......@@ -22,11 +22,6 @@
#include "selection.h"
#include "application.h"
/* Sizes for column/row headers */
#define COLUMN_HEADER_HEIGHT 20
#define ROW_HEADER_WIDTH 50
static GtkTableClass *sheet_view_parent_class;
void
......@@ -173,28 +168,40 @@ sheet_view_set_zoom_factor (SheetView *sheet_view, double factor)
{
GList *l;
GnumericSheet *gsheet;
ItemBar *col_item, *row_item;
int h, w;
g_return_if_fail (sheet_view != NULL);
g_return_if_fail (IS_SHEET_VIEW (sheet_view));
gsheet = GNUMERIC_SHEET (sheet_view->sheet_view);
col_item = ITEM_BAR (sheet_view->col_item);
row_item = ITEM_BAR (sheet_view->row_item);
/* Set pixels_per_unit before the font. The item bars look here for the number */
gnome_canvas_set_pixels_per_unit (GNOME_CANVAS (gsheet), factor);
/* resize the header fonts */
item_bar_fonts_init (ITEM_BAR (sheet_view->col_item));
item_bar_fonts_init (ITEM_BAR (sheet_view->row_item));
item_bar_fonts_init (col_item);
item_bar_fonts_init (row_item);
/*
* Use the size of the bold header font to size the free dimensions
* No need to zoom, the size of the font takes that into consideration.
*/
/* 2 pixels above and below */
h = 2 + 2 + style_font_get_height (col_item->bold_font);
/* 5 pixels left and right plus the width of the widest string I can think of */
w = 5 + 5 + gdk_string_width (style_font_gdk_font (col_item->bold_font), "88888");
gtk_widget_set_usize (GTK_WIDGET (sheet_view->col_canvas),
-1, COLUMN_HEADER_HEIGHT * 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, COLUMN_HEADER_HEIGHT*factor);
1000000*factor, h);
gtk_widget_set_usize (GTK_WIDGET (sheet_view->row_canvas),
ROW_HEADER_WIDTH * factor, -1);
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,
ROW_HEADER_WIDTH*factor, 1200000*factor);
w, 1200000*factor);
/* Recalibrate the starting offsets */
gsheet->col_offset.first =
......@@ -224,40 +231,25 @@ canvas_bar_realized (GtkWidget *widget, gpointer data)
static GnomeCanvas *
new_canvas_bar (SheetView *sheet_view, GtkOrientation o, GnomeCanvasItem **itemp)
{
GnomeCanvasGroup *group;
GnomeCanvasItem *item;
GtkWidget *canvas;
int w, h;
canvas = gnome_canvas_new ();
GtkWidget *canvas =
gnome_canvas_new ();
GnomeCanvasGroup *group =
GNOME_CANVAS_GROUP (GNOME_CANVAS (canvas)->root);
GnomeCanvasItem *item =
gnome_canvas_item_new (group,
item_bar_get_type (),
"ItemBar::SheetView", sheet_view,
"ItemBar::Orientation", o,
NULL);
gtk_signal_connect (GTK_OBJECT (canvas), "realize",
(GtkSignalFunc) canvas_bar_realized,
NULL);
/* FIXME: need to set the correct scrolling regions. This will do for now */
if (o == GTK_ORIENTATION_VERTICAL){
w = ROW_HEADER_WIDTH;
h = -1;
gnome_canvas_set_scroll_region (GNOME_CANVAS (canvas), 0, 0, w, 1200000);
} else {
w = -1;
h = COLUMN_HEADER_HEIGHT;
gnome_canvas_set_scroll_region (GNOME_CANVAS (canvas), 0, 0, 1000000, h);
}
gtk_widget_set_usize (canvas, w, h);
group = GNOME_CANVAS_GROUP (GNOME_CANVAS (canvas)->root);
item = gnome_canvas_item_new (group,
item_bar_get_type (),
"ItemBar::SheetView", sheet_view,
"ItemBar::Orientation", o,
NULL);
*itemp = GNOME_CANVAS_ITEM (item);
*itemp = item;
gtk_widget_show (canvas);
return GNOME_CANVAS (canvas);
return GNOME_CANVAS(canvas);
}
/* Manages the scrollbar dimensions and paging parameters. */
......@@ -617,6 +609,7 @@ sheet_view_construct (SheetView *sheet_view)
GTK_FILL,
GTK_EXPAND | GTK_FILL | GTK_SHRINK,
0, 0);
sheet_view_set_zoom_factor (sheet_view, 1.);
}
void
......
......@@ -97,9 +97,10 @@ col_row_info_init (ColRowInfo *cri, double points)
static void
sheet_init_default_styles (Sheet *sheet)
{
/* Sizes seem to match excel */
col_row_info_init (&sheet->cols.default_style, 40.);
col_row_info_init (&sheet->rows.default_style, 9.);
col_row_info_init (&sheet->cols.default_style,
gdk_string_width (style_font_gdk_font (gnumeric_default_font), "n") *
8.43 /* characters */ );
col_row_info_init (&sheet->rows.default_style, 12.75);
}
/* Initialize some of the columns and rows, to test the display engine */
......@@ -3144,12 +3145,13 @@ sheet_insert_object (Sheet *sheet, char *goadid)
}
void
sheet_set_selection (Sheet *sheet, SheetSelection const *ss)
sheet_set_selection (Sheet *sheet, int base_col, int base_row,
SheetSelection const *ss)
{
GList *l = sheet->sheet_views;
for (; l != NULL; l = l->next) {
GnumericSheet *gsheet = GNUMERIC_SHEET_VIEW (l->data);
gnumeric_sheet_set_selection (gsheet, ss);
gnumeric_sheet_set_selection (gsheet, base_col, base_row, ss);
}
}
......
......@@ -265,7 +265,9 @@ void sheet_col_set_selection (Sheet *sheet,
ColRowInfo *ci, int value);
void sheet_row_set_selection (Sheet *sheet,
ColRowInfo *ri, int value);
void sheet_set_selection (Sheet *sheet, SheetSelection const *ss);
void sheet_set_selection (Sheet *sheet,
int base_col, int base_row,
SheetSelection const *ss);
void sheet_row_col_visible (Sheet *sheet, gboolean const is_col,
gboolean const visible,
......
......@@ -421,6 +421,9 @@ color_hash (gconstpointer v)
static void
font_init (void)
{
/* NOTE : these fonts are NOT scaled by resolution.
* The size of the default rows and columns depend on that.
*/
gnumeric_default_font = style_font_new_simple (DEFAULT_FONT, DEFAULT_SIZE, 1.0, FALSE, FALSE);
if (!gnumeric_default_font) {
......
......@@ -24,6 +24,6 @@ libwidgets_a_SOURCES = \
widget-font-selector.c \
widget-font-selector.h \
gnumeric-dashed-canvas-line.c \
gnumeric-dashed-canvas-line.h \
gtk-combo-text.c \
gtk-combo-text.h
gnumeric-dashed-canvas-line.h \
gtk-combo-text.c \
gtk-combo-text.h
......@@ -2137,7 +2137,7 @@ change_displayed_zoom_cb (GtkObject *caller, Sheet* sheet, gpointer data)
g_return_if_fail (combo = WORKBOOK (caller)->priv->zoom_entry);
str = g_strdup_printf("%d", factor);
str = g_strdup_printf("%d%%", factor);
gtk_entry_set_text (GTK_ENTRY (GTK_COMBO_TEXT (combo)->entry),
str);
......@@ -2169,17 +2169,14 @@ workbook_standard_toolbar_orient (GtkToolbar *toolbar,
static GtkWidget *
workbook_create_standard_toobar (Workbook *wb)
{
#define NUM_PRESET_ZOOM 5
#define DEF_PRESET_ZOOM 1
static struct {
char const * const name;
char const * const factor;
} preset_zoom[NUM_PRESET_ZOOM] = {
{ "200%", "200" },
{ "100%", "100" },
{ "75%", "75" },
{ "50%", "50" },
{ "25%", "25" },
char const * const preset_zoom[] =
{
"200%",
"100%",
"75%",
"50%",
"25%",
NULL
};
int i, len;
......@@ -2211,12 +2208,9 @@ workbook_create_standard_toobar (Workbook *wb)
gtk_widget_set_usize (entry, len, 0);
/* Preset values */
for (i = 0; i < NUM_PRESET_ZOOM; i++)
{
for (i = 0; preset_zoom[i] != NULL ; ++i)
gtk_combo_text_add_item(GTK_COMBO_TEXT (zoom),
preset_zoom[i].name,
preset_zoom[i].factor);
}
preset_zoom[i], preset_zoom[i]);
/* Add it to the toolbar */
gtk_widget_show (zoom);
......@@ -2229,8 +2223,6 @@ workbook_create_standard_toobar (Workbook *wb)
GTK_SIGNAL_FUNC (&workbook_standard_toolbar_orient), wb);
return toolbar;
#undef NUM_PRESET_ZOOM
#undef DEF_PRESET_ZOOM
}
static void
......
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