Commit 02d58ba6 authored by Arturo Espinosa's avatar Arturo Espinosa

Style change updates -miguel

parent ebf20bdd
1999-11-07 Miguel de Icaza <miguel@gnu.org>
* src/workbook.c (workbook_new): coding style requires a space
before an opening parenthesis.
1999-11-09 Michael Meeks <mmeeks@gnu.org>
* doc/features.txt: Added, please expand.
......@@ -221,6 +226,7 @@
(cb_fmt_dialog_dialog_apply) : Call sheet_selection_height_update if
the font changed.
>>>>>>> 1.968
1999-11-06 Jody Goldberg <jgoldberg@home.com>
* src/sheet-view.c (sheet_view_set_zoom_factor) : Smaill patch from
......
1999-11-07 Miguel de Icaza <miguel@gnu.org>
* src/workbook.c (workbook_new): coding style requires a space
before an opening parenthesis.
1999-11-09 Michael Meeks <mmeeks@gnu.org>
* doc/features.txt: Added, please expand.
......@@ -221,6 +226,7 @@
(cb_fmt_dialog_dialog_apply) : Call sheet_selection_height_update if
the font changed.
>>>>>>> 1.968
1999-11-06 Jody Goldberg <jgoldberg@home.com>
* src/sheet-view.c (sheet_view_set_zoom_factor) : Smaill patch from
......
This diff is collapsed.
......@@ -17,39 +17,39 @@ struct LineDotPattern {
static unsigned char dashed_pattern[] = { 3, 1 };
static struct LineDotPattern dashed_line =
{ sizeof(dashed_pattern), dashed_pattern };
{ sizeof (dashed_pattern), dashed_pattern };
static unsigned char med_dashed_pattern[] = { 9, 3 };
static struct LineDotPattern med_dashed_line =
{ sizeof(med_dashed_pattern), med_dashed_pattern };
{ sizeof (med_dashed_pattern), med_dashed_pattern };
static unsigned char dotted_pattern[] = { 2, 2 };
static struct LineDotPattern dotted_line =
{ sizeof(dotted_pattern), dotted_pattern };
{ sizeof (dotted_pattern), dotted_pattern };
static unsigned char hair_pattern[] = { 1, 1 };
static struct LineDotPattern hair_line =
{ sizeof(hair_pattern), hair_pattern };
{ sizeof (hair_pattern), hair_pattern };
static unsigned char dash_dot_pattern[] = { 8, 3, 3, 3 };
static struct LineDotPattern dash_dot_line =
{ sizeof(dash_dot_pattern), dash_dot_pattern };
{ sizeof (dash_dot_pattern), dash_dot_pattern };
static unsigned char med_dash_dot_pattern[] = { 9, 3, 3, 3 };
static struct LineDotPattern med_dash_dot_line =
{ sizeof(med_dash_dot_pattern), med_dash_dot_pattern };
{ sizeof (med_dash_dot_pattern), med_dash_dot_pattern };
static unsigned char dash_dot_dot_pattern[] = { 3, 3, 9, 3, 3, 3 };
static struct LineDotPattern dash_dot_dot_line =
{ sizeof(dash_dot_dot_pattern), dash_dot_dot_pattern };
{ sizeof (dash_dot_dot_pattern), dash_dot_dot_pattern };
static unsigned char med_dash_dot_dot_pattern[] = { 3, 3, 3, 3, 9, 3 };
static struct LineDotPattern med_dash_dot_dot_line =
{ sizeof(med_dash_dot_dot_pattern), med_dash_dot_dot_pattern };
{ sizeof (med_dash_dot_dot_pattern), med_dash_dot_dot_pattern };
static unsigned char slant_pattern[] = { 11, 1, 5, 1 };
static struct LineDotPattern slant_line =
{ sizeof(slant_pattern), slant_pattern };
{ sizeof (slant_pattern), slant_pattern };
struct {
gint const width;
......
......@@ -1000,7 +1000,7 @@ cell_get_span (Cell *cell, int *col1, int *col2)
sibling = sheet_cell_get (sheet, pos, row);
if (!cell_is_blank(sibling))
if (!cell_is_blank (sibling))
return;
ci = sheet_col_get_info (sheet, pos);
......@@ -1028,7 +1028,7 @@ cell_get_span (Cell *cell, int *col1, int *col2)
sibling = sheet_cell_get (sheet, pos, row);
if (!cell_is_blank(sibling))
if (!cell_is_blank (sibling))
return;
ci = sheet_col_get_info (sheet, pos);
......@@ -1063,7 +1063,7 @@ cell_get_span (Cell *cell, int *col1, int *col2)
if (*col1 - 1 >= 0){
left_sibling = sheet_cell_get (sheet, *col1 - 1, row);
if (!cell_is_blank(left_sibling))
if (!cell_is_blank (left_sibling))
left_left = 0;
else {
ci = sheet_col_get_info (sheet, *col1 - 1);
......@@ -1079,7 +1079,7 @@ cell_get_span (Cell *cell, int *col1, int *col2)
if (*col2 + 1 < SHEET_MAX_COLS-1){
right_sibling = sheet_cell_get (sheet, *col2 + 1, row);
if (!cell_is_blank(right_sibling))
if (!cell_is_blank (right_sibling))
left_right = 0;
else {
ci = sheet_col_get_info (sheet, *col2 + 1);
......@@ -1229,7 +1229,7 @@ cell_calc_dimensions (Cell *cell)
* cell_get_text:
* @cell: the cell to fetch the text from.
*
* Returns a g_malloced() version of the contents of the cell. It will
* Returns a g_malloced () version of the contents of the cell. It will
* return a formula if it is a formula, or a string value rendered with the
* current format.
*
......@@ -1311,7 +1311,7 @@ cell_get_comment (Cell *cell)
}
gboolean
cell_is_blank(Cell *cell)
cell_is_blank (Cell *cell)
{
if (cell == NULL || cell->value == NULL ||
cell->value->type == VALUE_EMPTY)
......
......@@ -452,15 +452,15 @@ x_clipboard_bind_workbook (Workbook *wb)
gtk_signal_connect (
GTK_OBJECT (wb->toplevel), "selection_clear_event",
GTK_SIGNAL_FUNC(x_selection_clear), wb);
GTK_SIGNAL_FUNC (x_selection_clear), wb);
gtk_signal_connect (
GTK_OBJECT (wb->toplevel), "selection_received",
GTK_SIGNAL_FUNC(x_selection_received), wb);
GTK_SIGNAL_FUNC (x_selection_received), wb);
gtk_signal_connect (
GTK_OBJECT (wb->toplevel), "selection_get",
GTK_SIGNAL_FUNC(x_selection_handler), NULL);
GTK_SIGNAL_FUNC (x_selection_handler), NULL);
gtk_selection_add_target (
wb->toplevel,
......
......@@ -60,7 +60,7 @@ callback_function_collect (const EvalPosition *ep, Value *value, void *closure)
if (cl->flags & COLLECT_DATES) {
x = get_serial_date (value);
if (x == 0)
return value_new_error(ep, gnumeric_err_VALUE);
return value_new_error (ep, gnumeric_err_VALUE);
} else if (cl->flags & COLLECT_IGNORE_STRINGS)
return NULL;
else if (cl->flags & COLLECT_ZERO_STRINGS)
......@@ -125,7 +125,7 @@ collect_floats (GList *exprlist, const EvalPosition *ep, CollectFlags flags,
g_assert (err->type == VALUE_ERROR);
g_free (cl.data);
/* Be careful not to make value_terminate into a real value */
*error = (err != value_terminate())? value_duplicate(err) : err;
*error = (err != value_terminate ())? value_duplicate (err) : err;
return NULL;
}
......@@ -171,7 +171,7 @@ float_range_function (GList *exprlist, FunctionEvalInfo *ei,
vals = collect_floats (exprlist, &ei->pos, flags, &n, &error);
if (!vals)
return (error != value_terminate()) ? error : NULL;
return (error != value_terminate ()) ? error : NULL;
err = func (vals, n, &res);
g_free (vals);
......
......@@ -308,7 +308,7 @@ grid_view_activate (GridView *grid_view)
/* gtk_signal_emit_by_name (GTK_OBJECT (grid_view->view.plug), "set_focus",
grid_view->sheet_view->sheet_view);*/
gnome_view_activate_notify(GNOME_VIEW(grid_view), TRUE);
gnome_view_activate_notify (GNOME_VIEW (grid_view), TRUE);
}
GnomeView *
......
......@@ -544,13 +544,13 @@ eval_funcall (FunctionEvalInfo *s, ExprTree const *tree)
else if (a.row == b.row) {
int const c = s->pos.eval_col;
if (a.col <= c && c <= b.col)
v = value_duplicate(value_area_get_x_y (&s->pos, v, c - a.col, 0));
v = value_duplicate (value_area_get_x_y (&s->pos, v, c - a.col, 0));
else
type_mismatch = TRUE;
} else if (a.col == b.col) {
int const r = s->pos.eval_row;
if (a.row <= r && r <= b.row)
v = value_duplicate(value_area_get_x_y (&s->pos, v, 0, r - a.row));
v = value_duplicate (value_area_get_x_y (&s->pos, v, 0, r - a.row));
else
type_mismatch = TRUE;
} else
......@@ -960,31 +960,31 @@ eval_expr_real (FunctionEvalInfo *s, ExprTree const *tree)
abort ();
}
} else {
float_t const va = value_get_as_float(a);
float_t const vb = value_get_as_float(b);
float_t const va = value_get_as_float (a);
float_t const vb = value_get_as_float (b);
value_release (a);
value_release (b);
switch (tree->oper){
case OPER_ADD:
return value_new_float(va + vb);
return value_new_float (va + vb);
case OPER_SUB:
return value_new_float(va - vb);
return value_new_float (va - vb);
case OPER_MULT:
return value_new_float(va * vb);
return value_new_float (va * vb);
case OPER_DIV:
return (vb == 0.0)
? value_new_error (&s->pos,
gnumeric_err_DIV0)
: value_new_float(va / vb);
: value_new_float (va / vb);
case OPER_EXP:
if (va == 0 && vb <= 0)
return value_new_error (&s->pos, gnumeric_err_NUM);
return value_new_float(pow(va, vb));
return value_new_float (pow (va, vb));
default:
break;
......@@ -1144,7 +1144,7 @@ eval_expr (FunctionEvalInfo *s, ExprTree const *tree)
}
int
cell_ref_get_abs_col(CellRef const *ref, EvalPosition const *pos)
cell_ref_get_abs_col (CellRef const *ref, EvalPosition const *pos)
{
g_return_val_if_fail (ref != NULL, 0);
g_return_val_if_fail (pos != NULL, 0);
......@@ -1156,7 +1156,7 @@ cell_ref_get_abs_col(CellRef const *ref, EvalPosition const *pos)
}
int
cell_ref_get_abs_row(CellRef const *ref, EvalPosition const *pos)
cell_ref_get_abs_row (CellRef const *ref, EvalPosition const *pos)
{
g_return_val_if_fail (ref != NULL, 0);
g_return_val_if_fail (pos != NULL, 0);
......
......@@ -261,7 +261,7 @@ workbook_import (Workbook *parent, const char *filename)
dialog = gnome_dialog_new ("Import File", GNOME_STOCK_BUTTON_OK,
GNOME_STOCK_BUTTON_CANCEL, NULL);
gtk_widget_reparent (contents, GTK_WIDGET (GNOME_DIALOG(dialog)->vbox));
gtk_widget_reparent (contents, GTK_WIDGET (GNOME_DIALOG (dialog)->vbox));
gtk_widget_show (contents);
/* End of hack */
......@@ -283,12 +283,13 @@ workbook_import (Workbook *parent, const char *filename)
text [0] = fo->format_description;
gtk_clist_append (clist, text);
gtk_clist_set_row_data (clist, row, l->data);
if (row == 0) gtk_clist_select_row(clist, 0, 0);
if (row == 0)
gtk_clist_select_row (clist, 0, 0);
row++;
}
gtk_widget_grab_focus (GTK_WIDGET(clist));
gtk_widget_grab_focus (GTK_WIDGET (clist));
ret = gnome_dialog_run (GNOME_DIALOG (dialog));
......@@ -384,7 +385,7 @@ fill_save_menu (GtkOptionMenu *omenu, GtkMenu *menu)
selected = i;
gtk_signal_connect (GTK_OBJECT (menu_item), "activate",
GTK_SIGNAL_FUNC(saver_activate), fs);
GTK_SIGNAL_FUNC (saver_activate), fs);
}
gtk_option_menu_set_menu (GTK_OPTION_MENU (omenu), GTK_WIDGET (menu));
......
......@@ -398,7 +398,7 @@ format_compile (StyleFormat *format)
}
static void
style_entry_free(gpointer data, gpointer user_data)
style_entry_free (gpointer data, gpointer user_data)
{
StyleFormatEntry *entry = data;
......@@ -731,11 +731,11 @@ format_add_thousand (const char *format_string)
if (strcmp (format_string, "General") == 0){
char *s = g_strdup ("#!##0");
s [1] = THOUSAND_CHAR_OF_LC(lc);
s [1] = THOUSAND_CHAR_OF_LC (lc);
return s;
}
if (strchr (format_string, THOUSAND_CHAR_OF_LC(lc)) != NULL)
if (strchr (format_string, THOUSAND_CHAR_OF_LC (lc)) != NULL)
return NULL;
b = g_malloc (strlen (format_string) + 7);
......@@ -743,7 +743,7 @@ format_add_thousand (const char *format_string)
return NULL;
strcpy (b, "#!##0");
b [1] = THOUSAND_CHAR_OF_LC(lc);
b [1] = THOUSAND_CHAR_OF_LC (lc);
strcpy (&b[5], format_string);
......@@ -867,7 +867,7 @@ format_add_decimal (const char *format_string)
if (!p){
char ret_val [3];
ret_val [0] = DECIMAL_CHAR_OF_LC(lc);
ret_val [0] = DECIMAL_CHAR_OF_LC (lc);
ret_val [1] = '0';
ret_val [2] = 0;
return g_strdup (ret_val);
......
......@@ -43,7 +43,7 @@ iterate_cellrange_callback (Sheet *sheet, int col, int row,
cell_eval (cell);
/* If we encounter an error for the strict case, short-circuit here. */
if (data->strict && (NULL != (res = cell_is_error(cell))))
if (data->strict && (NULL != (res = cell_is_error (cell))))
return res;
/* All other cases -- including error -- just call the handler. */
......@@ -249,11 +249,12 @@ tokenized_help_destroy (TokenizedHelp *tok)
}
static gint
function_category_compare(gconstpointer a, gconstpointer b)
function_category_compare (gconstpointer a, gconstpointer b)
{
FunctionCategory const *cat_a = a;
FunctionCategory const *cat_b = b;
return g_strcasecmp(cat_a->name, cat_b->name);
return g_strcasecmp (cat_a->name, cat_b->name);
}
FunctionCategory *
......@@ -262,11 +263,12 @@ function_get_category (gchar const *description)
FunctionCategory *cat;
FunctionCategory tmp;
g_return_val_if_fail(description != NULL, NULL);
g_return_val_if_fail (description != NULL, NULL);
tmp.name = description;
cat = (FunctionCategory *)g_list_find_custom(categories, &tmp,
&function_category_compare);
cat = (FunctionCategory *)
g_list_find_custom (categories, &tmp,
&function_category_compare);
if (cat != NULL)
return cat;
......@@ -274,8 +276,8 @@ function_get_category (gchar const *description)
cat = g_new (FunctionCategory, 1);
cat->name = description;
cat->functions = NULL;
categories = g_list_insert_sorted(categories, cat,
&function_category_compare);
categories = g_list_insert_sorted (
categories, cat, &function_category_compare);
return cat;
}
......@@ -434,15 +436,16 @@ function_call_with_values (const EvalPosition *ep, const char *name,
void
functions_init (void)
{
math_functions_init();
sheet_functions_init();
date_functions_init();
string_functions_init();
stat_functions_init();
finance_functions_init();
eng_functions_init();
lookup_functions_init();
logical_functions_init();
database_functions_init();
information_functions_init();
math_functions_init ();
sheet_functions_init ();
date_functions_init ();
string_functions_init ();
stat_functions_init ();
finance_functions_init ();
eng_functions_init ();
lookup_functions_init ();
logical_functions_init ();
database_functions_init ();
information_functions_init ();
}
......@@ -196,12 +196,14 @@ static void
move_cursor_horizontal (GnumericSheet *gsheet, int count, gboolean jump_to_boundaries)
{
Sheet *sheet = gsheet->sheet_view->sheet;
int const new_col =
sheet_find_boundary_horizontal (sheet,
sheet->cursor_col,
sheet->cursor_row,
count, jump_to_boundaries);
move_cursor (gsheet, new_col, CURSOR_ROW(gsheet), TRUE);
int const new_col;
new_col = sheet_find_boundary_horizontal (
sheet,
sheet->cursor_col,
sheet->cursor_row,
count, jump_to_boundaries);
move_cursor (gsheet, new_col, CURSOR_ROW (gsheet), TRUE);
}
static void
......@@ -348,7 +350,7 @@ gnumeric_sheet_create_editing_cursor (GnumericSheet *gsheet)
col = sheet->cursor_col;
row = sheet->cursor_row;
item = gnome_canvas_item_new (GNOME_CANVAS_GROUP(canvas->root),
item = gnome_canvas_item_new (GNOME_CANVAS_GROUP (canvas->root),
item_edit_get_type (),
"ItemEdit::Sheet", sheet,
"ItemEdit::Grid", gsheet->item_grid,
......@@ -763,7 +765,7 @@ gnumeric_sheet_key_mode_sheet (GnumericSheet *gsheet, GdkEventKey *event)
sheet_cursor_move (sheet, 0, 0, TRUE, TRUE);
break;
} else
(*movefn_horizontal)(gsheet, -CURSOR_COL(gsheet), FALSE);
(*movefn_horizontal)(gsheet, -CURSOR_COL (gsheet), FALSE);
break;
case GDK_KP_Delete:
......
......@@ -196,12 +196,14 @@ static void
move_cursor_horizontal (GnumericSheet *gsheet, int count, gboolean jump_to_boundaries)
{
Sheet *sheet = gsheet->sheet_view->sheet;
int const new_col =
sheet_find_boundary_horizontal (sheet,
sheet->cursor_col,
sheet->cursor_row,
count, jump_to_boundaries);
move_cursor (gsheet, new_col, CURSOR_ROW(gsheet), TRUE);
int const new_col;
new_col = sheet_find_boundary_horizontal (
sheet,
sheet->cursor_col,
sheet->cursor_row,
count, jump_to_boundaries);
move_cursor (gsheet, new_col, CURSOR_ROW (gsheet), TRUE);
}
static void
......@@ -348,7 +350,7 @@ gnumeric_sheet_create_editing_cursor (GnumericSheet *gsheet)
col = sheet->cursor_col;
row = sheet->cursor_row;
item = gnome_canvas_item_new (GNOME_CANVAS_GROUP(canvas->root),
item = gnome_canvas_item_new (GNOME_CANVAS_GROUP (canvas->root),
item_edit_get_type (),
"ItemEdit::Sheet", sheet,
"ItemEdit::Grid", gsheet->item_grid,
......@@ -763,7 +765,7 @@ gnumeric_sheet_key_mode_sheet (GnumericSheet *gsheet, GdkEventKey *event)
sheet_cursor_move (sheet, 0, 0, TRUE, TRUE);
break;
} else
(*movefn_horizontal)(gsheet, -CURSOR_COL(gsheet), FALSE);
(*movefn_horizontal)(gsheet, -CURSOR_COL (gsheet), FALSE);
break;
case GDK_KP_Delete:
......
......@@ -239,7 +239,7 @@ gnumeric_create_tooltip (void)
if (rc_style == NULL) {
int i;
rc_style = gtk_rc_style_new();
rc_style = gtk_rc_style_new ();
for (i = 5; --i >= 0 ; ) {
rc_style->color_flags[i] = GTK_RC_BG;
......
......@@ -239,7 +239,7 @@ gnumeric_create_tooltip (void)
if (rc_style == NULL) {
int i;
rc_style = gtk_rc_style_new();
rc_style = gtk_rc_style_new ();
for (i = 5; --i >= 0 ; ) {
rc_style->color_flags[i] = GTK_RC_BG;
......
......@@ -105,8 +105,8 @@ item_bar_unrealize (GnomeCanvasItem *item)
static void
item_bar_update (GnomeCanvasItem *item, double *affine, ArtSVP *clip_path, int flags)
{
if (GNOME_CANVAS_ITEM_CLASS(item_bar_parent_class)->update)
(*GNOME_CANVAS_ITEM_CLASS(item_bar_parent_class)->update)(item, affine, clip_path, flags);
if (GNOME_CANVAS_ITEM_CLASS (item_bar_parent_class)->update)
(*GNOME_CANVAS_ITEM_CLASS (item_bar_parent_class)->update)(item, affine, clip_path, flags);
item->x1 = 0;
item->y1 = 0;
......@@ -305,9 +305,9 @@ set_cursor (ItemBar *item_bar, int pos)
return;
if (is_pointer_on_division (item_bar, pos, NULL, NULL))
gdk_window_set_cursor(canvas->window, item_bar->change_cursor);
gdk_window_set_cursor (canvas->window, item_bar->change_cursor);
else
gdk_window_set_cursor(canvas->window, item_bar->normal_cursor);
gdk_window_set_cursor (canvas->window, item_bar->normal_cursor);
}
/*
......@@ -690,7 +690,7 @@ item_bar_class_init (ItemBarClass *item_bar_class)
GtkObjectClass *object_class;
GnomeCanvasItemClass *item_class;
item_bar_parent_class = gtk_type_class (gnome_canvas_item_get_type());
item_bar_parent_class = gtk_type_class (gnome_canvas_item_get_type ());
object_class = (GtkObjectClass *) item_bar_class;
item_class = (GnomeCanvasItemClass *) item_bar_class;
......
......@@ -856,7 +856,7 @@ item_cursor_class_init (ItemCursorClass *item_cursor_class)
GtkObjectClass *object_class;
GnomeCanvasItemClass *item_class;
item_cursor_parent_class = gtk_type_class (gnome_canvas_item_get_type());
item_cursor_parent_class = gtk_type_class (gnome_canvas_item_get_type ());
object_class = (GtkObjectClass *) item_cursor_class;
item_class = (GnomeCanvasItemClass *) item_cursor_class;
......
......@@ -233,10 +233,10 @@ item_edit_set_editor (ItemEdit *item_edit, void *data)
item_edit->editor = GTK_WIDGET (data);
item_edit->signal = gtk_signal_connect (
GTK_OBJECT (item_edit->editor), "changed",
GTK_SIGNAL_FUNC(entry_changed), item_edit);
GTK_SIGNAL_FUNC (entry_changed), item_edit);
item_edit->signal2 = gtk_signal_connect_after (
GTK_OBJECT (item_edit->editor), "event",
GTK_SIGNAL_FUNC(entry_event), item_edit);
GTK_SIGNAL_FUNC (entry_event), item_edit);
}
static void
......@@ -280,7 +280,7 @@ item_edit_class_init (ItemEditClass *item_edit_class)
GtkObjectClass *object_class;
GnomeCanvasItemClass *item_class;
item_edit_parent_class = gtk_type_class (gnome_canvas_item_get_type());
item_edit_parent_class = gtk_type_class (gnome_canvas_item_get_type ());
object_class = (GtkObjectClass *) item_edit_class;
item_class = (GnomeCanvasItemClass *) item_edit_class;
......
......@@ -735,14 +735,14 @@ create_popup_menu (Sheet *sheet,
if ((type == IG_PASTE && !include_paste) ||
(type == IG_PASTE_SPECIAL && !include_paste_special) ||
item_grid_context_menu [i].fn == NULL)
gtk_widget_set_sensitive(GTK_WIDGET (item), FALSE);
gtk_widget_set_sensitive (GTK_WIDGET (item), FALSE);
if (pix_name != NULL) {
GtkWidget *pixmap =
gnome_stock_pixmap_widget (GTK_WIDGET (item),
pix_name);
gtk_widget_show (pixmap);
gtk_pixmap_menu_item_set_pixmap(
gtk_pixmap_menu_item_set_pixmap (
GTK_PIXMAP_MENU_ITEM (item),
pixmap);
}
......@@ -771,7 +771,7 @@ item_grid_popup_menu (Sheet *sheet, GdkEvent *event, int col, int row,
gboolean const show_paste = !application_clipboard_is_empty ();
/* Paste special only applies to copied cells not cut */
gboolean const show_paste_special = show_paste &&
(application_clipboard_contents_get() != NULL);
(application_clipboard_contents_get () != NULL);
menu = create_popup_menu (sheet, show_paste, show_paste_special,
is_col, is_row);
......@@ -1177,7 +1177,7 @@ item_grid_class_init (ItemGridClass *item_grid_class)
GtkObjectClass *object_class;
GnomeCanvasItemClass *item_class;
item_grid_parent_class = gtk_type_class (gnome_canvas_item_get_type());
item_grid_parent_class = gtk_type_class (gnome_canvas_item_get_type ());
object_class = (GtkObjectClass *) item_grid_class;
item_class = (GnomeCanvasItemClass *) item_grid_class;
......
......@@ -165,14 +165,14 @@ gnumeric_main (void *closure, int argc, char *argv [])
int
main (int argc, char *argv [])
{
scm_boot_guile(argc, argv, gnumeric_main, 0);
scm_boot_guile (argc, argv, gnumeric_main, 0);
return 0;
}
#else
int
main (int argc, char *argv [])
{
gnumeric_main(0, argc, argv);
gnumeric_main (0, argc, argv);
return 0;
}
#endif
......@@ -165,14 +165,14 @@ gnumeric_main (void *closure, int argc, char *argv [])
int
main (int argc, char *argv [])
{
scm_boot_guile(argc, argv, gnumeric_main, 0);
scm_boot_guile (argc, argv, gnumeric_main, 0);
return 0;
}
#else
int
main (int argc, char *argv [])
{
gnumeric_main(0, argc, argv);
gnumeric_main (0, argc, argv);
return 0;
}
#endif
......@@ -595,7 +595,7 @@ compute_value (const char *s, const regmatch_t *mp,
* I assume ',' means thousans_sep.
*/
number *= 1000.;
number += strtod(ptr, &ptr);
number += strtod (ptr, &ptr);
} while (*(ptr++) == ',');
idx += 3;
......
......@@ -82,7 +82,7 @@ static void
row_cb (GtkWidget * clist, gint row, gint col,
GdkEvent *event, PluginManager *pm)
{
if (GTK_CLIST(clist)->selection != NULL)
if (GTK_CLIST (clist)->selection != NULL)
gtk_widget_set_sensitive (pm->button_remove, 1);
else
gtk_widget_set_sensitive (pm->button_remove, 0);
......@@ -92,7 +92,7 @@ static gint
pm_key_event (GtkWidget *pm, GdkEventKey *event)
{
if (event->keyval == GDK_Escape) {
gtk_widget_destroy(pm);
gtk_widget_destroy (pm);
return 1;
} else
return 0;
......@@ -116,7 +116,7 @@ plugin_manager_new (Workbook *wb)
pm->hbox = gtk_hbox_new (0, 0);
gtk_container_add (GTK_CONTAINER (pm->dialog), pm->hbox);
pm->scrollwin = gtk_scrolled_window_new(NULL, NULL);
pm->scrollwin = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (pm->scrollwin),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
......@@ -135,7 +135,7 @@ plugin_manager_new (Workbook *wb)
gtk_box_pack_start (GTK_BOX (pm->hbox), pm->vbbox, 0, 0, 5);
pm->button_close = gtk_button_new_with_label (_("Close"));
gtk_container_add (GTK_CONTAINER(pm->vbbox), pm->button_close);
gtk_container_add (GTK_CONTAINER (pm->vbbox), pm->button_close);