From 592403927b0729e5ff416081d9d61ec838996d1a Mon Sep 17 00:00:00 2001 From: Morten Welinder Date: Tue, 24 Apr 2018 20:00:07 -0400 Subject: [PATCH] Whitespace. --- src/cellspan.c | 2 +- src/collect.c | 4 ++-- src/consolidate.c | 8 ++++---- src/dependent.c | 22 +++++++++++----------- src/file-autoft.c | 2 +- src/func.c | 2 +- src/gnm-format.c | 6 +++--- src/gnm-pane.c | 6 +++--- src/gnm-sheet-slicer.c | 6 +++--- src/gnm-so-filled.c | 6 +++--- src/gnm-so-line.c | 2 +- src/gnm-so-path.c | 8 ++++---- src/gnm-so-polygon.c | 2 +- src/go-data-cache-source.c | 2 +- src/go-data-cache.c | 30 +++++++++++++++--------------- src/go-data-slicer-field.c | 6 +++--- src/go-data-slicer.c | 2 +- src/go-val.c | 8 ++++---- src/graph.c | 26 +++++++++++++------------- src/gui-util.c | 2 +- src/input-msg.c | 2 +- src/io-context-gtk.c | 4 ++-- src/item-bar.c | 2 +- src/item-cursor.c | 4 ++-- src/item-grid.c | 14 +++++++------- src/parse-util.c | 2 +- src/parser.y | 10 +++++----- src/preview-grid.c | 6 +++--- src/print-info.c | 6 +++--- src/selection.c | 12 ++++++------ src/sheet-autofill.c | 2 +- src/sheet-filter.c | 22 +++++++++++----------- src/sheet-object-cell-comment.c | 10 +++++----- src/sheet-object-image.c | 2 +- src/sheet-object-widget.c | 10 +++++----- src/sheet-object.c | 2 +- src/sheet-utils.c | 4 ++-- src/sheet-view.c | 14 +++++++------- src/ssconvert.c | 2 +- src/ssdiff.c | 2 +- src/sstest.c | 4 ++-- src/stf-export.c | 2 +- src/stf-parse.c | 4 ++-- src/style-border.c | 4 ++-- src/style-conditions.c | 6 +++--- src/validation.c | 4 ++-- src/wbc-gtk-actions.c | 8 ++++---- src/wbc-gtk.c | 8 ++++---- src/workbook-view.c | 2 +- src/xml-sax-read.c | 6 +++--- src/xml-sax-write.c | 12 ++++++------ 51 files changed, 172 insertions(+), 172 deletions(-) diff --git a/src/cellspan.c b/src/cellspan.c index 0a472c6bb..a5166dcee 100644 --- a/src/cellspan.c +++ b/src/cellspan.c @@ -177,7 +177,7 @@ cell_span_info_get_type (void) } /** - * cellspan_is_empty : + * cellspan_is_empty: * * Utility to ensure that a cell is completely empty. * - no spans diff --git a/src/collect.c b/src/collect.c index efb4e1e1b..e907b13bc 100644 --- a/src/collect.c +++ b/src/collect.c @@ -340,8 +340,8 @@ callback_function_collect (GnmEvalPos const *ep, GnmValue const *value, return value_new_error_VALUE (ep); break; - case VALUE_CELLRANGE : - case VALUE_ARRAY : + case VALUE_CELLRANGE: + case VALUE_ARRAY: /* Ranges and arrays are not singleton values treat as errors */ case VALUE_ERROR: diff --git a/src/consolidate.c b/src/consolidate.c index dae223e4e..50a8b6034 100644 --- a/src/consolidate.c +++ b/src/consolidate.c @@ -90,7 +90,7 @@ cb_value_compare (GnmValue const *a, GnmValue const *b) case IS_LESS: return -1; case IS_GREATER: return 1; case TYPE_MISMATCH: return 1; /* Push time mismatches to the end */ - default : + default: g_warning ("Unknown value comparison result"); } @@ -287,7 +287,7 @@ tree_free (GTree *tree) * B 1 * A 1 * - * This will be put in the tree like : + * This will be put in the tree like: * A 2 * B 1 * @@ -462,11 +462,11 @@ key_list_get (GnmConsolidate *cs, gboolean is_cols) * the region dst using the function "fd" on all the overlapping * src regions. * - * Example : + * Example: * function is : SUM * src contains : A1:B2 (4 cells containing all 1's) and A3:B4 (4 cells containing all 2's). * - * The consolidated result will be : + * The consolidated result will be: * 3 3 * 3 3 * diff --git a/src/dependent.c b/src/dependent.c index 652a25f91..13d7fe37f 100644 --- a/src/dependent.c +++ b/src/dependent.c @@ -344,7 +344,7 @@ dependent_types_shutdown (void) } /** - * dependent_register_type : + * dependent_register_type: * @klass: A vtable * * Store the vtable and allocate an ID for a new class @@ -523,7 +523,7 @@ dependent_queue_recalc_main (GSList *work) /** - * dependent_queue_recalc_list : + * dependent_queue_recalc_list: * @list: * * Queues any elements of @list for recalc that are not already queued, @@ -1661,7 +1661,7 @@ gnm_cell_eval_content (GnmCell *cell) */ max_iteration = cell->base.sheet->workbook->iteration.max_number; -iterate : +iterate: v = gnm_expr_top_eval (cell->base.texpr, &pos, GNM_EXPR_EVAL_SCALAR_NON_EMPTY); if (v == NULL) @@ -1735,7 +1735,7 @@ iterate : } /** - * dependent_eval : + * dependent_eval: * @dep: */ static void @@ -1772,7 +1772,7 @@ gnm_cell_eval (GnmCell *cell) /** - * cell_queue_recalc : + * cell_queue_recalc: * @cell: * * Queue the cell and everything that depends on it for recalculation. @@ -1998,7 +1998,7 @@ typedef struct } ExprRelocateStorage; /** - * dependents_unrelocate_free : + * dependents_unrelocate_free: * @info: * * Free the undo info associated with a dependent relocation. @@ -2016,7 +2016,7 @@ dependents_unrelocate_free (GSList *info) } /** - * dependents_unrelocate : + * dependents_unrelocate: * @info: * * Apply the undo info associated with a dependent relocation. @@ -2850,7 +2850,7 @@ workbook_queue_volatile_recalc (Workbook *wb) /** - * workbook_recalc : + * workbook_recalc: * @wb: * * Computes all dependents in @wb that have been flaged as requiring @@ -2890,7 +2890,7 @@ workbook_recalc (Workbook *wb) } /** - * workbook_recalc_all : + * workbook_recalc_all: * @wb: * * Queues all dependents for recalc and recalculates. @@ -3036,7 +3036,7 @@ dependent_debug_name_for_sheet (GnmDependent const *dep, Sheet *sheet, /** - * dependent_debug_name : + * dependent_debug_name: * @dep: The dependent we are interested in. * * A useful little debugging utility. @@ -3143,7 +3143,7 @@ dump_dynamic_dep (gpointer key, G_GNUC_UNUSED gpointer value, } /** - * gnm_dep_container_dump : + * gnm_dep_container_dump: * @deps: * * A useful utility for checking the state of the dependency data structures. diff --git a/src/file-autoft.c b/src/file-autoft.c index 6f794a11c..7ba9ebb2b 100644 --- a/src/file-autoft.c +++ b/src/file-autoft.c @@ -98,7 +98,7 @@ gnm_ft_category_get_templates_list (GnmFTCategory *category, } /** - * gnm_ft_xml_read_category : + * gnm_ft_xml_read_category: * Open an XML file and read a GnmFTCategory */ static GnmFTCategory * diff --git a/src/func.c b/src/func.c index 59c6ba034..abfb1d0f4 100644 --- a/src/func.c +++ b/src/func.c @@ -1267,7 +1267,7 @@ function_call_with_exprs (GnmFuncEvalInfo *ei) break; /* case '?': handled above */ - default : + default: g_warning ("Unknown argument type '%c'", arg_type); break; } diff --git a/src/gnm-format.c b/src/gnm-format.c index 07748ab98..7e70cd9cc 100644 --- a/src/gnm-format.c +++ b/src/gnm-format.c @@ -196,7 +196,7 @@ gnm_format_layout (PangoLayout *layout, } /** - * format_value_gstring : + * format_value_gstring: * @str: append the result here. * @format: #GOFormat. * @value: #GnmValue to convert @@ -231,11 +231,11 @@ format_value_gstring (GString *str, } /** - * format_value_layout : + * format_value_layout: * @layout: * @format: #GOFormat. * @value: #GnmValue to convert - * col_width : optional + * @col_width: optional limit on width, -1 for unlimited * @date_conv: #GODateConventions. * **/ diff --git a/src/gnm-pane.c b/src/gnm-pane.c index 87aec9d2e..dbb07d8de 100644 --- a/src/gnm-pane.c +++ b/src/gnm-pane.c @@ -358,8 +358,8 @@ gnm_pane_key_mode_sheet (GnmPane *pane, GdkEventKey *kevent, wbcg_set_end_mode (wbcg, !end_mode); break; - case GDK_KEY_KP_Insert : - case GDK_KEY_Insert : + case GDK_KEY_KP_Insert: + case GDK_KEY_Insert: if (gnm_pane_guru_key (wbcg, event)) break; if (state == GDK_CONTROL_MASK) @@ -2509,7 +2509,7 @@ control_point_set_cursor (SheetControlGUI const *scg, GocItem *ctrl_pt) break; case 8: - default : + default: cursor = GDK_FLEUR; } gnm_widget_set_cursor_type (GTK_WIDGET (ctrl_pt->canvas), cursor); diff --git a/src/gnm-sheet-slicer.c b/src/gnm-sheet-slicer.c index 5dccf991b..56fb4674f 100644 --- a/src/gnm-sheet-slicer.c +++ b/src/gnm-sheet-slicer.c @@ -1,6 +1,6 @@ /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* - * gnm-sheet-slicer.c : + * gnm-sheet-slicer.c: * * Copyright (C) 2008-2009 Jody Goldberg (jody@gnome.org) * @@ -237,7 +237,7 @@ gnm_sheet_slicer_set_range (GnmSheetSlicer *gss, GnmRange const *r) } /** - * gnm_sheet_slicer_overlaps_range : + * gnm_sheet_slicer_overlaps_range: * @gss: #GnmSheetSlicer * @r: #GnmRange * @@ -251,7 +251,7 @@ gnm_sheet_slicer_overlaps_range (GnmSheetSlicer const *gss, GnmRange const *r) } /** - * gnm_sheet_slicer_field_header_at_pos : + * gnm_sheet_slicer_field_header_at_pos: * @gss: #GnmSheetSlicer const * @pos: #GnmCellPos const * diff --git a/src/gnm-so-filled.c b/src/gnm-so-filled.c index 36732a1d5..3e46d9f11 100644 --- a/src/gnm-so-filled.c +++ b/src/gnm-so-filled.c @@ -467,16 +467,16 @@ gnm_so_filled_get_property (GObject *obj, guint param_id, case SOF_PROP_IS_OVAL: g_value_set_boolean (value, sof->is_oval); break; - case SOF_PROP_TEXT : + case SOF_PROP_TEXT: g_value_set_string (value, sof->text); break; - case SOF_PROP_MARKUP : + case SOF_PROP_MARKUP: g_value_set_boxed (value, sof->markup); break; case SOF_PROP_DOCUMENT: g_value_set_object (value, sheet_object_get_sheet (GNM_SO (obj))->workbook); break; - default : + default: G_OBJECT_WARN_INVALID_PROPERTY_ID (obj, param_id, pspec); break; } diff --git a/src/gnm-so-line.c b/src/gnm-so-line.c index b5dfdeb68..5e3b4b09c 100644 --- a/src/gnm-so-line.c +++ b/src/gnm-so-line.c @@ -392,7 +392,7 @@ gnm_so_line_get_property (GObject *obj, guint param_id, case SOL_PROP_END_ARROW: g_value_set_boxed (value, &sol->end_arrow); break; - default : + default: G_OBJECT_WARN_INVALID_PROPERTY_ID (obj, param_id, pspec); break; } diff --git a/src/gnm-so-path.c b/src/gnm-so-path.c index 164e02ef1..602ca2836 100644 --- a/src/gnm-so-path.c +++ b/src/gnm-so-path.c @@ -603,19 +603,19 @@ gnm_so_path_get_property (GObject *obj, guint param_id, case SOP_PROP_PATHS: g_value_set_boxed (value, sop->paths); break; - case SOP_PROP_TEXT : + case SOP_PROP_TEXT: g_value_set_string (value, sop->text); break; - case SOP_PROP_MARKUP : + case SOP_PROP_MARKUP: g_value_set_boxed (value, sop->markup); break; - case SOP_PROP_VIEWBOX : + case SOP_PROP_VIEWBOX: g_value_take_string (value, g_strdup_printf ("%0.0f %0.0f %0.0f %0.0f", sop->x_offset, sop->y_offset, sop->width + sop->x_offset, sop->height + sop->y_offset)); break; - default : + default: G_OBJECT_WARN_INVALID_PROPERTY_ID (obj, param_id, pspec); break; } diff --git a/src/gnm-so-polygon.c b/src/gnm-so-polygon.c index a1d5bda0a..365819ef9 100644 --- a/src/gnm-so-polygon.c +++ b/src/gnm-so-polygon.c @@ -251,7 +251,7 @@ gnm_so_polygon_get_property (GObject *obj, guint param_id, case SOP_PROP_DOCUMENT: g_value_set_object (value, sheet_object_get_sheet (GNM_SO (obj))->workbook); break; - default : + default: G_OBJECT_WARN_INVALID_PROPERTY_ID (obj, param_id, pspec); break; } diff --git a/src/go-data-cache-source.c b/src/go-data-cache-source.c index e130aee66..6b44acb36 100644 --- a/src/go-data-cache-source.c +++ b/src/go-data-cache-source.c @@ -1,6 +1,6 @@ /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* - * go-data-cache-source.c : + * go-data-cache-source.c: * * Copyright (C) 2008 Jody Goldberg (jody@gnome.org) * diff --git a/src/go-data-cache.c b/src/go-data-cache.c index 141a73a84..642510318 100644 --- a/src/go-data-cache.c +++ b/src/go-data-cache.c @@ -152,11 +152,11 @@ go_data_cache_set_property (GObject *obj, guint property_id, GODataCache *cache = (GODataCache *)obj; switch (property_id) { - case PROP_REFRESHED_BY : + case PROP_REFRESHED_BY: g_free (cache->refreshed_by); cache->refreshed_by = g_value_dup_string (value); break; - case PROP_REFRESHED_ON : + case PROP_REFRESHED_ON: go_val_free (cache->refreshed_on); cache->refreshed_on = g_value_dup_boxed (value); break; @@ -224,7 +224,7 @@ go_data_cache_get_source (GODataCache const *cache) } /** - * go_data_cache_set_source : + * go_data_cache_set_source: * @cache: #GODataCache * @src: #GODataCacheSource * @@ -256,7 +256,7 @@ go_data_cache_add_field (GODataCache *cache, GODataCacheField *field) } /** - * go_data_cache_import_start : + * go_data_cache_import_start: * @cache:#GODataCache * @n: num records * @@ -342,7 +342,7 @@ go_data_cache_set_val (GODataCache *cache, p = go_data_cache_records_fetch_index (cache, record_num) + f->offset; switch (f->ref_type) { - case GO_DATA_CACHE_FIELD_TYPE_NONE : + case GO_DATA_CACHE_FIELD_TYPE_NONE: g_warning ("attempt to set a value for grouped/calculated field #%d : '%s'", f->indx, f->name->str); return; @@ -355,7 +355,7 @@ go_data_cache_set_val (GODataCache *cache, case GO_DATA_CACHE_FIELD_TYPE_INDEXED_I16 : *((guint16 *)p) = 0; break; case GO_DATA_CACHE_FIELD_TYPE_INDEXED_I32 : *((guint32 *)p) = 0; break; - default : + default: g_warning ("unknown field type %d", f->ref_type); } go_val_free (v); @@ -385,7 +385,7 @@ go_data_cache_set_index (GODataCache *cache, p = go_data_cache_records_fetch_index (cache, record_num) + f->offset; switch (f->ref_type) { - case GO_DATA_CACHE_FIELD_TYPE_NONE : + case GO_DATA_CACHE_FIELD_TYPE_NONE: g_warning ("attempt to get value from grouped/calculated field #%d : '%s'", f->indx, f->name->str); return; @@ -398,13 +398,13 @@ go_data_cache_set_index (GODataCache *cache, case GO_DATA_CACHE_FIELD_TYPE_INDEXED_I16 : *((guint16 *)p) = idx+1; break; case GO_DATA_CACHE_FIELD_TYPE_INDEXED_I32 : *((guint32 *)p) = idx+1; break; - default : + default: g_warning ("unknown field type %d", f->ref_type); } } /** - * go_data_cache_import_done : + * go_data_cache_import_done: * @cache: #GODataCache * @actual_records: count * @@ -456,7 +456,7 @@ go_data_cache_get_index (GODataCache const *cache, case GO_DATA_CACHE_FIELD_TYPE_INDEXED_I8 : return *(guint8 *)p - 1; case GO_DATA_CACHE_FIELD_TYPE_INDEXED_I16 : return *(guint16 *)p - 1; case GO_DATA_CACHE_FIELD_TYPE_INDEXED_I32 : return *(guint32 *)p - 1; - default : + default: g_warning ("unknown field type %d", field->ref_type); } return -1; @@ -484,19 +484,19 @@ cb_go_data_cache_cmp (int const *a, int const * b, pb = go_data_cache_records_index (info->cache, *b) + base->offset; if (base->ref_type != GO_DATA_CACHE_FIELD_TYPE_INLINE) { switch (base->ref_type) { - case GO_DATA_CACHE_FIELD_TYPE_INDEXED_I8 : + case GO_DATA_CACHE_FIELD_TYPE_INDEXED_I8 : idxa = *(guint8 *)pa; idxb = *(guint8 *)pb; break; - case GO_DATA_CACHE_FIELD_TYPE_INDEXED_I16 : + case GO_DATA_CACHE_FIELD_TYPE_INDEXED_I16: idxa = *(guint16 *)pa; idxb = *(guint16 *)pb; break; - case GO_DATA_CACHE_FIELD_TYPE_INDEXED_I32 : + case GO_DATA_CACHE_FIELD_TYPE_INDEXED_I32: idxa = *(guint32 *)pa; idxb = *(guint32 *)pb; break; - default : + default: g_assert_not_reached (); } #warning TODO : compare indicies directly, and pre-order the indexed values @@ -581,7 +581,7 @@ go_data_cache_dump (GODataCache *cache, case GO_DATA_CACHE_FIELD_TYPE_INDEXED_I16 : idx = *(guint16 *)p; break; case GO_DATA_CACHE_FIELD_TYPE_INDEXED_I32 : idx = *(guint32 *)p; break; - default : + default: g_warning ("unknown field type %d", base->ref_type); continue; } diff --git a/src/go-data-slicer-field.c b/src/go-data-slicer-field.c index 09ad0b4a1..7aaf6f0e5 100644 --- a/src/go-data-slicer-field.c +++ b/src/go-data-slicer-field.c @@ -160,7 +160,7 @@ GSF_CLASS (GODataSlicerField, go_data_slicer_field, G_TYPE_OBJECT) /** - * go_data_slicer_field_get_cache_field : + * go_data_slicer_field_get_cache_field: * @dsf: #GODataSlicerField const * * Returns : the underlying cache field @@ -174,7 +174,7 @@ go_data_slicer_field_get_cache_field (GODataSlicerField const *dsf) } /** - * go_data_slicer_field_get_name : + * go_data_slicer_field_get_name: * @dsf: #GODataSlicerField const * * If @dsf has a name return that, otherwise default to the name of the @@ -204,7 +204,7 @@ go_data_slicer_field_get_field_type_pos (GODataSlicerField const *dsf, } /** - * go_data_slicer_field_set_field_type_pos : + * go_data_slicer_field_set_field_type_pos: * @dsf: #GODataSlicerField * @field_type: #GODataSlicerFieldType * @pos: >= len => append, else move ahead of @pos, -1 removes diff --git a/src/go-data-slicer.c b/src/go-data-slicer.c index f57967201..b13d1992d 100644 --- a/src/go-data-slicer.c +++ b/src/go-data-slicer.c @@ -123,7 +123,7 @@ GSF_CLASS (GODataSlicer, go_data_slicer, G_TYPE_OBJECT) /** - * go_data_slicer_get_cache : + * go_data_slicer_get_cache: * @ds: #GODataSlicer * * Does not add a reference. diff --git a/src/go-val.c b/src/go-val.c index d8f1a9d6c..10a7490b0 100644 --- a/src/go-val.c +++ b/src/go-val.c @@ -1,6 +1,6 @@ /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* - * go-val.c : + * go-val.c: * * Copyright (C) 2008 Jody Goldberg (jody@gnome.org) * @@ -76,7 +76,7 @@ go_val_bucketer_validate (GOValBucketer *bucketer) } /** - * go_val_bucketer_apply : + * go_val_bucketer_apply: * @bucketer: #GOValBucketer * @v: #GOVal * @@ -97,9 +97,9 @@ go_val_bucketer_apply (GOValBucketer const *bucketer, GOVal const *v) /* Time based */ if (bucketer->type <= GO_VAL_BUCKET_HOUR) { switch (bucketer->type) { - case GO_VAL_BUCKET_SECOND : + case GO_VAL_BUCKET_SECOND: break; - case GO_VAL_BUCKET_MINUTE : + case GO_VAL_BUCKET_MINUTE: break; default : g_assert_not_reached (); } diff --git a/src/graph.c b/src/graph.c index f5a811036..17fa6549c 100644 --- a/src/graph.c +++ b/src/graph.c @@ -597,11 +597,11 @@ gnm_go_data_vector_load_len (GODataVector *dat) vec->as_col = (vec->val->v_array.y > vec->val->v_array.x); break; } - case VALUE_ERROR : + case VALUE_ERROR: new_len = 0; break; - default : + default: new_len = 1; vec->as_col = TRUE; } @@ -807,7 +807,7 @@ gnm_go_data_vector_load_values (GODataVector *dat) break; } - case VALUE_STRING : + case VALUE_STRING: v = format_match_number (value_peek_string (vec->val), NULL, closure.date_conv); @@ -818,11 +818,11 @@ gnm_go_data_vector_load_values (GODataVector *dat) } /* fall through to errors */ - case VALUE_EMPTY : - case VALUE_ERROR : + case VALUE_EMPTY: + case VALUE_ERROR: minimum = maximum = vals[0] = go_nan; break; - default : + default: minimum = maximum = vals[0] = value_get_as_float (vec->val); break; } @@ -1210,12 +1210,12 @@ gnm_go_data_matrix_load_size (GODataMatrix *dat) } break; - case VALUE_ARRAY : + case VALUE_ARRAY: dat->size.rows = mat->val->v_array.y; dat->size.columns = mat->val->v_array.x; break; - default : + default: dat->size.rows = 1; dat->size.columns = 1; } @@ -1347,7 +1347,7 @@ gnm_go_data_matrix_load_values (GODataMatrix *dat) minimum = maximum = vals[0] = go_nan; break; - case VALUE_ARRAY : + case VALUE_ARRAY: maximum = - G_MAXDOUBLE; minimum = G_MAXDOUBLE; for (col = 0; col < size.columns; col ++) @@ -1378,7 +1378,7 @@ gnm_go_data_matrix_load_values (GODataMatrix *dat) minimum = maximum = go_nan; break; - case VALUE_STRING : + case VALUE_STRING: v = format_match_number (value_peek_string (mat->val), NULL, closure.date_conv); @@ -1390,11 +1390,11 @@ gnm_go_data_matrix_load_values (GODataMatrix *dat) } /* fall through to errors */ - case VALUE_EMPTY : - case VALUE_ERROR : + case VALUE_EMPTY: + case VALUE_ERROR: minimum = maximum = vals[0] = go_nan; break; - default : + default: vals[0] = value_get_as_float (mat->val); minimum = maximum = go_nan; break; diff --git a/src/gui-util.c b/src/gui-util.c index b0cfa04f0..f65a5bae4 100644 --- a/src/gui-util.c +++ b/src/gui-util.c @@ -460,7 +460,7 @@ kill_popup_menu (GtkWidget *widget, G_GNUC_UNUSED gpointer user) } /** - * gnumeric_popup_menu : + * gnumeric_popup_menu: * @menu: #GtkMenu * @event: #GdkEvent optionally NULL * diff --git a/src/input-msg.c b/src/input-msg.c index 493baa3ab..ce074d39e 100644 --- a/src/input-msg.c +++ b/src/input-msg.c @@ -73,7 +73,7 @@ GSF_CLASS (GnmInputMsg, gnm_input_msg, gnm_input_msg_class_init, gnm_input_msg_init, G_TYPE_OBJECT) /** - * gnm_input_msg_new : + * gnm_input_msg_new: * @msg: * @title: * diff --git a/src/io-context-gtk.c b/src/io-context-gtk.c index 9034fd8b3..93aa7acce 100644 --- a/src/io-context-gtk.c +++ b/src/io-context-gtk.c @@ -343,10 +343,10 @@ icg_set_property (GObject *obj, guint property_id, GnmIOContextGtk *icg = GNM_IO_CONTEXT_GTK (obj); switch (property_id) { - case PROP_SHOW_SPLASH : + case PROP_SHOW_SPLASH: icg->show_splash = g_value_get_boolean (value); break; - case PROP_SHOW_WARNINGS : + case PROP_SHOW_WARNINGS: icg->show_warnings = g_value_get_boolean (value); break; default: diff --git a/src/item-bar.c b/src/item-bar.c index 867c83ffa..e03c1a862 100644 --- a/src/item-bar.c +++ b/src/item-bar.c @@ -764,7 +764,7 @@ item_bar_distance (GocItem *item, double x, double y, } /** - * is_pointer_on_division : + * is_pointer_on_division: * @ib: #GnmItemBar * @x: in world coords * @y: in world coords diff --git a/src/item-cursor.c b/src/item-cursor.c index 96c159c36..783e4efb7 100644 --- a/src/item-cursor.c +++ b/src/item-cursor.c @@ -799,7 +799,7 @@ item_cursor_do_action (GnmItemCursor *ic, ActionType action) g_warning ("Operation not yet implemented."); break; - default : + default: g_warning ("Invalid Operation %d.", action); } @@ -1443,7 +1443,7 @@ item_cursor_set_property (GObject *obj, guint param_id, case ITEM_CURSOR_PROP_STYLE: ic->style = g_value_get_int (value); break; - case ITEM_CURSOR_PROP_BUTTON : + case ITEM_CURSOR_PROP_BUTTON: ic->drag_button = g_value_get_int (value); break; case ITEM_CURSOR_PROP_COLOR: diff --git a/src/item-grid.c b/src/item-grid.c index 28292e6be..45973163d 100644 --- a/src/item-grid.c +++ b/src/item-grid.c @@ -1028,7 +1028,7 @@ item_grid_button_pressed (GocItem *item, int button, double x_, double y_) case 3: scg_context_menu (scg, event, FALSE, FALSE); break; - default : + default: break; } @@ -1117,10 +1117,10 @@ item_grid_motion (GocItem *item, double x_, double y_) ig->last_x = x; ig->last_y = y; return TRUE; - case GNM_ITEM_GRID_SELECTING_CELL_RANGE : + case GNM_ITEM_GRID_SELECTING_CELL_RANGE: slide_handler = &cb_extend_cell_range; break; - case GNM_ITEM_GRID_SELECTING_FORMULA_RANGE : + case GNM_ITEM_GRID_SELECTING_FORMULA_RANGE: slide_handler = &cb_extend_expr_range; break; default: @@ -1152,13 +1152,13 @@ item_grid_button_released (GocItem *item, int button, G_GNUC_UNUSED double x_, G case GNM_ITEM_GRID_NO_SELECTION: return TRUE; - case GNM_ITEM_GRID_SELECTING_FORMULA_RANGE : + case GNM_ITEM_GRID_SELECTING_FORMULA_RANGE: /* Removal of this code (2 lines) */ /* should fix http://bugzilla.gnome.org/show_bug.cgi?id=63485 */ /* sheet_make_cell_visible (sheet, */ /* sheet->edit_pos.col, sheet->edit_pos.row, FALSE); */ /* Fall through */ - case GNM_ITEM_GRID_SELECTING_CELL_RANGE : + case GNM_ITEM_GRID_SELECTING_CELL_RANGE: sv_selection_simplify (scg_view (scg)); wb_view_selection_desc ( wb_control_view (scg_wbc (scg)), TRUE, NULL); @@ -1237,11 +1237,11 @@ item_grid_set_property (GObject *obj, guint param_id, GnmRange const *r; switch (param_id) { - case GNM_ITEM_GRID_PROP_SHEET_CONTROL_GUI : + case GNM_ITEM_GRID_PROP_SHEET_CONTROL_GUI: ig->scg = g_value_get_object (value); break; - case GNM_ITEM_GRID_PROP_BOUND : + case GNM_ITEM_GRID_PROP_BOUND: r = g_value_get_pointer (value); g_return_if_fail (r != NULL); ig->bound = *r; diff --git a/src/parse-util.c b/src/parse-util.c index 08013b175..3c4359c87 100644 --- a/src/parse-util.c +++ b/src/parse-util.c @@ -950,7 +950,7 @@ unquote (char *dst, char const *src, int n) } /** - * wbref_parse : + * wbref_parse: * @convs: #GnmConventions const * @start: * @wb: diff --git a/src/parser.y b/src/parser.y index a7c95c245..9f0846185 100644 --- a/src/parser.y +++ b/src/parser.y @@ -457,7 +457,7 @@ build_set (GnmExprList *list) } /** - * parse_string_as_value : + * parse_string_as_value: * * Try to parse the entered text as a basic value (empty, bool, int, * gnm_float, err) if this succeeds, we store this as a GnmValue otherwise, we @@ -523,7 +523,7 @@ parser_simple_name (const char *str, Sheet *sheet) } /** - * parser_simple_val_or_name : + * parser_simple_val_or_name: * @str : An expression with oper constant, whose value is a string. * * Check to see if a string is a simple value or failing that a named @@ -1097,7 +1097,7 @@ yylex (void) state->ptr += 5; p = state->ptr; - double_quote_loop : + double_quote_loop: state->ptr = strstr (state->ptr, quotes_end); if (!*state->ptr) { report_err (state, g_error_new (1, PERR_MISSING_CLOSING_QUOTE, @@ -1475,10 +1475,10 @@ yylex (void) case '\n': return 0; - case '{' : + case '{': state->in_array++; return c; - case '}' : + case '}': state->in_array--; return c; diff --git a/src/preview-grid.c b/src/preview-grid.c index 1e567033e..e2d90cedd 100644 --- a/src/preview-grid.c +++ b/src/preview-grid.c @@ -311,13 +311,13 @@ preview_grid_set_property (GObject *obj, guint param_id, GnmPreviewGrid *pg = GNM_PREVIEW_GRID (obj); switch (param_id){ - case PREVIEW_GRID_PROP_RENDER_GRIDLINES : + case PREVIEW_GRID_PROP_RENDER_GRIDLINES: pg->gridlines = g_value_get_boolean (value); break; - case PREVIEW_GRID_PROP_DEFAULT_COL_WIDTH : + case PREVIEW_GRID_PROP_DEFAULT_COL_WIDTH: pg->defaults.col_width = g_value_get_uint (value); break; - case PREVIEW_GRID_PROP_DEFAULT_ROW_HEIGHT : + case PREVIEW_GRID_PROP_DEFAULT_ROW_HEIGHT: pg->defaults.row_height = g_value_get_uint (value); break; case PREVIEW_GRID_PROP_DEFAULT_STYLE : { diff --git a/src/print-info.c b/src/print-info.c index 511a04947..72ff82f51 100644 --- a/src/print-info.c +++ b/src/print-info.c @@ -1374,7 +1374,7 @@ gnm_print_info_get_page_setup (GnmPrintInformation *pi) } /** - * gnm_print_info_set_page_setup : + * gnm_print_info_set_page_setup: * @pi: #GnmPrintInformation * @page_setup: #GtkPageSetup * @@ -1429,7 +1429,7 @@ print_info_set_paper_orientation (GnmPrintInformation *pi, } /** - * print_info_set_breaks : + * print_info_set_breaks: * @pi: #GnmPrintInformation * @breaks: #GnmPageBreaks * @@ -1465,7 +1465,7 @@ print_info_has_manual_breaks (GnmPrintInformation *pi) * need something more extensive later. */ /** - * gnm_page_breaks_new : + * gnm_page_breaks_new: * @is_vert: * * Allocate a collection of page breaks. diff --git a/src/selection.c b/src/selection.c index 7b74710ed..17a69342b 100644 --- a/src/selection.c +++ b/src/selection.c @@ -618,7 +618,7 @@ set_menu_flags: * FIXME: Enable/disable the show/hide detail menu items here. * We can only do this when the data structures have improved, currently * checking for this will be to slow. - * Once it works, use this code : + * Once it works, use this code: * * sheet->priv->enable_showhide_detail = .... * @@ -938,7 +938,7 @@ selection_get_ranges (SheetView const *sv, gboolean allow_intersection) a->start.row = b->end.row + 1; break; - default : + default: g_assert_not_reached (); } break; @@ -983,7 +983,7 @@ selection_get_ranges (SheetView const *sv, gboolean allow_intersection) a->end.col = b->start.col - 1; break; - default : + default: g_assert_not_reached (); } break; @@ -1020,7 +1020,7 @@ selection_get_ranges (SheetView const *sv, gboolean allow_intersection) a->start.row = b->end.row + 1; break; - default : + default: g_assert_not_reached (); } break; @@ -1055,7 +1055,7 @@ selection_get_ranges (SheetView const *sv, gboolean allow_intersection) a->start.col = b->end.col + 1; break; - default : + default: g_assert_not_reached (); } break; @@ -1250,7 +1250,7 @@ walk_boundaries (SheetView const *sv, GnmRange const * const bound, GnmRange const *merge; *res = pos; -loop : +loop: merge = gnm_sheet_merge_contains_pos (sv->sheet, &pos); if (horizontal) { if (merge != NULL) diff --git a/src/sheet-autofill.c b/src/sheet-autofill.c index bc52432fb..2532eba43 100644 --- a/src/sheet-autofill.c +++ b/src/sheet-autofill.c @@ -1297,7 +1297,7 @@ sheet_autofill_internal (Sheet *sheet, gboolean singleton, /** - * gnm_autofill_fill : + * gnm_autofill_fill: * * An internal routine to autofill a region. It does NOT * queue a recalc, flag a status update, or regen spans. diff --git a/src/sheet-filter.c b/src/sheet-filter.c index f88d93eed..efb2f6bc2 100644 --- a/src/sheet-filter.c +++ b/src/sheet-filter.c @@ -65,7 +65,7 @@ gnm_filter_op_needs_value (GnmFilterOp op) /** - * gnm_filter_condition_new_single : + * gnm_filter_condition_new_single: * @op: #GnmFilterOp * @v: #GnmValue * @@ -87,7 +87,7 @@ gnm_filter_condition_new_single (GnmFilterOp op, GnmValue *v) } /** - * gnm_filter_condition_new_double : + * gnm_filter_condition_new_double: * @op0: #GnmFilterOp * @v0: #GnmValue * @join_with_and: @@ -274,7 +274,7 @@ filter_expr_eval (GnmFilterOp op, GnmValue const *src, GORegexp const *regexp, case GNM_FILTER_OP_GT : return cmp == IS_GREATER; case GNM_FILTER_OP_LTE : if (cmp == IS_EQUAL) return TRUE; /* fall */ case GNM_FILTER_OP_LT : return cmp == IS_LESS; - default : + default: g_warning ("Huh?"); return FALSE; } @@ -441,7 +441,7 @@ gnm_filter_combo_index (GnmFilterCombo *fcombo) /** - * gnm_filter_combo_apply : + * gnm_filter_combo_apply: * @fcombo: #GnmFilterCombo * @target_sheet: @Sheet * @@ -676,7 +676,7 @@ gnm_filter_attach (GnmFilter *filter, Sheet *sheet) /** - * gnm_filter_new : + * gnm_filter_new: * @sheet: * @r: * @@ -703,7 +703,7 @@ gnm_filter_new (Sheet *sheet, GnmRange const *r) } /** - * gnm_filter_dup : + * gnm_filter_dup: * @src: #GnmFilter * @sheet: #Sheet * @@ -802,7 +802,7 @@ gnm_filter_remove (GnmFilter *filter) } /** - * gnm_filter_get_condition : + * gnm_filter_get_condition: * @filter: * @i: * @@ -857,7 +857,7 @@ gnm_filter_update_active (GnmFilter *filter) /** - * gnm_filter_set_condition : + * gnm_filter_set_condition: * @filter: * @i: * @cond: #GnmFilterCondition @@ -906,7 +906,7 @@ gnm_filter_set_condition (GnmFilter *filter, unsigned i, } /** - * gnm_filter_overlaps_range : + * gnm_filter_overlaps_range: * @filter: #GnmFilter * @r: #GnmRange * @@ -924,7 +924,7 @@ gnm_filter_overlaps_range (GnmFilter const *filter, GnmRange const *r) /*************************************************************************/ /** - * gnm_sheet_filter_at_pos : + * gnm_sheet_filter_at_pos: * @sheet: #Sheet * * Returns : #GnmRange @@ -1047,7 +1047,7 @@ gnm_filter_set_range (GnmFilter *filter, GnmRange *r) } /** - * gnm_sheet_filter_insdel_colrow : + * gnm_sheet_filter_insdel_colrow: * @sheet: * @is_cols: * @is_insert: diff --git a/src/sheet-object-cell-comment.c b/src/sheet-object-cell-comment.c index 657c4794b..365bc70a4 100644 --- a/src/sheet-object-cell-comment.c +++ b/src/sheet-object-cell-comment.c @@ -249,7 +249,7 @@ cell_comment_set_property (GObject *obj, guint param_id, g_free (cc->author); cc->author = g_value_dup_string (value); break; - case CC_PROP_MARKUP : + case CC_PROP_MARKUP: if (cc->markup != NULL) pango_attr_list_unref (cc->markup); cc->markup = g_value_peek_pointer (value); @@ -269,16 +269,16 @@ cell_comment_get_property (GObject *obj, guint param_id, { GnmComment *cc = GNM_CELL_COMMENT (obj); switch (param_id) { - case CC_PROP_TEXT : + case CC_PROP_TEXT: g_value_set_string (value, cc->text); break; - case CC_PROP_AUTHOR : + case CC_PROP_AUTHOR: g_value_set_string (value, cc->author); break; - case CC_PROP_MARKUP : + case CC_PROP_MARKUP: g_value_set_boxed (value, cc->markup); break; - default : + default: G_OBJECT_WARN_INVALID_PROPERTY_ID (obj, param_id, pspec); break; } diff --git a/src/sheet-object-image.c b/src/sheet-object-image.c index a9f531267..0b742cc59 100644 --- a/src/sheet-object-image.c +++ b/src/sheet-object-image.c @@ -122,7 +122,7 @@ enum { }; /** - * sheet_object_image_set_image : + * sheet_object_image_set_image: * @soi: #SheetObjectImage * @type: * @data: diff --git a/src/sheet-object-widget.c b/src/sheet-object-widget.c index 10c96595d..c6501c91f 100644 --- a/src/sheet-object-widget.c +++ b/src/sheet-object-widget.c @@ -368,7 +368,7 @@ sheet_widget_frame_get_property (GObject *obj, guint param_id, case SOF_PROP_TEXT: g_value_set_string (value, swf->label); break; - default : + default: G_OBJECT_WARN_INVALID_PROPERTY_ID (obj, param_id, pspec); break; } @@ -819,7 +819,7 @@ sheet_widget_button_get_property (GObject *obj, guint param_id, case SOB_PROP_MARKUP: g_value_set_boxed (value, NULL); /* swb->markup */ break; - default : + default: G_OBJECT_WARN_INVALID_PROPERTY_ID (obj, param_id, pspec); break; } @@ -1483,7 +1483,7 @@ sheet_widget_adjustment_get_property (GObject *obj, guint param_id, case SWA_PROP_HORIZONTAL: g_value_set_boolean (value, swa->horizontal); break; - default : + default: G_OBJECT_WARN_INVALID_PROPERTY_ID (obj, param_id, pspec); break; } @@ -2276,7 +2276,7 @@ sheet_widget_checkbox_get_property (GObject *obj, guint param_id, case SOC_PROP_MARKUP: g_value_set_boxed (value, NULL); /* swc->markup */ break; - default : + default: G_OBJECT_WARN_INVALID_PROPERTY_ID (obj, param_id, pspec); break; } @@ -2847,7 +2847,7 @@ sheet_widget_radio_button_get_property (GObject *obj, guint param_id, case SOR_PROP_VALUE: g_value_set_boxed (value, swrb->value); break; - default : + default: G_OBJECT_WARN_INVALID_PROPERTY_ID (obj, param_id, pspec); break; } diff --git a/src/sheet-object.c b/src/sheet-object.c index c6a4fe2b4..117b0486a 100644 --- a/src/sheet-object.c +++ b/src/sheet-object.c @@ -349,7 +349,7 @@ sheet_object_get_property (GObject *obj, guint param_id, case SO_PROP_NAME: g_value_set_string (value, so->name); break; - default : + default: G_OBJECT_WARN_INVALID_PROPERTY_ID (obj, param_id, pspec); break; } diff --git a/src/sheet-utils.c b/src/sheet-utils.c index 0ff924e7c..bd7546754 100644 --- a/src/sheet-utils.c +++ b/src/sheet-utils.c @@ -34,7 +34,7 @@ sheet_cell_or_one_below_is_not_empty (Sheet *sheet, int col, int row) } /** - * gnm_sheet_guess_region : + * gnm_sheet_guess_region: * @sheet: #Sheet * @region: #GnmRange * @@ -92,7 +92,7 @@ gnm_sheet_guess_region (Sheet *sheet, GnmRange *region) /** - * gnm_sheet_guess_data_range : + * gnm_sheet_guess_data_range: * @sheet: #Sheet * @region: #GnmRange * diff --git a/src/sheet-view.c b/src/sheet-view.c index 7fd0060c7..97318d979 100644 --- a/src/sheet-view.c +++ b/src/sheet-view.c @@ -438,7 +438,7 @@ sv_selection_cut (SheetView *sv, WorkbookControl *wbc) } /** - * sv_cursor_set : + * sv_cursor_set: * @sv: The sheet * @edit: * @base_col: @@ -610,7 +610,7 @@ sv_flag_status_update_range (SheetView *sv, GnmRange const *range) } /** - * sv_flag_style_update_range : + * sv_flag_style_update_range: * @sv: The sheet being changed * @range: the range that is changing. * @@ -626,7 +626,7 @@ sv_flag_style_update_range (SheetView *sv, GnmRange const *range) } /** - * sv_flag_selection_change : + * sv_flag_selection_change: * @sv: * * flag the sheet as requiring an update to the status display @@ -706,7 +706,7 @@ sv_update (SheetView *sv) } /** - * sv_editpos_in_filter : + * sv_editpos_in_filter: * @sv: #SheetView * * Returns: %NULL or GnmFilter that overlaps the sv::edit_pos @@ -719,7 +719,7 @@ sv_editpos_in_filter (SheetView const *sv) } /** - * sv_selection_intersects_filter_rows : + * sv_selection_intersects_filter_rows: * @sv: #SheetView * * Returns: %NULL or GnmFilter whose rows intersect the rows @@ -772,7 +772,7 @@ sv_editpos_in_slicer (SheetView const *sv) } /** - * sv_freeze_panes : + * sv_freeze_panes: * @sv: the sheet * @frozen_top_left: top left corner of the frozen region * @unfrozen_top_left: top left corner of the unfrozen region @@ -836,7 +836,7 @@ sv_freeze_panes (SheetView *sv, } /** - * sv_panes_insdel_colrow : + * sv_panes_insdel_colrow: * @sv: * @is_cols: * @is_insert: diff --git a/src/ssconvert.c b/src/ssconvert.c index e1ab773c0..6bcfe785c 100644 --- a/src/ssconvert.c +++ b/src/ssconvert.c @@ -8,7 +8,7 @@ * Jody Goldberg * * Copyright (C) 2002-2003 Jody Goldberg - * Copyright (C) 2006-2009 Morten Welinder (terra@gnome.org) + * Copyright (C) 2006-2018 Morten Welinder (terra@gnome.org) */ #include #include diff --git a/src/ssdiff.c b/src/ssdiff.c index 03ff52e7e..6ca59c26b 100644 --- a/src/ssdiff.c +++ b/src/ssdiff.c @@ -4,7 +4,7 @@ * Author: * Morten Welinder * - * Copyright (C) 2012 Morten Welinder (terra@gnome.org) + * Copyright (C) 2012-2018 Morten Welinder (terra@gnome.org) */ #include diff --git a/src/sstest.c b/src/sstest.c index 4b7b81fa2..666a2ec6b 100644 --- a/src/sstest.c +++ b/src/sstest.c @@ -299,7 +299,7 @@ enumerate_functions (gboolean filter) } /** - * function_dump_defs : + * function_dump_defs: * @filename: * @dump_type: * @@ -307,7 +307,7 @@ enumerate_functions (gboolean filter) * in various ways. @dump_type will change/extend as needed * Right now * 0 : www.gnumeric.org's function.shtml page - * 1 : + * 1: * 2 : (obsolete) * 3 : dump function usage count * 4 : external refs diff --git a/src/stf-export.c b/src/stf-export.c index 23e3d9289..162428c5a 100644 --- a/src/stf-export.c +++ b/src/stf-export.c @@ -6,7 +6,7 @@ * Copyright (C) Almer. S. Tigelaar. * EMail: almer1@dds.nl or almer-t@bigfoot.com * - * Based on the csv-io.c plugin by : + * Based on the csv-io.c plugin by: * Miguel de Icaza * Jody Goldberg * diff --git a/src/stf-parse.c b/src/stf-parse.c index 41c1d9957..8e5d7e8ed 100644 --- a/src/stf-parse.c +++ b/src/stf-parse.c @@ -1052,7 +1052,7 @@ stf_parse_options_fixed_autodiscover (StfParseOptions_t *parseoptions, list_start = list; /* - * Kewl stuff : + * Kewl stuff: * Look at the number of hits at each line position * if the number of hits equals the number of lines * we can be pretty sure this is the start or end @@ -1085,7 +1085,7 @@ stf_parse_options_fixed_autodiscover (StfParseOptions_t *parseoptions, */ if (my_garray_len (parseoptions->splitpositions) > 0) { /* - * Try to find columns that look like : + * Try to find columns that look like: * * Example 100 * Example2 9 diff --git a/src/style-border.c b/src/style-border.c index 24e8dfd9f..02501647b 100644 --- a/src/style-border.c +++ b/src/style-border.c @@ -184,7 +184,7 @@ gnm_style_border_none_set_color (GnmColor *color) } /** - * gnm_style_border_fetch : + * gnm_style_border_fetch: * @line_type: dash style * @color: (transfer full): colour * @orientation: Not currently used. @@ -617,7 +617,7 @@ print_vline_gtk (cairo_t *context, } /** - * gnm_style_borders_row_draw : + * gnm_style_borders_row_draw: * * TODO : This is not the final resting place for this. * It will move into the gui layer eventually. diff --git a/src/style-conditions.c b/src/style-conditions.c index fb406180c..e492505f4 100644 --- a/src/style-conditions.c +++ b/src/style-conditions.c @@ -86,7 +86,7 @@ gnm_style_cond_op_operands (GnmStyleCondOp op) /** - * gnm_style_cond_is_valid : + * gnm_style_cond_is_valid: * @cond: #GnmStyleCond * * Returns: TRUE if @cond is in a reasonable state @@ -705,7 +705,7 @@ GSF_CLASS (GnmStyleConditions, gnm_style_conditions, G_TYPE_OBJECT) /** - * gnm_style_conditions_new : + * gnm_style_conditions_new: * * Convenience tool to create a GnmStyleCondition. Straight g_object_new * will work too. @@ -871,7 +871,7 @@ gnm_style_conditions_details (GnmStyleConditions const *sc) } /** - * gnm_style_conditions_insert : + * gnm_style_conditions_insert: * @sc: #GnmStyleConditions * @cond: #GnmStyleCond * @pos: position. diff --git a/src/validation.c b/src/validation.c index 8a2b8c6b9..86fe00d8e 100644 --- a/src/validation.c +++ b/src/validation.c @@ -230,7 +230,7 @@ gnm_validation_op_get_type (void) /***************************************************************************/ /** - * gnm_validation_new : + * gnm_validation_new: * @title: will be copied. * @msg: will be copied. * @texpr0: absorb the reference to the expression (optionally %NULL). @@ -434,7 +434,7 @@ gnm_validation_set_sheet (GnmValidation *v, Sheet *sheet) /** - * gnm_validation_set_expr : + * gnm_validation_set_expr: * @v: #GnmValidation * @texpr: #GnmExprTop * @indx: 0 or 1 diff --git a/src/wbc-gtk-actions.c b/src/wbc-gtk-actions.c index cc8cd05fb..facd4ecac 100644 --- a/src/wbc-gtk-actions.c +++ b/src/wbc-gtk-actions.c @@ -654,7 +654,7 @@ static GNM_ACTION_DEF (cb_edit_goto_cell_indicator) static GNM_ACTION_DEF (cb_edit_recalc) { - /* TODO : + /* TODO: * f9 - do any necessary calculations across all sheets * shift-f9 - do any necessary calcs on current sheet only * ctrl-alt-f9 - force a full recalc across all sheets @@ -1573,7 +1573,7 @@ toggle_font_attr (WBCGtk *wbcg, GtkToggleAction *act, if (wbcg_is_editing (wbcg)) { PangoAttribute *attr = NULL; switch (t) { - default : + default: case MSTYLE_FONT_BOLD: attr = pango_attr_weight_new (val ? PANGO_WEIGHT_BOLD : PANGO_WEIGHT_NORMAL); break; @@ -1610,7 +1610,7 @@ toggle_font_attr (WBCGtk *wbcg, GtkToggleAction *act, new_style = gnm_style_new (); switch (t) { - default : + default: case MSTYLE_FONT_BOLD: gnm_style_set_font_bold (new_style, val); break; case MSTYLE_FONT_ITALIC: gnm_style_set_font_italic (new_style, val); break; case MSTYLE_FONT_UNDERLINE: gnm_style_set_font_uline (new_style, val); break; @@ -3959,7 +3959,7 @@ cb_border_activated (GOActionComboPixmaps *a, WorkbookControl *wbc) break; } - default : + default: g_warning ("Unknown border preset selected (%d)", index); return; } diff --git a/src/wbc-gtk.c b/src/wbc-gtk.c index f6c946796..41c11d575 100644 --- a/src/wbc-gtk.c +++ b/src/wbc-gtk.c @@ -1804,7 +1804,7 @@ wbcg_show_save_dialog (WBCGtk *wbcg, Workbook *wb) * wbcg_close_if_user_permits : If the workbook is dirty the user is * prompted to see if they should exit. * - * Returns : + * Returns: * 0) canceled * 1) closed * 2) - @@ -2902,21 +2902,21 @@ wbcg_validation_msg (WorkbookControl *wbc, ValidationStyle v, int response; switch (v) { - case GNM_VALIDATION_STYLE_STOP : + case GNM_VALIDATION_STYLE_STOP: res0 = GNM_VALIDATION_STATUS_INVALID_EDIT; btn0 = _("_Re-Edit"); res1 = GNM_VALIDATION_STATUS_INVALID_DISCARD; btn1 = _("_Discard"); type = GTK_MESSAGE_ERROR; break; - case GNM_VALIDATION_STYLE_WARNING : + case GNM_VALIDATION_STYLE_WARNING: res0 = GNM_VALIDATION_STATUS_VALID; btn0 = _("_Accept"); res1 = GNM_VALIDATION_STATUS_INVALID_DISCARD; btn1 = _("_Discard"); type = GTK_MESSAGE_WARNING; break; - case GNM_VALIDATION_STYLE_INFO : + case GNM_VALIDATION_STYLE_INFO: res0 = GNM_VALIDATION_STATUS_VALID; btn0 = GNM_STOCK_OK; btn1 = NULL; diff --git a/src/workbook-view.c b/src/workbook-view.c index 4fa2ba7d2..476445288 100644 --- a/src/workbook-view.c +++ b/src/workbook-view.c @@ -121,7 +121,7 @@ wb_view_get_doc (WorkbookView const *wbv) } /** - * wb_view_get_index_in_wb : + * wb_view_get_index_in_wb: * @wbv: #WorkbookView * * Returns 0 based index of wbv within workbook, or -1 if there is no workbook. diff --git a/src/xml-sax-read.c b/src/xml-sax-read.c index 8ebcade30..71a641842 100644 --- a/src/xml-sax-read.c +++ b/src/xml-sax-read.c @@ -693,17 +693,17 @@ xml_sax_attr_elem (GsfXMLIn *xin, G_GNUC_UNUSED GsfXMLBlob *blob) int const len = xin->content->len; switch (xin->node->user_data.v_int) { - case 0 : + case 0: g_return_if_fail (state->attribute.name == NULL); state->attribute.name = g_strndup (content, len); break; - case 1 : + case 1: g_return_if_fail (state->attribute.value == NULL); state->attribute.value = g_strndup (content, len); break; - default : + default: g_assert_not_reached (); } } diff --git a/src/xml-sax-write.c b/src/xml-sax-write.c index 10afd718c..c3c31f691 100644 --- a/src/xml-sax-write.c +++ b/src/xml-sax-write.c @@ -581,15 +581,15 @@ xml_write_style (GnmOutputXML *state, GnmStyle const *style) GNM_VALIDATION_TYPE_TYPE, v->type); switch (v->type) { - case GNM_VALIDATION_TYPE_AS_INT : - case GNM_VALIDATION_TYPE_AS_NUMBER : - case GNM_VALIDATION_TYPE_AS_DATE : - case GNM_VALIDATION_TYPE_AS_TIME : - case GNM_VALIDATION_TYPE_TEXT_LENGTH : + case GNM_VALIDATION_TYPE_AS_INT: + case GNM_VALIDATION_TYPE_AS_NUMBER: + case GNM_VALIDATION_TYPE_AS_DATE: + case GNM_VALIDATION_TYPE_AS_TIME: + case GNM_VALIDATION_TYPE_TEXT_LENGTH: gsf_xml_out_add_enum (state->output, "Operator", GNM_VALIDATION_OP_TYPE, v->op); break; - default : + default: break; } -- 2.11.4.GIT