[goffice] White-space policing.
- From: Morten Welinder <mortenw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [goffice] White-space policing.
- Date: Sat, 5 Sep 2009 23:52:50 +0000 (UTC)
commit 1e17a3ee7540617728b55d4adb652c11a4f7b498
Author: Morten Welinder <terra gnome org>
Date: Sat Sep 5 19:52:30 2009 -0400
White-space policing.
goffice/app/go-cmd-context.h | 2 +-
goffice/app/go-conf-keyfile.c | 8 +-
goffice/app/go-doc.c | 10 +-
goffice/app/go-doc.h | 2 +-
goffice/app/go-object.c | 2 +-
goffice/app/go-plugin-loader-module.c | 2 +-
goffice/app/goffice-app.h | 2 +-
goffice/canvas/goc-canvas.c | 16 ++--
goffice/canvas/goc-canvas.h | 6 +-
goffice/canvas/goc-circle.c | 14 +-
goffice/canvas/goc-circle.h | 6 +-
goffice/canvas/goc-ellipse.c | 14 +-
goffice/canvas/goc-ellipse.h | 6 +-
goffice/canvas/goc-graph.c | 4 +-
goffice/canvas/goc-group.c | 12 +-
goffice/canvas/goc-group.h | 6 +-
goffice/canvas/goc-item.c | 10 +-
goffice/canvas/goc-item.h | 2 +-
goffice/canvas/goc-line.c | 6 +-
goffice/canvas/goc-line.h | 6 +-
goffice/canvas/goc-pixbuf.c | 8 +-
goffice/canvas/goc-polygon.c | 6 +-
goffice/canvas/goc-polygon.h | 6 +-
goffice/canvas/goc-polyline.c | 10 +-
goffice/canvas/goc-polyline.h | 6 +-
goffice/canvas/goc-rectangle.c | 6 +-
goffice/canvas/goc-rectangle.h | 6 +-
goffice/canvas/goc-structs.h | 2 +-
goffice/canvas/goc-styled-item.c | 16 ++--
goffice/canvas/goc-styled-item.h | 6 +-
goffice/canvas/goc-text.c | 12 +-
goffice/canvas/goc-text.h | 4 +-
goffice/canvas/goc-utils.c | 2 +-
goffice/canvas/goc-utils.h | 2 +-
goffice/canvas/goc-widget.c | 16 ++--
goffice/canvas/goffice-canvas.h | 6 +-
goffice/component/go-component-factory.c | 2 +-
goffice/component/go-component-factory.h | 2 +-
goffice/component/go-component.c | 4 +-
goffice/component/go-component.h | 2 +-
goffice/component/goffice-component.h | 2 +-
goffice/data/go-data-impl.h | 2 +-
goffice/data/go-data-simple.c | 26 ++--
goffice/data/go-data-simple.h | 2 +-
goffice/data/go-data.c | 2 +-
goffice/data/go-data.h | 2 +-
goffice/data/goffice-data.h | 2 +-
goffice/drawing/god-drawing-renderer-cairo.c | 4 +-
goffice/drawing/god-drawing-renderer-gdk.c | 4 +-
goffice/drawing/god-image-store.c | 2 +-
goffice/drawing/god-shape.c | 2 +-
goffice/drawing/god-text-model.c | 4 +-
goffice/goffice-priv.h | 2 +-
goffice/goffice.c | 2 +-
goffice/goffice.h | 2 +-
goffice/graph/goffice-graph.h | 6 +-
goffice/graph/gog-3d-box.c | 30 +++---
goffice/graph/gog-axis-line.c | 130 +++++++++++-----------
goffice/graph/gog-axis.c | 6 +-
goffice/graph/gog-axis.h | 4 +-
goffice/graph/gog-chart-map-3d.c | 12 +-
goffice/graph/gog-chart-map.c | 22 ++--
goffice/graph/gog-chart-map.h | 6 +-
goffice/graph/gog-chart.c | 80 +++++++-------
goffice/graph/gog-data-allocator.h | 2 +-
goffice/graph/gog-data-set.c | 2 +-
goffice/graph/gog-data-set.h | 2 +-
goffice/graph/gog-equation.h | 2 +-
goffice/graph/gog-error-bar.c | 46 ++++----
goffice/graph/gog-error-bar.h | 14 +-
goffice/graph/gog-graph.c | 106 +++++++++---------
goffice/graph/gog-graph.h | 2 +-
goffice/graph/gog-grid-line.c | 28 +++---
goffice/graph/gog-grid.c | 2 +-
goffice/graph/gog-grid.h | 2 +-
goffice/graph/gog-guru.c | 18 ++--
goffice/graph/gog-guru.h | 2 +-
goffice/graph/gog-label.c | 62 +++++-----
goffice/graph/gog-label.h | 2 +-
goffice/graph/gog-legend.c | 60 +++++-----
goffice/graph/gog-legend.h | 2 +-
goffice/graph/gog-object-xml.c | 6 +-
goffice/graph/gog-object-xml.h | 2 +-
goffice/graph/gog-object.c | 122 ++++++++++----------
goffice/graph/gog-object.h | 16 ++--
goffice/graph/gog-outlined-object.c | 14 +-
goffice/graph/gog-outlined-object.h | 2 +-
goffice/graph/gog-plot-engine.c | 8 +-
goffice/graph/gog-plot-engine.h | 6 +-
goffice/graph/gog-plot.c | 158 +++++++++++++-------------
goffice/graph/gog-plot.h | 2 +-
goffice/graph/gog-reg-curve.c | 16 ++--
goffice/graph/gog-reg-curve.h | 4 +-
goffice/graph/gog-renderer.c | 8 +-
goffice/graph/gog-renderer.h | 4 +-
goffice/graph/gog-series-impl.h | 2 +-
goffice/graph/gog-series-lines.c | 6 +-
goffice/graph/gog-series-lines.h | 4 +-
goffice/graph/gog-series.c | 22 ++--
goffice/graph/gog-series.h | 8 +-
goffice/graph/gog-smoothed-curve.c | 2 +-
goffice/graph/gog-smoothed-curve.h | 4 +-
goffice/graph/gog-styled-object.c | 12 +-
goffice/graph/gog-styled-object.h | 2 +-
goffice/graph/gog-theme.c | 48 ++++----
goffice/graph/gog-theme.h | 4 +-
goffice/graph/gog-trend-line.c | 2 +-
goffice/graph/gog-trend-line.h | 2 +-
goffice/graph/gog-view.c | 70 ++++++------
goffice/graph/gog-view.h | 16 ++--
goffice/gtk/go-3d-rotation-sel.c | 26 ++--
goffice/gtk/go-action-combo-color.c | 2 +-
goffice/gtk/go-charmap-sel.c | 2 +-
goffice/gtk/go-color-palette.c | 8 +-
goffice/gtk/go-color-selector.c | 72 ++++++------
goffice/gtk/go-color-selector.h | 4 +-
goffice/gtk/go-combo-box.c | 2 +-
goffice/gtk/go-combo-color.c | 4 +-
goffice/gtk/go-combo-pixmaps.c | 2 +-
goffice/gtk/go-combo-text.c | 8 +-
goffice/gtk/go-font-sel.c | 6 +-
goffice/gtk/go-format-sel.c | 38 +++---
goffice/gtk/go-format-sel.h | 2 +-
goffice/gtk/go-gradient-selector.c | 18 ++--
goffice/gtk/go-gradient-selector.h | 4 +-
goffice/gtk/go-graph-widget.c | 14 +-
goffice/gtk/go-graph-widget.h | 2 +-
goffice/gtk/go-image-sel.c | 4 +-
goffice/gtk/go-line-selector.c | 10 +-
goffice/gtk/go-line-selector.h | 2 +-
goffice/gtk/go-marker-selector.h | 6 +-
goffice/gtk/go-optionmenu.c | 18 ++--
goffice/gtk/go-optionmenu.h | 4 +-
goffice/gtk/go-palette.c | 38 +++---
goffice/gtk/go-palette.h | 2 +-
goffice/gtk/go-pattern-selector.c | 8 +-
goffice/gtk/go-pattern-selector.h | 4 +-
goffice/gtk/go-pixbuf.c | 4 +-
goffice/gtk/go-rotation-sel.c | 2 +-
goffice/gtk/goffice-gtk.c | 30 +++---
goffice/gtk/goffice-gtk.h | 2 +-
goffice/math/go-cspline.c | 42 ++++----
goffice/math/go-cspline.h | 4 +-
goffice/math/go-distribution.c | 40 ++++----
goffice/math/go-math.c | 2 +-
goffice/math/go-math.h | 4 +-
goffice/math/go-regression.c | 6 +-
goffice/ms-compat/go-ms-parser.c | 4 +-
goffice/ms-compat/god-drawing-ms.c | 18 ++--
goffice/utils/formats.c | 2 +-
goffice/utils/go-bezier.c | 6 +-
goffice/utils/go-bezier.h | 4 +-
goffice/utils/go-cairo.c | 6 +-
goffice/utils/go-color.c | 2 +-
goffice/utils/go-editor.c | 8 +-
goffice/utils/go-editor.h | 6 +-
goffice/utils/go-file.c | 8 +-
goffice/utils/go-file.h | 2 +-
goffice/utils/go-font.c | 4 +-
goffice/utils/go-font.h | 2 +-
goffice/utils/go-format.c | 128 +++++++++++-----------
goffice/utils/go-format.h | 4 +-
goffice/utils/go-geometry.c | 42 ++++----
goffice/utils/go-geometry.h | 4 +-
goffice/utils/go-glib-extras.c | 2 +-
goffice/utils/go-gradient.h | 2 +-
goffice/utils/go-image.c | 50 ++++----
goffice/utils/go-image.h | 2 +-
goffice/utils/go-libxml-extras.c | 2 +-
goffice/utils/go-libxml-extras.h | 2 +-
goffice/utils/go-line.c | 4 +-
goffice/utils/go-line.h | 2 +-
goffice/utils/go-pango-extras.c | 2 +-
goffice/utils/go-path.c | 4 +-
goffice/utils/go-path.h | 12 +-
goffice/utils/go-pattern.c | 4 +-
goffice/utils/go-pattern.h | 2 +-
goffice/utils/go-persist.h | 4 +-
goffice/utils/go-string.c | 6 +-
goffice/utils/go-style.c | 128 +++++++++++-----------
goffice/utils/go-style.h | 4 +-
goffice/utils/go-styled-object.c | 12 +-
goffice/utils/go-styled-object.h | 6 +-
goffice/utils/go-units.h | 2 +-
goffice/utils/goffice-utils.h | 2 +-
plugins/plot_barcol/gog-1.5d.c | 20 ++--
plugins/plot_barcol/gog-1.5d.h | 2 +-
plugins/plot_barcol/gog-barcol.c | 26 ++--
plugins/plot_barcol/gog-dropbar.c | 8 +-
plugins/plot_barcol/gog-line.c | 30 +++---
plugins/plot_barcol/gog-minmax.c | 20 ++--
plugins/plot_distrib/gog-boxplot.c | 24 ++--
plugins/plot_distrib/gog-histogram.c | 10 +-
plugins/plot_distrib/gog-probability-plot.c | 20 ++--
plugins/plot_distrib/plugin.c | 2 +-
plugins/plot_pie/gog-pie-prefs.c | 22 ++--
plugins/plot_pie/gog-pie.c | 62 +++++-----
plugins/plot_radar/gog-radar.c | 40 ++++----
plugins/plot_surface/gog-contour.c | 10 +-
plugins/plot_surface/gog-surface.h | 2 +-
plugins/plot_surface/gog-xyz-surface.c | 14 +-
plugins/plot_surface/gog-xyz.c | 8 +-
plugins/plot_surface/xl-surface.c | 4 +-
plugins/plot_xy/gog-bubble-prefs.c | 2 +-
plugins/plot_xy/gog-xy.c | 86 +++++++-------
plugins/reg_linear/gog-exp-reg.c | 2 +-
plugins/reg_linear/gog-exp-reg.h | 2 +-
plugins/reg_linear/gog-lin-reg.c | 10 +-
plugins/reg_linear/gog-lin-reg.h | 2 +-
plugins/reg_linear/gog-log-reg.c | 2 +-
plugins/reg_linear/gog-log-reg.h | 2 +-
plugins/reg_linear/gog-polynom-reg.c | 4 +-
plugins/reg_linear/gog-polynom-reg.h | 2 +-
plugins/reg_linear/gog-power-reg.c | 2 +-
plugins/reg_linear/gog-power-reg.h | 2 +-
plugins/reg_logfit/gog-logfit.c | 2 +-
plugins/reg_logfit/gog-logfit.h | 2 +-
plugins/smoothing/gog-exp-smooth.c | 8 +-
plugins/smoothing/gog-exp-smooth.h | 2 +-
plugins/smoothing/gog-moving-avg.c | 10 +-
plugins/smoothing/gog-moving-avg.h | 2 +-
plugins/smoothing/plugin.c | 6 +-
tests/go-demo.c | 6 +-
tests/pie-demo.c | 2 +-
224 files changed, 1487 insertions(+), 1487 deletions(-)
---
diff --git a/goffice/app/go-cmd-context.h b/goffice/app/go-cmd-context.h
index 0b6e08b..07ffa8c 100644
--- a/goffice/app/go-cmd-context.h
+++ b/goffice/app/go-cmd-context.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-cmd-context.h:
+ * go-cmd-context.h:
*
* Copyright (C) 2004 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/app/go-conf-keyfile.c b/goffice/app/go-conf-keyfile.c
index 8ef7f0f..26bd7cd 100644
--- a/goffice/app/go-conf-keyfile.c
+++ b/goffice/app/go-conf-keyfile.c
@@ -299,7 +299,7 @@ go_conf_load_bool (GOConfNode *node, gchar const *key, gboolean default_val)
if (!node)
return default_val;
-
+
real_key = go_conf_get_real_key (node, key);
val = g_key_file_get_boolean (node->key_file, BOOL_GROUP, real_key, &err);
if (err) {
@@ -325,7 +325,7 @@ go_conf_load_int (GOConfNode *node, gchar const *key,
if (!node)
return default_val;
-
+
real_key = go_conf_get_real_key (node, key);
val = g_key_file_get_integer (node->key_file, INT_GROUP, real_key, &err);
@@ -355,7 +355,7 @@ go_conf_load_double (GOConfNode *node, gchar const *key,
if (!node)
return default_val;
-
+
real_key = go_conf_get_real_key (node, key);
ptr = g_key_file_get_value (node->key_file, DOUBLE_GROUP, real_key, &err);
@@ -383,7 +383,7 @@ go_conf_load_string (GOConfNode *node, gchar const *key)
if (!node)
return NULL;
-
+
real_key = go_conf_get_real_key (node, key);
val = g_key_file_get_string (node->key_file, STRING_GROUP, real_key, &err);
diff --git a/goffice/app/go-doc.c b/goffice/app/go-doc.c
index feda2cf..e849c04 100644
--- a/goffice/app/go-doc.c
+++ b/goffice/app/go-doc.c
@@ -352,7 +352,7 @@ go_doc_add_image (GODoc *doc, char const *id, GOImage *image)
int i = 0;
char *new_id;
#ifdef HAVE_G_HASH_TABLE_ITER_INIT
- GHashTableIter iter;
+ GHashTableIter iter;
char const *key;
#else
struct check_for_pixbuf cl;
@@ -494,12 +494,12 @@ void
go_doc_read (GODoc *doc, GsfXMLIn *xin, xmlChar const **attrs)
{
static GsfXMLInNode const dtd[] = {
- GSF_XML_IN_NODE (DOC, DOC,
- -1, "GODoc",
+ GSF_XML_IN_NODE (DOC, DOC,
+ -1, "GODoc",
FALSE, NULL, NULL),
GSF_XML_IN_NODE (DOC, IMAGE,
- -1, "GOImage",
- GSF_XML_CONTENT,
+ -1, "GOImage",
+ GSF_XML_CONTENT,
&load_image, &load_image_data),
GSF_XML_IN_NODE_END
};
diff --git a/goffice/app/go-doc.h b/goffice/app/go-doc.h
index 0074cf3..69e5d01 100644
--- a/goffice/app/go-doc.h
+++ b/goffice/app/go-doc.h
@@ -51,7 +51,7 @@ GODoc *go_doc_new_from_input (GsfInput *input,
gchar const *encoding);
GODoc *go_doc_new_from_uri (char const *uri,
GnmFileOpener const *fmt,
- XXXGOIOContext *context,
+ XXXGOIOContext *context,
gchar const *encoding);
gboolean go_doc_save (GODoc *doc, XXXGOIOContext *context);
gboolean go_doc_save_as (GODoc *doc, GODocExporter *fmt, char const *uri,
diff --git a/goffice/app/go-object.c b/goffice/app/go-object.c
index 4501712..d75d718 100644
--- a/goffice/app/go-object.c
+++ b/goffice/app/go-object.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-object.c :
+ * go-object.c :
*
* Copyright (C) 2004 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/app/go-plugin-loader-module.c b/goffice/app/go-plugin-loader-module.c
index 366f5f6..c73edb8 100644
--- a/goffice/app/go-plugin-loader-module.c
+++ b/goffice/app/go-plugin-loader-module.c
@@ -130,7 +130,7 @@ go_plugin_loader_module_load_base (GOPluginLoader *loader, GOErrorInfo **err)
g_module_symbol (handle, "go_plugin_shutdown", (gpointer)&loader_module->plugin_shutdown);
if (loader_module->plugin_init != NULL)
(loader_module->plugin_init) (go_plugin_loader_get_plugin (loader), NULL);
- }
+ }
if (*err != NULL)
g_module_close (handle);
diff --git a/goffice/app/goffice-app.h b/goffice/app/goffice-app.h
index aa56738..64c5c79 100644
--- a/goffice/app/goffice-app.h
+++ b/goffice/app/goffice-app.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goffice-app.h:
+ * goffice-app.h:
*
* Copyright (C) 2004 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/canvas/goc-canvas.c b/goffice/canvas/goc-canvas.c
index 82c2142..72c0ce7 100644
--- a/goffice/canvas/goc-canvas.c
+++ b/goffice/canvas/goc-canvas.c
@@ -1,11 +1,11 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goc-canvas.c :
+ * goc-canvas.c :
*
* Copyright (C) 2008-2009 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
@@ -71,7 +71,7 @@ button_press_cb (GocCanvas *canvas, GdkEventButton *event, G_GNUC_UNUSED gpointe
canvas->scroll_x1 + (canvas->width - event->x) / canvas->pixels_per_unit:
canvas->scroll_x1 + event->x / canvas->pixels_per_unit;
y = canvas->scroll_y1 + event->y / canvas->pixels_per_unit;
- item = goc_canvas_get_item_at (canvas, x, y);;
+ item = goc_canvas_get_item_at (canvas, x, y);;
if (item) {
canvas->cur_event = (GdkEvent *) event;
if (event->type == GDK_2BUTTON_PRESS)
@@ -118,7 +118,7 @@ motion_cb (GocCanvas *canvas, GdkEventMotion *event, G_GNUC_UNUSED gpointer data
canvas->scroll_x1 + (canvas->width - event->x) / canvas->pixels_per_unit:
canvas->scroll_x1 + event->x / canvas->pixels_per_unit;
y = canvas->scroll_y1 + event->y / canvas->pixels_per_unit;
- if (canvas->grabbed_item != NULL)
+ if (canvas->grabbed_item != NULL)
item = canvas->grabbed_item;
else
item = goc_canvas_get_item_at (canvas, x, y);
@@ -133,7 +133,7 @@ motion_cb (GocCanvas *canvas, GdkEventMotion *event, G_GNUC_UNUSED gpointer data
canvas->last_item = item;
klass->enter_notify (item, x, y);
}
- return klass->motion (item, x, y);
+ return klass->motion (item, x, y);
}
canvas->cur_event = NULL;
return FALSE;
@@ -168,7 +168,7 @@ enter_notify_cb (GocCanvas *canvas, GdkEventCrossing* event, G_GNUC_UNUSED gpoin
canvas->scroll_x1 + (canvas->width - event->x) / canvas->pixels_per_unit:
canvas->scroll_x1 + event->x / canvas->pixels_per_unit;
y = canvas->scroll_y1 + event->y / canvas->pixels_per_unit;
- item = goc_canvas_get_item_at (canvas, x, y);;
+ item = goc_canvas_get_item_at (canvas, x, y);;
if (item) {
canvas->last_item = item;
return GOC_ITEM_GET_CLASS (item)->enter_notify (item, x, y);
@@ -247,7 +247,7 @@ goc_canvas_init (GocCanvas *canvas)
GDK_BUTTON_RELEASE_MASK |
GDK_KEY_PRESS_MASK |
GDK_KEY_RELEASE_MASK |
- GDK_ENTER_NOTIFY_MASK
+ GDK_ENTER_NOTIFY_MASK
);
g_signal_connect (G_OBJECT (w), "button-press-event", G_CALLBACK (button_press_cb), NULL);
g_signal_connect (G_OBJECT (w), "button-release-event", G_CALLBACK (button_release_cb), NULL);
diff --git a/goffice/canvas/goc-canvas.h b/goffice/canvas/goc-canvas.h
index 84ac411..c6923a3 100644
--- a/goffice/canvas/goc-canvas.h
+++ b/goffice/canvas/goc-canvas.h
@@ -1,11 +1,11 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goc-canvas.h :
+ * goc-canvas.h :
*
* Copyright (C) 2008 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
diff --git a/goffice/canvas/goc-circle.c b/goffice/canvas/goc-circle.c
index f3ba07e..44de3df 100644
--- a/goffice/canvas/goc-circle.c
+++ b/goffice/canvas/goc-circle.c
@@ -1,11 +1,11 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goc-circle.c :
+ * goc-circle.c :
*
* Copyright (C) 2009 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
@@ -80,7 +80,7 @@ goc_circle_get_property (GObject *gobject, guint param_id,
default: G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, param_id, pspec);
return; /* NOTE : RETURN */
- }
+ }
}
static double
@@ -156,19 +156,19 @@ goc_circle_class_init (GocItemClass *item_klass)
obj_klass->get_property = goc_circle_get_property;
obj_klass->set_property = goc_circle_set_property;
g_object_class_install_property (obj_klass, CIRCLE_PROP_X,
- g_param_spec_double ("x",
+ g_param_spec_double ("x",
_("x"),
_("The circle center horizontal position"),
-G_MAXDOUBLE, G_MAXDOUBLE, 0.,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (obj_klass, CIRCLE_PROP_Y,
- g_param_spec_double ("y",
+ g_param_spec_double ("y",
_("y"),
_("The circle center vertical position"),
-G_MAXDOUBLE, G_MAXDOUBLE, 0.,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (obj_klass, CIRCLE_PROP_R,
- g_param_spec_double ("radius",
+ g_param_spec_double ("radius",
_("Radius"),
_("The circle radius"),
0., G_MAXDOUBLE, 0.,
diff --git a/goffice/canvas/goc-circle.h b/goffice/canvas/goc-circle.h
index 9c3f7e9..9f63acd 100644
--- a/goffice/canvas/goc-circle.h
+++ b/goffice/canvas/goc-circle.h
@@ -1,11 +1,11 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goc-circle.h :
+ * goc-circle.h :
*
* Copyright (C) 2009 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
diff --git a/goffice/canvas/goc-ellipse.c b/goffice/canvas/goc-ellipse.c
index 7570aa8..dabac50 100644
--- a/goffice/canvas/goc-ellipse.c
+++ b/goffice/canvas/goc-ellipse.c
@@ -1,11 +1,11 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goc-ellipse.c :
+ * goc-ellipse.c :
*
* Copyright (C) 2009 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
@@ -164,7 +164,7 @@ goc_ellipse_distance (GocItem *item, double x, double y, GocItem **near_item)
static void
goc_ellipse_draw (GocItem const *item, cairo_t *cr)
-{
+{
GocEllipse *ellipse = GOC_ELLIPSE (item);
double scalex = (ellipse->width > 0.)? ellipse->width / 2.: 1.e-10,
scaley = (ellipse->height > 0.)? ellipse->height / 2.: 1.e-10;
@@ -221,19 +221,19 @@ goc_ellipse_class_init (GocItemClass *item_klass)
-G_MAXDOUBLE, G_MAXDOUBLE, 0.,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (obj_klass, ELLIPSE_PROP_W,
- g_param_spec_double ("width",
+ g_param_spec_double ("width",
_("Width"),
_("The rectangle width"),
0., G_MAXDOUBLE, 0.,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (obj_klass, ELLIPSE_PROP_H,
- g_param_spec_double ("height",
+ g_param_spec_double ("height",
_("Height"),
_("The rectangle height"),
0., G_MAXDOUBLE, 0.,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
/* g_object_class_install_property (obj_klass, ELLIPSE_PROP_ROTATION,
- g_param_spec_double ("rotation",
+ g_param_spec_double ("rotation",
_("Rotation"),
_("The rotation around top left position"),
0., 2 * M_PI, 0.,
diff --git a/goffice/canvas/goc-ellipse.h b/goffice/canvas/goc-ellipse.h
index ec44486..13c40bb 100644
--- a/goffice/canvas/goc-ellipse.h
+++ b/goffice/canvas/goc-ellipse.h
@@ -1,11 +1,11 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goc-ellipse.h :
+ * goc-ellipse.h :
*
* Copyright (C) 2009 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
diff --git a/goffice/canvas/goc-graph.c b/goffice/canvas/goc-graph.c
index fec97f4..ee280ff 100644
--- a/goffice/canvas/goc-graph.c
+++ b/goffice/canvas/goc-graph.c
@@ -223,13 +223,13 @@ goc_graph_class_init (GocItemClass *item_klass)
obj_klass->finalize = goc_graph_finalize;
g_object_class_install_property (obj_klass, GRAPH_PROP_X,
- g_param_spec_double ("x",
+ g_param_spec_double ("x",
_("x"),
_("The graph left position"),
-G_MAXDOUBLE, G_MAXDOUBLE, 0.,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (obj_klass, GRAPH_PROP_Y,
- g_param_spec_double ("y",
+ g_param_spec_double ("y",
_("y"),
_("The graph top position"),
-G_MAXDOUBLE, G_MAXDOUBLE, 0.,
diff --git a/goffice/canvas/goc-group.c b/goffice/canvas/goc-group.c
index 5fd1ec3..48a3574 100644
--- a/goffice/canvas/goc-group.c
+++ b/goffice/canvas/goc-group.c
@@ -1,11 +1,11 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goc-group.c :
+ * goc-group.c :
*
* Copyright (C) 2008-2009 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
@@ -157,7 +157,7 @@ goc_group_distance (GocItem *item, double x, double y, GocItem **near_item)
y -= group->y;
for (l = g_list_last (group->children); l; l = g_list_previous (l)) {
GocItem *it = GOC_ITEM (l->data);
- if (!it->visible || it->x0 > x + th || it->x1 < x - th
+ if (!it->visible || it->x0 > x + th || it->x1 < x - th
|| it->y0 > y + th || it->y1 < y - th)
continue;
dist = goc_item_distance (GOC_ITEM (l->data), x, y, &cur_item);
@@ -243,13 +243,13 @@ goc_group_class_init (GocItemClass *item_klass)
obj_klass->set_property = goc_group_set_property;
obj_klass->finalize = goc_group_finalize;
g_object_class_install_property (obj_klass, GROUP_PROP_X,
- g_param_spec_double ("x",
+ g_param_spec_double ("x",
_("x"),
_("The group horizontal offset"),
-G_MAXDOUBLE, G_MAXDOUBLE, 0.,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (obj_klass, GROUP_PROP_Y,
- g_param_spec_double ("y",
+ g_param_spec_double ("y",
_("y"),
_("The group vertical offset"),
-G_MAXDOUBLE, G_MAXDOUBLE, 0.,
diff --git a/goffice/canvas/goc-group.h b/goffice/canvas/goc-group.h
index 53796b9..b854040 100644
--- a/goffice/canvas/goc-group.h
+++ b/goffice/canvas/goc-group.h
@@ -1,11 +1,11 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goc-group.h :
+ * goc-group.h :
*
* Copyright (C) 2008 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
diff --git a/goffice/canvas/goc-item.c b/goffice/canvas/goc-item.c
index adb66ec..0d9540d 100644
--- a/goffice/canvas/goc-item.c
+++ b/goffice/canvas/goc-item.c
@@ -1,11 +1,11 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goc-item.c :
+ * goc-item.c :
*
* Copyright (C) 2008-2009 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
@@ -314,8 +314,8 @@ goc_item_grab (GocItem *item)
return;
g_return_if_fail (GOC_IS_ITEM (item));
goc_canvas_grab_item (item->canvas, item);
-}
-
+}
+
void
goc_item_ungrab (GocItem *item)
{
diff --git a/goffice/canvas/goc-item.h b/goffice/canvas/goc-item.h
index 4ddbbf9..6a25af7 100644
--- a/goffice/canvas/goc-item.h
+++ b/goffice/canvas/goc-item.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goc-item.h :
+ * goc-item.h :
*
* Copyright (C) 2008-2009 Jean Brefort (jean brefort normalesup org)
*
diff --git a/goffice/canvas/goc-line.c b/goffice/canvas/goc-line.c
index aadd955..4f590a0 100644
--- a/goffice/canvas/goc-line.c
+++ b/goffice/canvas/goc-line.c
@@ -1,11 +1,11 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goc-line.c :
+ * goc-line.c :
*
* Copyright (C) 2009 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
diff --git a/goffice/canvas/goc-line.h b/goffice/canvas/goc-line.h
index 86290ef..085920c 100644
--- a/goffice/canvas/goc-line.h
+++ b/goffice/canvas/goc-line.h
@@ -1,11 +1,11 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goc-line.h :
+ * goc-line.h :
*
* Copyright (C) 2009 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
diff --git a/goffice/canvas/goc-pixbuf.c b/goffice/canvas/goc-pixbuf.c
index 05ba35d..a13db8a 100644
--- a/goffice/canvas/goc-pixbuf.c
+++ b/goffice/canvas/goc-pixbuf.c
@@ -209,7 +209,7 @@ goc_pixbuf_draw (GocItem const *item, cairo_t *cr)
if (scalex != 1. || scaley != 1.) {
cairo_matrix_init_scale (&mat, 1. / scalex, 1. /scaley);
cairo_pattern_set_matrix (pat, &mat);
- }
+ }
cairo_rectangle (cr, 0., 0., ceil (width), ceil (height));
cairo_set_source (cr, pat);
cairo_pattern_destroy (pat);
@@ -240,19 +240,19 @@ goc_pixbuf_class_init (GocItemClass *item_klass)
-G_MAXDOUBLE, G_MAXDOUBLE, 0.,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (obj_klass, PIXBUF_PROP_W,
- g_param_spec_double ("width",
+ g_param_spec_double ("width",
_("Width"),
_("The image width or -1 to use the image width"),
-G_MAXDOUBLE, G_MAXDOUBLE, 0.,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (obj_klass, PIXBUF_PROP_H,
- g_param_spec_double ("height",
+ g_param_spec_double ("height",
_("Height"),
_("The image height or -1 to use the image height"),
-G_MAXDOUBLE, G_MAXDOUBLE, 0.,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
/* g_object_class_install_property (obj_klass, PIXBUF_PROP_ROTATION,
- g_param_spec_double ("rotation",
+ g_param_spec_double ("rotation",
_("Rotation"),
_("The rotation around top left position"),
0., 2 * M_PI, 0.,
diff --git a/goffice/canvas/goc-polygon.c b/goffice/canvas/goc-polygon.c
index 732155d..233ec8e 100644
--- a/goffice/canvas/goc-polygon.c
+++ b/goffice/canvas/goc-polygon.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goc-polygon.c :
+ * goc-polygon.c :
*
* Copyright (C) 2008 Jean Brefort (jean brefort normalesup org)
*
@@ -227,10 +227,10 @@ goc_polygon_class_init (GocItemClass *item_klass)
GOC_TYPE_POINTS,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (obj_klass, POLYGON_PROP_SPLINE,
- g_param_spec_boolean ("use-spline",
+ g_param_spec_boolean ("use-spline",
_("Use spline"),
_("Use a Bezier closed cubic spline as contour"),
- FALSE,
+ FALSE,
GSF_PARAM_STATIC | G_PARAM_READABLE));
item_klass->update_bounds = goc_polygon_update_bounds;
diff --git a/goffice/canvas/goc-polygon.h b/goffice/canvas/goc-polygon.h
index 6d2aa5c..2d7a494 100644
--- a/goffice/canvas/goc-polygon.h
+++ b/goffice/canvas/goc-polygon.h
@@ -1,11 +1,11 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goc-polygon.h :
+ * goc-polygon.h :
*
* Copyright (C) 2008 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
diff --git a/goffice/canvas/goc-polyline.c b/goffice/canvas/goc-polyline.c
index ade0491..fdd81f8 100644
--- a/goffice/canvas/goc-polyline.c
+++ b/goffice/canvas/goc-polyline.c
@@ -1,11 +1,11 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goc-polyline.c :
+ * goc-polyline.c :
*
* Copyright (C) 2009 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
@@ -204,10 +204,10 @@ goc_polyline_class_init (GocItemClass *item_klass)
GOC_TYPE_POINTS,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (obj_klass, POLYLINE_PROP_SPLINE,
- g_param_spec_boolean ("use-spline",
+ g_param_spec_boolean ("use-spline",
_("Use spline"),
_("Use a Bezier cubic spline as line"),
- FALSE,
+ FALSE,
GSF_PARAM_STATIC | G_PARAM_READABLE));
item_klass->update_bounds = goc_polyline_update_bounds;
diff --git a/goffice/canvas/goc-polyline.h b/goffice/canvas/goc-polyline.h
index 0cf7fd9..ce7c352 100644
--- a/goffice/canvas/goc-polyline.h
+++ b/goffice/canvas/goc-polyline.h
@@ -1,11 +1,11 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goc-polyline.h :
+ * goc-polyline.h :
*
* Copyright (C) 2009 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
diff --git a/goffice/canvas/goc-rectangle.c b/goffice/canvas/goc-rectangle.c
index 2f57896..8e34ff3 100644
--- a/goffice/canvas/goc-rectangle.c
+++ b/goffice/canvas/goc-rectangle.c
@@ -202,19 +202,19 @@ goc_rectangle_class_init (GocItemClass *item_klass)
-G_MAXDOUBLE, G_MAXDOUBLE, 0.,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (obj_klass, RECT_PROP_W,
- g_param_spec_double ("width",
+ g_param_spec_double ("width",
_("Width"),
_("The rectangle width"),
0., G_MAXDOUBLE, 0.,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (obj_klass, RECT_PROP_H,
- g_param_spec_double ("height",
+ g_param_spec_double ("height",
_("Height"),
_("The rectangle height"),
0., G_MAXDOUBLE, 0.,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
/* g_object_class_install_property (obj_klass, RECT_PROP_ROTATION,
- g_param_spec_double ("rotation",
+ g_param_spec_double ("rotation",
_("Rotation"),
_("The rotation around top left position"),
0., 2 * M_PI, 0.,
diff --git a/goffice/canvas/goc-rectangle.h b/goffice/canvas/goc-rectangle.h
index bb94bac..f02d579 100644
--- a/goffice/canvas/goc-rectangle.h
+++ b/goffice/canvas/goc-rectangle.h
@@ -1,11 +1,11 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goc-rectangle.h :
+ * goc-rectangle.h :
*
* Copyright (C) 2008 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
diff --git a/goffice/canvas/goc-structs.h b/goffice/canvas/goc-structs.h
index 0a594c0..c05c623 100644
--- a/goffice/canvas/goc-structs.h
+++ b/goffice/canvas/goc-structs.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goc-structs.h :
+ * goc-structs.h :
*
* Copyright (C) 2008-2009 Jean Brefort (jean brefort normalesup org)
*
diff --git a/goffice/canvas/goc-styled-item.c b/goffice/canvas/goc-styled-item.c
index 5cf9351..bfc52ae 100644
--- a/goffice/canvas/goc-styled-item.c
+++ b/goffice/canvas/goc-styled-item.c
@@ -1,11 +1,11 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goc-styled-item.c :
+ * goc-styled-item.c :
*
* Copyright (C) 2009 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
@@ -39,7 +39,7 @@ enum {
};
static void goc_styled_item_style_changed (GOStyledObject *obj);
-
+
static gulong goc_styled_item_signals [LAST_SIGNAL] = { 0, };
static GObjectClass *parent_klass;
@@ -54,7 +54,7 @@ goc_styled_item_set_property (GObject *obj, guint param_id,
switch (param_id) {
case STYLED_ITEM_PROP_STYLE :
- resize = go_styled_object_set_style (GO_STYLED_OBJECT (gsi),
+ resize = go_styled_object_set_style (GO_STYLED_OBJECT (gsi),
g_value_get_object (value));
break;
@@ -134,10 +134,10 @@ goc_styled_item_class_init (GocItemClass *goc_klass)
style_klass->init_style = goc_styled_item_init_style;
g_object_class_install_property (gobject_klass, STYLED_ITEM_PROP_STYLE,
- g_param_spec_object ("style",
+ g_param_spec_object ("style",
_("Style"),
_("A pointer to the GOStyle object"),
- go_style_get_type (),
+ go_style_get_type (),
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, STYLED_ITEM_SCALE_LINE_WIDTH,
g_param_spec_boolean ("scale-line-width",
@@ -242,7 +242,7 @@ goc_styled_item_set_cairo_line (GocStyledItem const *gsi, cairo_t *cr)
if (gsi->scale_line_width) {
width = gsi->style->line.width;
gsi->style->line.width *= goc_canvas_get_pixels_per_unit (GOC_ITEM (gsi)->canvas);
- }
+ }
result = go_styled_object_set_cairo_line (GO_STYLED_OBJECT (gsi), cr);
/* restore the line width */
if (gsi->scale_line_width)
diff --git a/goffice/canvas/goc-styled-item.h b/goffice/canvas/goc-styled-item.h
index 107ba88..3f8e52a 100644
--- a/goffice/canvas/goc-styled-item.h
+++ b/goffice/canvas/goc-styled-item.h
@@ -1,11 +1,11 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goc-styled-item.h :
+ * goc-styled-item.h :
*
* Copyright (C) 2009 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
diff --git a/goffice/canvas/goc-text.c b/goffice/canvas/goc-text.c
index b44d389..34dbc78 100644
--- a/goffice/canvas/goc-text.c
+++ b/goffice/canvas/goc-text.c
@@ -4,8 +4,8 @@
*
* Copyright (C) 2009 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
@@ -351,7 +351,7 @@ goc_text_draw (GocItem const *item, cairo_t *cr)
cairo_move_to (cr, 0., 0.);
if (text->clip_height > 0. && text->clip_width > 0.) {
cairo_rectangle (cr, 0., 0., text->clip_width, text->clip_height);
- cairo_clip (cr);
+ cairo_clip (cr);
}
pango_cairo_show_layout (cr, pl);
cairo_restore (cr);
@@ -400,19 +400,19 @@ goc_text_class_init (GocItemClass *item_klass)
-G_MAXDOUBLE, G_MAXDOUBLE, 0.,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (obj_klass, TEXT_PROP_ROTATION,
- g_param_spec_double ("rotation",
+ g_param_spec_double ("rotation",
_("Rotation"),
_("The rotation around the anchor"),
0., 2 * M_PI, 0.,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (obj_klass, TEXT_PROP_ANCHOR,
- g_param_spec_enum ("anchor",
+ g_param_spec_enum ("anchor",
_("Anchor"),
_("The anchor point for the text"),
GTK_TYPE_ANCHOR_TYPE, GTK_ANCHOR_CENTER,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (obj_klass, TEXT_PROP_TEXT,
- g_param_spec_string ("text",
+ g_param_spec_string ("text",
_("Text"),
_("The text to display"), NULL,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
diff --git a/goffice/canvas/goc-text.h b/goffice/canvas/goc-text.h
index 4d25685..8936afd 100644
--- a/goffice/canvas/goc-text.h
+++ b/goffice/canvas/goc-text.h
@@ -4,8 +4,8 @@
*
* Copyright (C) 2009 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
diff --git a/goffice/canvas/goc-utils.c b/goffice/canvas/goc-utils.c
index 8f12c5b..5eefc3e 100644
--- a/goffice/canvas/goc-utils.c
+++ b/goffice/canvas/goc-utils.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goc-utils.c :
+ * goc-utils.c :
*
* Copyright (C) 2008 Jean Brefort (jean brefort normalesup org)
*
diff --git a/goffice/canvas/goc-utils.h b/goffice/canvas/goc-utils.h
index 6246bc8..3976d16 100644
--- a/goffice/canvas/goc-utils.h
+++ b/goffice/canvas/goc-utils.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goc-utils.h :
+ * goc-utils.h :
*
* Copyright (C) 2008 Jean Brefort (jean brefort normalesup org)
*
diff --git a/goffice/canvas/goc-widget.c b/goffice/canvas/goc-widget.c
index 3ceb3d3..5076fa3 100644
--- a/goffice/canvas/goc-widget.c
+++ b/goffice/canvas/goc-widget.c
@@ -138,7 +138,7 @@ goc_widget_set_property (GObject *obj, guint param_id,
goc_item_bounds_changed (GOC_ITEM (item));
goc_widget_notify_scrolled (GOC_ITEM (item));
}
-
+
}
static void
@@ -222,34 +222,34 @@ goc_widget_class_init (GocItemClass *item_klass)
obj_klass->get_property = goc_widget_get_property;
obj_klass->set_property = goc_widget_set_property;
-
+
g_object_class_install_property (obj_klass, WIDGET_PROP_WIDGET,
- g_param_spec_object ("widget",
+ g_param_spec_object ("widget",
_("Widget"),
_("A pointer to the embedded widget"),
- GTK_TYPE_WIDGET,
+ GTK_TYPE_WIDGET,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (obj_klass, WIDGET_PROP_X,
- g_param_spec_double ("x",
+ g_param_spec_double ("x",
_("x"),
_("The widget left position"),
-G_MAXDOUBLE, G_MAXDOUBLE, 0.,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (obj_klass, WIDGET_PROP_Y,
- g_param_spec_double ("y",
+ g_param_spec_double ("y",
_("y"),
_("The widget top position"),
-G_MAXDOUBLE, G_MAXDOUBLE, 0.,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
/* Setting max size to 2048 which should be enough for all uses */
g_object_class_install_property (obj_klass, WIDGET_PROP_W,
- g_param_spec_double ("width",
+ g_param_spec_double ("width",
_("Width"),
_("The widget width"),
0., 2048., 0.,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (obj_klass, WIDGET_PROP_H,
- g_param_spec_double ("height",
+ g_param_spec_double ("height",
_("Height"),
_("The widget height"),
0., 2048., 0.,
diff --git a/goffice/canvas/goffice-canvas.h b/goffice/canvas/goffice-canvas.h
index 6e9c089..d664085 100644
--- a/goffice/canvas/goffice-canvas.h
+++ b/goffice/canvas/goffice-canvas.h
@@ -1,11 +1,11 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goffice-canvas.h :
+ * goffice-canvas.h :
*
* Copyright (C) 2008-2009 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
diff --git a/goffice/component/go-component-factory.c b/goffice/component/go-component-factory.c
index dc603f2..3fde349 100644
--- a/goffice/component/go-component-factory.c
+++ b/goffice/component/go-component-factory.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-component-factory.c :
+ * go-component-factory.c :
*
* Copyright (C) 2005 Jean Brefort (jean brefort normalesup org)
*
diff --git a/goffice/component/go-component-factory.h b/goffice/component/go-component-factory.h
index 549a1d6..475a2ec 100644
--- a/goffice/component/go-component-factory.h
+++ b/goffice/component/go-component-factory.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-component-factory.h :
+ * go-component-factory.h :
*
* Copyright (C) 2005 Jean Brefort (jean brefort normalesup org)
*
diff --git a/goffice/component/go-component.c b/goffice/component/go-component.c
index 305adfa..8196a03 100644
--- a/goffice/component/go-component.c
+++ b/goffice/component/go-component.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-component.c :
+ * go-component.c :
*
* Copyright (C) 2005 Jean Brefort (jean brefort normalesup org)
*
@@ -83,7 +83,7 @@ go_component_get_property (GObject *obj, guint param_id,
switch (param_id) {
case COMPONENT_PROP_MIME_TYPE:
g_value_set_string (value, component->mime_type);
- break;
+ break;
case COMPONENT_PROP_WIDTH:
g_value_set_double (value, component->width);
break;
diff --git a/goffice/component/go-component.h b/goffice/component/go-component.h
index fe88ec2..90111ac 100644
--- a/goffice/component/go-component.h
+++ b/goffice/component/go-component.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-component.h :
+ * go-component.h :
*
* Copyright (C) 2005 Jean Brefort (jean brefort normalesup org)
*
diff --git a/goffice/component/goffice-component.h b/goffice/component/goffice-component.h
index 1de115d..912b44e 100644
--- a/goffice/component/goffice-component.h
+++ b/goffice/component/goffice-component.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goffice-component.h :
+ * goffice-component.h :
*
* Copyright (C) 2005 Jean Brefort (jean brefort normalesup org)
*
diff --git a/goffice/data/go-data-impl.h b/goffice/data/go-data-impl.h
index d3f60c4..81b1525 100644
--- a/goffice/data/go-data-impl.h
+++ b/goffice/data/go-data-impl.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-data-impl.h :
+ * go-data-impl.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/data/go-data-simple.c b/goffice/data/go-data-simple.c
index 5a2f919..641ec4d 100644
--- a/goffice/data/go-data-simple.c
+++ b/goffice/data/go-data-simple.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-data-simple.c :
+ * go-data-simple.c :
*
* Copyright (C) 2003-2005 Jody Goldberg (jody gnome org)
*
@@ -477,11 +477,11 @@ struct _GODataVectorStr {
GODataVector base;
char const * const *str;
int n;
- GDestroyNotify notify;
+ GDestroyNotify notify;
GOTranslateFunc translate_func;
gpointer translate_data;
- GDestroyNotify translate_notify;
+ GDestroyNotify translate_notify;
};
typedef GODataVectorClass GODataVectorStrClass;
@@ -617,7 +617,7 @@ go_data_vector_str_unserialize (GOData *dat, char const *str, gpointer user)
/* string containg quotes are not allowed */
g_array_free (values, TRUE);
return FALSE;
- }
+ }
cur = end + 1;
}
}
@@ -739,9 +739,9 @@ go_data_vector_str_new (char const * const *str, unsigned n, GDestroyNotify noti
* @vector: a #GODataVectorStr
* @func: a #GOTranslateFunc
* @data: data to be passed to @func and @notify
- * @notify: a #GODestroyNotify function to be called when @vec is
+ * @notify: a #GODestroyNotify function to be called when @vec is
* destroyed or when the translation function is changed
- *
+ *
* Sets a function to be used for translating elements of @vec
**/
void
@@ -761,7 +761,7 @@ go_data_vector_str_set_translate_func (GODataVectorStr *vec,
}
static char const *
-dgettext_swapped (char const *msgid,
+dgettext_swapped (char const *msgid,
char const *domainname)
{
return dgettext (domainname, msgid);
@@ -771,23 +771,23 @@ dgettext_swapped (char const *msgid,
* go_data_vector_str_set_translation_domain:
* @vector: a #GODataVectorStr
* @domain: the translation domain to use for dgettext() calls
- *
- * Sets the translation domain and uses dgettext() for translating the
+ *
+ * Sets the translation domain and uses dgettext() for translating the
* elements of @vec.
* Note that libgoffice expects all strings to be encoded in UTF-8, therefore
* the translation domain must have its codeset set to UTF-8, see
- * bind_textdomain_codeset() in the gettext() documentation.
+ * bind_textdomain_codeset() in the gettext() documentation.
*
- * If you're not using gettext() for localization, see
+ * If you're not using gettext() for localization, see
* go_data_vector_str_set_translate_func().
**/
-void
+void
go_data_vector_str_set_translation_domain (GODataVectorStr *vec,
char const *domain)
{
g_return_if_fail (GO_DATA_VECTOR_STR (vec) != NULL);
- go_data_vector_str_set_translate_func (vec,
+ go_data_vector_str_set_translate_func (vec,
(GOTranslateFunc)dgettext_swapped, g_strdup (domain), g_free);
}
/*****************************************************************************/
diff --git a/goffice/data/go-data-simple.h b/goffice/data/go-data-simple.h
index cb813ee..35864c6 100644
--- a/goffice/data/go-data-simple.h
+++ b/goffice/data/go-data-simple.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-data-simple.h :
+ * go-data-simple.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/data/go-data.c b/goffice/data/go-data.c
index 2c49716..15f77c5 100644
--- a/goffice/data/go-data.c
+++ b/goffice/data/go-data.c
@@ -95,7 +95,7 @@ GSF_CLASS_ABSTRACT (GOData, go_data,
G_TYPE_OBJECT)
/**
- * go_data_dup :
+ * go_data_dup :
* @src : #GOData
*
* Returns: A deep copy of @src.
diff --git a/goffice/data/go-data.h b/goffice/data/go-data.h
index 68008f1..75b0481 100644
--- a/goffice/data/go-data.h
+++ b/goffice/data/go-data.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-data.h :
+ * go-data.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/data/goffice-data.h b/goffice/data/goffice-data.h
index ed5b239..d33eab4 100644
--- a/goffice/data/goffice-data.h
+++ b/goffice/data/goffice-data.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goffice-data.h:
+ * goffice-data.h:
*
* Copyright (C) 2005 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/drawing/god-drawing-renderer-cairo.c b/goffice/drawing/god-drawing-renderer-cairo.c
index 884cd51..89505cd 100644
--- a/goffice/drawing/god-drawing-renderer-cairo.c
+++ b/goffice/drawing/god-drawing-renderer-cairo.c
@@ -216,7 +216,7 @@ draw_text (GodTextModel *text,
pango_layout_set_auto_dir (layout, FALSE);
g_print ("bullet_size = %f\n", bullet_size);
#if 0
- pango_font_description_set_size (bullet_desc,
+ pango_font_description_set_size (bullet_desc,
bullet_size * 100.0 * PANGO_SCALE * 72.0 / 96.0);
#endif
pango_font_description_set_size (bullet_desc, pango_font_description_get_size (bullet_desc) * sqrt (bullet_size));
@@ -229,7 +229,7 @@ draw_text (GodTextModel *text,
GO_UN_TO_PT ((double)draw_context->y_ofs));
pango_cairo_show_layout (context, layout);
cairo_restore (context);
-
+
pango_font_description_free (bullet_desc);
g_object_unref (layout);
layout = NULL;
diff --git a/goffice/drawing/god-drawing-renderer-gdk.c b/goffice/drawing/god-drawing-renderer-gdk.c
index b7f58d5..afc6cab 100644
--- a/goffice/drawing/god-drawing-renderer-gdk.c
+++ b/goffice/drawing/god-drawing-renderer-gdk.c
@@ -338,7 +338,7 @@ draw_text (GodTextModel *text,
pango_layout_set_text (layout, utf8, length);
pango_layout_set_auto_dir (layout, FALSE);
#if 0
- pango_font_description_set_absolute_size (bullet_desc,
+ pango_font_description_set_absolute_size (bullet_desc,
GO_PT_TO_UN ((GODistance) bullet_size * PANGO_SCALE) /
draw_context->renderer->priv->y_units_per_pixel);
#endif
@@ -430,7 +430,7 @@ god_drawing_renderer_gdk_render_shape (GodDrawingRendererGdk *renderer,
scale_x,
scale_y,
GDK_INTERP_HYPER);
-
+
gdk_draw_pixbuf (renderer->priv->drawable,
renderer->priv->gc,
diff --git a/goffice/drawing/god-image-store.c b/goffice/drawing/god-image-store.c
index f602350..2175acd 100644
--- a/goffice/drawing/god-image-store.c
+++ b/goffice/drawing/god-image-store.c
@@ -37,7 +37,7 @@ struct GodImageStorePrivate_ {
static GPtrArray*
g_ptr_array_insert_val (GPtrArray *array,
guint index,
- gpointer data)
+ gpointer data)
{
g_ptr_array_add (array, data);
memmove (array->pdata + index + 1,
diff --git a/goffice/drawing/god-shape.c b/goffice/drawing/god-shape.c
index 636c14d..8c99f93 100644
--- a/goffice/drawing/god-shape.c
+++ b/goffice/drawing/god-shape.c
@@ -41,7 +41,7 @@ struct GodShapePrivate_ {
static GPtrArray*
g_ptr_array_insert_val (GPtrArray *array,
guint index,
- gpointer data)
+ gpointer data)
{
g_ptr_array_add (array, data);
memmove (array->pdata + index + 1,
diff --git a/goffice/drawing/god-text-model.c b/goffice/drawing/god-text-model.c
index c99aa7c..8962f4b 100644
--- a/goffice/drawing/god-text-model.c
+++ b/goffice/drawing/god-text-model.c
@@ -177,7 +177,7 @@ real_god_text_model_set_text (GodTextModel *text,
g_free (text->priv->text_cache);
text->priv->text_cache = NULL;
-
+
if (text->priv->paragraphs) {
for (i = 0; i < text->priv->paragraphs->len; i++) {
g_free (PARAGRAPH(i)->text);
@@ -190,7 +190,7 @@ real_god_text_model_set_text (GodTextModel *text,
}
text->priv->paragraphs = g_array_new (TRUE, TRUE, sizeof (GodTextModelParagraph));
-
+
paras = g_strsplit (text_value, "\r", 0);
for (i = 0; paras[i]; i++) {
GodTextModelParagraph paragraph;
diff --git a/goffice/goffice-priv.h b/goffice/goffice-priv.h
index 13aa743..50c9fea 100644
--- a/goffice/goffice-priv.h
+++ b/goffice/goffice-priv.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goffice-priv.h :
+ * goffice-priv.h :
*
* Copyright (C) 2005 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/goffice.c b/goffice/goffice.c
index 7700cc0..4e40598 100644
--- a/goffice/goffice.c
+++ b/goffice/goffice.c
@@ -98,7 +98,7 @@ libgoffice_init (void)
gchar *dir;
#define S(s) #s
- char const *module_name =
+ char const *module_name =
"libgoffice-" S(GO_VERSION_EPOCH) "-" S(GO_VERSION_MAJOR) ".dll";
#undef S
wchar_t *wc_module_name = g_utf8_to_utf16 (module_name, -1, NULL, NULL, NULL);
diff --git a/goffice/goffice.h b/goffice/goffice.h
index 8beba2d..cac7f58 100644
--- a/goffice/goffice.h
+++ b/goffice/goffice.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goffice.h :
+ * goffice.h :
*
* Copyright (C) 2003-2005 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/graph/goffice-graph.h b/goffice/graph/goffice-graph.h
index 7109520..9386aae 100644
--- a/goffice/graph/goffice-graph.h
+++ b/goffice/graph/goffice-graph.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goffice-graph.h:
+ * goffice-graph.h:
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
@@ -186,9 +186,9 @@ typedef enum {
GOG_POSITION_ANCHOR_W = 7 << 12,
GOG_POSITION_ANCHOR_CENTER = 8 << 12,
GOG_POSITION_ANCHOR = 0xf000,
-
+
GOG_POSITION_ANY_MANUAL = 0xff80,
-
+
GOG_POSITION_PADDING = 1 << 16
} GogObjectPosition;
diff --git a/goffice/graph/gog-3d-box.c b/goffice/graph/gog-3d-box.c
index 1b0a4d2..208683f 100644
--- a/goffice/graph/gog-3d-box.c
+++ b/goffice/graph/gog-3d-box.c
@@ -61,7 +61,7 @@ cb_matrix_changed (GO3DRotationSel *g3d, GObject *gobj)
box->psi = go_3d_rotation_sel_get_psi (g3d);
box->theta = go_3d_rotation_sel_get_theta (g3d);
box->phi = go_3d_rotation_sel_get_phi (g3d);
-
+
gog_object_emit_changed (gog_object_get_parent (GOG_OBJECT (gobj)),
TRUE);
}
@@ -72,7 +72,7 @@ cb_fov_changed (GO3DRotationSel *g3d, int angle, GObject *gobj)
Gog3DBox *box = GOG_3D_BOX (gobj);
box->fov = angle * M_PI / 180;
-
+
gog_object_emit_changed (gog_object_get_parent (GOG_OBJECT (gobj)),
TRUE);
}
@@ -150,9 +150,9 @@ cb_g3d_change_phi (GO3DRotationSel *g3d, int angle, GObject *gobj)
}
static void
-gog_3d_box_populate_editor (GogObject *gobj,
- GOEditor *editor,
- GogDataAllocator *dalloc,
+gog_3d_box_populate_editor (GogObject *gobj,
+ GOEditor *editor,
+ GogDataAllocator *dalloc,
GOCmdContext *cc)
{
GtkWidget *w;
@@ -211,7 +211,7 @@ gog_3d_box_populate_editor (GogObject *gobj,
w = go_gtk_builder_get_widget (gui, "gog_3d_box_prefs");
g_object_set_data_full (G_OBJECT (w),
"state", gui, (GDestroyNotify) g_object_unref);
-
+
go_editor_add_page (editor, w, _("Advanced"));
}
@@ -253,7 +253,7 @@ gog_3d_box_get_property (GObject *obj, guint param_id,
case BOX3D_PROP_PSI:
g_value_set_int (value, (int) (box->psi * 180. / M_PI));
break;
- case BOX3D_PROP_THETA:
+ case BOX3D_PROP_THETA:
g_value_set_int (value, (int) (box->theta * 180. / M_PI));
break;
case BOX3D_PROP_PHI:
@@ -276,31 +276,31 @@ gog_3d_box_class_init (Gog3DBoxClass *klass)
gobject_klass->set_property = gog_3d_box_set_property;
gobject_klass->get_property = gog_3d_box_get_property;
-
+
/* Using 3.141593 instead of M_PI to avoid rounding errors */
g_object_class_install_property (gobject_klass, BOX3D_PROP_PSI,
- g_param_spec_int ("psi",
+ g_param_spec_int ("psi",
"Psi",
_("Euler angle psi"),
- 0, 360, 70,
+ 0, 360, 70,
G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE
| GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, BOX3D_PROP_THETA,
- g_param_spec_int ("theta",
+ g_param_spec_int ("theta",
"Theta",
_("Euler angle theta"),
- 0, 360, 10,
+ 0, 360, 10,
G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE
| GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, BOX3D_PROP_PHI,
- g_param_spec_int ("phi",
+ g_param_spec_int ("phi",
"Phi",
_("Euler angle phi"),
- 0, 360, 270,
+ 0, 360, 270,
G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE
| GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, BOX3D_PROP_FOV,
- g_param_spec_int ("fov",
+ g_param_spec_int ("fov",
"FoV",
_("Field of view"),
0, 90, 10,
diff --git a/goffice/graph/gog-axis-line.c b/goffice/graph/gog-axis-line.c
index 7bbda27..cf56baa 100644
--- a/goffice/graph/gog-axis-line.c
+++ b/goffice/graph/gog-axis-line.c
@@ -523,7 +523,7 @@ gog_axis_base_populate_editor (GogObject *gobj,
unsigned axis_count;
GtkCellRenderer *cell;
AxisBasePrefs *state;
-
+
store = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_UINT);
combo = go_gtk_builder_get_widget (gui, "cross_axis_combo");
gtk_combo_box_set_model (GTK_COMBO_BOX (combo), GTK_TREE_MODEL (store));
@@ -570,7 +570,7 @@ gog_axis_base_populate_editor (GogObject *gobj,
G_CALLBACK (cb_cross_axis_changed), state);
g_signal_connect (G_OBJECT (deditor), "changed",
G_CALLBACK (cb_cross_location_changed), state);
- g_signal_connect_swapped (G_OBJECT (combo), "destroy", G_CALLBACK (axis_base_pref_free), state);
+ g_signal_connect_swapped (G_OBJECT (combo), "destroy", G_CALLBACK (axis_base_pref_free), state);
w = go_gtk_builder_get_widget (gui, "axis_low");
if (axis_base->position == GOG_AXIS_AT_LOW)
@@ -667,67 +667,67 @@ gog_axis_base_class_init (GObjectClass *gobject_klass)
GOG_AXIS_AT_LOW, GOG_AXIS_AT_HIGH, GOG_AXIS_AT_LOW,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_klass, AXIS_BASE_PROP_POSITION_STR,
- g_param_spec_string ("pos-str",
+ g_param_spec_string ("pos-str",
_("Axis position (as a string)"),
_("Where to position an axis low, high, or crossing"),
- "low",
+ "low",
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, AXIS_BASE_PROP_MAJOR_TICK_LABELED,
- g_param_spec_boolean ("major-tick-labeled",
+ g_param_spec_boolean ("major-tick-labeled",
_("Major labels"),
_("Show labels for major ticks"),
- TRUE,
+ TRUE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, AXIS_BASE_PROP_MAJOR_TICK_IN,
- g_param_spec_boolean ("major-tick-in",
+ g_param_spec_boolean ("major-tick-in",
_("Inside major ticks"),
_("Major tick marks inside the chart area"),
- FALSE,
+ FALSE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, AXIS_BASE_PROP_MAJOR_TICK_OUT,
- g_param_spec_boolean ("major-tick-out",
+ g_param_spec_boolean ("major-tick-out",
_("Outside major ticks"),
_("Major tick marks outside the chart area"),
- TRUE,
+ TRUE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, AXIS_BASE_PROP_MAJOR_TICK_SIZE_PTS,
- g_param_spec_int ("major-tick-size-pts",
+ g_param_spec_int ("major-tick-size-pts",
_("Major tick size"),
_("Size of the major tick marks, in points"),
- 0, 20, 4,
+ 0, 20, 4,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, AXIS_BASE_PROP_MINOR_TICK_IN,
- g_param_spec_boolean ("minor-tick-in",
+ g_param_spec_boolean ("minor-tick-in",
_("Inside minor ticks"),
_("Minor tick marks inside the chart area"),
- FALSE,
+ FALSE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, AXIS_BASE_PROP_MINOR_TICK_OUT,
- g_param_spec_boolean ("minor-tick-out",
+ g_param_spec_boolean ("minor-tick-out",
_("Outside minor ticks"),
_("Minor tick marks outside the axis"),
- FALSE,
+ FALSE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, AXIS_BASE_PROP_MINOR_TICK_SIZE_PTS,
- g_param_spec_int ("minor-tick-size-pts",
+ g_param_spec_int ("minor-tick-size-pts",
_("Minor tick size"),
_("Size of the minor tick marks, in points"),
- 0, 15, 2,
+ 0, 15, 2,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, AXIS_BASE_PROP_CROSS_AXIS_ID,
- g_param_spec_uint ("cross-axis-id",
+ g_param_spec_uint ("cross-axis-id",
_("Cross axis id"),
_("Which axis to cross"),
- 0, G_MAXUINT, 0,
+ 0, G_MAXUINT, 0,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, AXIS_BASE_PROP_PADDING_PTS,
- g_param_spec_int ("padding-pts",
+ g_param_spec_int ("padding-pts",
_("Axis padding"),
_("Distance from axis line to plot area, in points"),
- -G_MAXINT, G_MAXINT, 0,
+ -G_MAXINT, G_MAXINT, 0,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
#ifdef GOFFICE_WITH_GTK
@@ -790,7 +790,7 @@ GSF_CLASS_ABSTRACT (GogAxisBase, gog_axis_base,
static gboolean gog_axis_base_view_point (GogView *view, double x, double y);
static gboolean
-gog_tool_bound_is_valid_axis (GogView *view)
+gog_tool_bound_is_valid_axis (GogView *view)
{
GogAxisBase *axis_base = GOG_AXIS_BASE (view->model);
GogAxisType type = gog_axis_get_atype (axis_base->axis);
@@ -806,7 +806,7 @@ gog_tool_bound_is_valid_axis (GogView *view)
static gboolean
gog_tool_select_axis_point (GogView *view, double x, double y, GogObject **gobj)
{
- return (gog_tool_bound_is_valid_axis (view) &&
+ return (gog_tool_bound_is_valid_axis (view) &&
gog_axis_base_view_point (view, x, y));
}
@@ -820,10 +820,10 @@ gog_tool_select_axis_render (GogView *view)
static GogTool gog_axis_tool_select_axis = {
N_("Select axis"),
GDK_LEFT_PTR,
- gog_tool_select_axis_point,
+ gog_tool_select_axis_point,
gog_tool_select_axis_render,
NULL /* init */,
- NULL /* move */,
+ NULL /* move */,
NULL /* double-click */,
NULL /* destroy */
};
@@ -835,40 +835,40 @@ typedef struct {
double length;
double start, stop;
} MoveBoundData;
-
+
static gboolean
gog_tool_move_start_bound_point (GogView *view, double x, double y, GogObject **gobj)
{
return gog_tool_bound_is_valid_axis (view) &&
- gog_renderer_in_grip (x, y,
- GOG_AXIS_BASE_VIEW (view)->x_start,
+ gog_renderer_in_grip (x, y,
+ GOG_AXIS_BASE_VIEW (view)->x_start,
GOG_AXIS_BASE_VIEW (view)->y_start);
}
static void
gog_tool_move_start_bound_render (GogView *view)
{
- if (gog_tool_bound_is_valid_axis (view))
- gog_renderer_draw_grip (view->renderer,
- GOG_AXIS_BASE_VIEW (view)->x_start,
+ if (gog_tool_bound_is_valid_axis (view))
+ gog_renderer_draw_grip (view->renderer,
+ GOG_AXIS_BASE_VIEW (view)->x_start,
GOG_AXIS_BASE_VIEW (view)->y_start);
}
static gboolean
gog_tool_move_stop_bound_point (GogView *view, double x, double y, GogObject **gobj)
{
- return (gog_tool_bound_is_valid_axis (view) &&
- gog_renderer_in_grip (x, y,
- GOG_AXIS_BASE_VIEW (view)->x_stop,
+ return (gog_tool_bound_is_valid_axis (view) &&
+ gog_renderer_in_grip (x, y,
+ GOG_AXIS_BASE_VIEW (view)->x_stop,
GOG_AXIS_BASE_VIEW (view)->y_stop));
}
static void
gog_tool_move_stop_bound_render (GogView *view)
{
- if (gog_tool_bound_is_valid_axis (view))
- gog_renderer_draw_grip (view->renderer,
- GOG_AXIS_BASE_VIEW (view)->x_stop,
+ if (gog_tool_bound_is_valid_axis (view))
+ gog_renderer_draw_grip (view->renderer,
+ GOG_AXIS_BASE_VIEW (view)->x_stop,
GOG_AXIS_BASE_VIEW (view)->y_stop);
}
@@ -889,34 +889,34 @@ gog_tool_move_bound_init (GogToolAction *action)
static void
gog_tool_move_start_bound_move (GogToolAction *action, double x, double y)
-{
+{
GogAxisBaseView *view = GOG_AXIS_BASE_VIEW (action->view);
MoveBoundData *data = action->data;
double a = 1.0 - MIN (((x - view->x_start) * (view->x_stop - view->x_start) +
- (y - view->y_start) * (view->y_stop - view->y_start)) /
+ (y - view->y_start) * (view->y_stop - view->y_start)) /
(data->length * data->length), 0.9);
- gog_axis_set_extents (data->axis,
+ gog_axis_set_extents (data->axis,
data->stop + ((data->start - data->stop) / a),
go_nan);
}
static void
gog_tool_move_stop_bound_move (GogToolAction *action, double x, double y)
-{
+{
GogAxisBaseView *view = GOG_AXIS_BASE_VIEW (action->view);
MoveBoundData *data = action->data;
double a = 1.0 - MIN (((x - view->x_stop) * (view->x_start - view->x_stop) +
- (y - view->y_stop) * (view->y_start - view->y_stop)) /
+ (y - view->y_stop) * (view->y_start - view->y_stop)) /
(data->length * data->length), 0.9);
- gog_axis_set_extents (data->axis,
- go_nan,
+ gog_axis_set_extents (data->axis,
+ go_nan,
data->start + ((data->stop - data->start) / a));
}
static void
-gog_tool_move_bound_destroy (GogToolAction *action)
+gog_tool_move_bound_destroy (GogToolAction *action)
{
MoveBoundData *data = action->data;
@@ -924,23 +924,23 @@ gog_tool_move_bound_destroy (GogToolAction *action)
}
static GogTool gog_axis_tool_start_bound = {
- N_("Set start bound"),
+ N_("Set start bound"),
GDK_CROSS,
- gog_tool_move_start_bound_point,
+ gog_tool_move_start_bound_point,
gog_tool_move_start_bound_render,
- gog_tool_move_bound_init,
- gog_tool_move_start_bound_move,
+ gog_tool_move_bound_init,
+ gog_tool_move_start_bound_move,
NULL /* double-click */,
gog_tool_move_bound_destroy
};
static GogTool gog_axis_tool_stop_bound = {
- N_("Set stop bound"),
+ N_("Set stop bound"),
GDK_CROSS,
- gog_tool_move_stop_bound_point,
+ gog_tool_move_stop_bound_point,
gog_tool_move_stop_bound_render,
- gog_tool_move_bound_init,
- gog_tool_move_stop_bound_move,
+ gog_tool_move_bound_init,
+ gog_tool_move_stop_bound_move,
NULL /* double-click */,
gog_tool_move_bound_destroy
};
@@ -1340,7 +1340,7 @@ axis_circle_get_bbox (GogAxisBase *axis_base, GogRenderer *renderer,
if (ticks[i].label != NULL && draw_labels) {
gog_renderer_get_text_OBR (renderer, ticks[i].label, TRUE, &txt_obr);
txt_obr.w += label_padding;
- go_geometry_calc_label_position (&txt_obr, angle + M_PI / 2.0, tick_len,
+ go_geometry_calc_label_position (&txt_obr, angle + M_PI / 2.0, tick_len,
GO_SIDE_LEFT, GO_SIDE_AUTO);
txt_obr.x += x;
txt_obr.y += y;
@@ -1464,7 +1464,7 @@ axis_circle_render (GogAxisBase *axis_base, GogRenderer *renderer,
&label_pos.x, &label_pos.y);
gog_renderer_get_text_OBR (renderer, ticks[i].label, TRUE, &txt_obr);
txt_obr.w += label_padding;
- go_geometry_calc_label_position (&txt_obr, angle + M_PI / 2.0, tick_len,
+ go_geometry_calc_label_position (&txt_obr, angle + M_PI / 2.0, tick_len,
GO_SIDE_LEFT, GO_SIDE_AUTO);
label_pos.x += txt_obr.x;
label_pos.y += txt_obr.y;
@@ -1515,14 +1515,14 @@ x_process (GogAxisBaseAction action, GogView *view, GogViewPadding *padding,
switch (action) {
case GOG_AXIS_BASE_RENDER:
axis_line_render (axis_base, axis_base_view,
- view->renderer, ax, ay, bx - ax , by - ay,
+ view->renderer, ax, ay, bx - ax , by - ay,
GO_SIDE_RIGHT, -1.,
axis_base->major_tick_labeled, TRUE, NULL);
break;
case GOG_AXIS_BASE_PADDING_REQUEST:
axis_line_bbox = axis_line_get_bbox (GOG_AXIS_BASE (view->model),
- view->renderer, ax, ay, bx - ax, by - ay,
+ view->renderer, ax, ay, bx - ax, by - ay,
GO_SIDE_RIGHT, -1.,
axis_base->major_tick_labeled);
padding->wl = MAX (0., plot_area->x - axis_line_bbox.x);
@@ -1611,7 +1611,7 @@ xy_process (GogAxisBaseAction action, GogView *view, GogViewPadding *padding,
switch (action) {
case GOG_AXIS_BASE_RENDER:
axis_line_render (axis_base, axis_base_view,
- view->renderer,
+ view->renderer,
ax, ay, bx - ax , by - ay, side, -1.,
axis_base->major_tick_labeled, TRUE, NULL);
break;
@@ -1730,7 +1730,7 @@ radar_process (GogAxisBaseAction action, GogView *view, GogViewPadding *padding,
}
else {
gog_chart_map_2D_to_view (c_map, position, stop, &bx, &by);
- point = axis_line_point (axis_base, view->renderer,
+ point = axis_line_point (axis_base, view->renderer,
x, y, parms->cx, parms->cy,
bx - parms->cx, by - parms->cy,
side);
@@ -1927,7 +1927,7 @@ xyz_process (GogAxisBaseAction action, GogView *view, GogViewPadding *padding,
gog_chart_map_3d_to_view (c_map, xposition,
yposition,
ticks[i].position,
- ticks_pos + 2 * i,
+ ticks_pos + 2 * i,
ticks_pos + 2 * i + 1,
NULL);
}
@@ -1948,7 +1948,7 @@ xyz_process (GogAxisBaseAction action, GogView *view, GogViewPadding *padding,
gog_chart_map_3d_to_view (c_map,
ticks[i].position,
yposition, zposition,
- ticks_pos + 2 * i,
+ ticks_pos + 2 * i,
ticks_pos + 2 * i + 1,
NULL);
}
@@ -1970,7 +1970,7 @@ xyz_process (GogAxisBaseAction action, GogView *view, GogViewPadding *padding,
gog_chart_map_3d_to_view (c_map, xposition,
ticks[i].position,
zposition,
- ticks_pos + 2 * i,
+ ticks_pos + 2 * i,
ticks_pos + 2 * i + 1,
NULL);
}
@@ -1995,7 +1995,7 @@ xyz_process (GogAxisBaseAction action, GogView *view, GogViewPadding *padding,
switch (action) {
case GOG_AXIS_BASE_RENDER:
axis_line_render (axis_base, axis_base_view,
- view->renderer,
+ view->renderer,
ax, ay, bx - ax , by - ay, side, -1.,
axis_base->major_tick_labeled, TRUE,
ticks_pos);
@@ -2067,7 +2067,7 @@ xyz_process (GogAxisBaseAction action, GogView *view, GogViewPadding *padding,
}
padding->wr = tick_len * ox;
padding->hb = tick_len * oy;
- break;
+ break;
default:
break;
}
diff --git a/goffice/graph/gog-axis.c b/goffice/graph/gog-axis.c
index 70f9c81..08b5812 100644
--- a/goffice/graph/gog-axis.c
+++ b/goffice/graph/gog-axis.c
@@ -798,7 +798,7 @@ map_date_calc_ticks (GogAxis *axis)
if (major_tick <= 1) {
map_linear_calc_ticks (axis);
- return;
+ return;
}
maj_months = go_fake_round (major_tick / (DAYS_IN_YEAR / 12));
@@ -1244,7 +1244,7 @@ map_log_calc_ticks (GogAxis *axis)
g_critical ("[GogAxisMap::log_calc_ticks] wrong allocation size");
gog_axis_set_ticks (axis, t, ticks);
}
-
+
/*****************************************************************************/
static const GogAxisMapDesc map_desc_discrete =
@@ -2370,7 +2370,7 @@ gog_axis_populate_editor (GogObject *gobj,
}
g_object_set_data_full (gtk_builder_get_object (gui, "axis_pref_box"),
- "state", state, (GDestroyNotify) gog_axis_pref_state_free);
+ "state", state, (GDestroyNotify) gog_axis_pref_state_free);
g_object_unref (gui);
go_editor_set_store_page (editor, &axis_pref_page);
diff --git a/goffice/graph/gog-axis.h b/goffice/graph/gog-axis.h
index e9771f2..d0ee3a4 100644
--- a/goffice/graph/gog-axis.h
+++ b/goffice/graph/gog-axis.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-axis.h :
+ * gog-axis.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
@@ -86,7 +86,7 @@ unsigned gog_axis_get_ticks (GogAxis *axis, GogAxisTick **ticks);
GOData *gog_axis_get_labels (GogAxis const *axis,
GogPlot **plot_that_labeled_axis);
-double gog_axis_get_entry (GogAxis const *axis, GogAxisElemType i,
+double gog_axis_get_entry (GogAxis const *axis, GogAxisElemType i,
gboolean *user_defined);
void gog_axis_add_contributor (GogAxis *axis, GogObject *contrib);
diff --git a/goffice/graph/gog-chart-map-3d.c b/goffice/graph/gog-chart-map-3d.c
index dae1112..0947707 100644
--- a/goffice/graph/gog-chart-map-3d.c
+++ b/goffice/graph/gog-chart-map-3d.c
@@ -33,13 +33,13 @@ struct _GogChartMap3D {
void (*map_3D_to_view) (GogChartMap3D *map, double x, double y, double z, double *u, double *v, double *w);
};
-static void
+static void
null_map_3D (GogChartMap3D *map, double x, double y, double z, double *u, double *v, double *w)
{
g_warning ("[GogChartMap::map_3D] not implemented");
}
-static void
+static void
xyz_map_3D_to_view (GogChartMap3D *map, double x, double y, double z, double *u, double *v, double *w)
{
Gog3DBox *box = GOG_3D_BOX (gog_object_get_child_by_name (GOG_OBJECT (map->chart), "3D-Box"));
@@ -71,10 +71,10 @@ xyz_map_3D_to_view (GogChartMap3D *map, double x, double y, double z, double *u,
* @axis2: 3rd dimension axis
* @fill_area: does chart fill allocated area
*
- * Creates a new #GogChartMap3D, used for conversion from data space
+ * Creates a new #GogChartMap3D, used for conversion from data space
* to canvas space.
*
- * returns: a new #GogChartMap3D object.
+ * returns: a new #GogChartMap3D object.
**/
GogChartMap3D*
@@ -88,7 +88,7 @@ gog_chart_map_3d_new (GogChart *chart, GogViewAllocation const *area,
g_return_val_if_fail (GOG_IS_CHART (chart), NULL);
map = g_new (GogChartMap3D, 1);
-
+
g_object_ref (chart);
map->chart = chart;
map->area = *area;
@@ -109,7 +109,7 @@ gog_chart_map_3d_new (GogChart *chart, GogViewAllocation const *area,
map->is_valid = gog_axis_map_is_valid (map->axis_map[0]) &&
gog_axis_map_is_valid (map->axis_map[1]) &&
gog_axis_map_is_valid (map->axis_map[2]);
-
+
break;
}
default:
diff --git a/goffice/graph/gog-chart-map.c b/goffice/graph/gog-chart-map.c
index 67680cf..740d43a 100644
--- a/goffice/graph/gog-chart-map.c
+++ b/goffice/graph/gog-chart-map.c
@@ -422,19 +422,19 @@ xy_make_path_step (GogChartMap *map, double const *x, double const *y, int n_poi
n_valid_points = 0;
for (i = 0; i < n_points; i++) {
- gog_chart_map_2D_to_view (map,
- x != NULL ? x[i] : i + 1,
+ gog_chart_map_2D_to_view (map,
+ x != NULL ? x[i] : i + 1,
y != NULL ? y[i] : i + 1, &xx, &yy);
- if (go_finite (xx)
+ if (go_finite (xx)
&& go_finite (yy)
&& fabs (xx) != DBL_MAX
&& fabs (yy) != DBL_MAX) {
n_valid_points++;
- if (n_valid_points == 1)
+ if (n_valid_points == 1)
go_path_move_to (path, xx, yy);
else
- switch (interpolation) {
+ switch (interpolation) {
case GO_LINE_INTERPOLATION_STEP_START:
go_path_line_to (path, xx, last_yy);
break;
@@ -466,7 +466,7 @@ xy_make_path_step (GogChartMap *map, double const *x, double const *y, int n_poi
}
static GOPath *
-xy_make_path (GogChartMap *map, double const *x, double const *y,
+xy_make_path (GogChartMap *map, double const *x, double const *y,
int n_points, GOLineInterpolation interpolation, gboolean skip_invalid, gpointer data)
{
GOPath *path = NULL;
@@ -507,7 +507,7 @@ xy_make_path (GogChartMap *map, double const *x, double const *y,
}
static GOPath *
-xy_make_close_path (GogChartMap *map, double const *x, double const *y,
+xy_make_close_path (GogChartMap *map, double const *x, double const *y,
int n_points, GogSeriesFillType fill_type)
{
GogAxisMap *x_map, *y_map;
@@ -772,10 +772,10 @@ gog_chart_map_get_polar_parms (GogChartMap *map)
* @axis2: 3rd dimension axis
* @fill_area: does chart fill allocated area
*
- * Creates a new #GogChartMap, used for conversion from data space
+ * Creates a new #GogChartMap, used for conversion from data space
* to canvas space.
*
- * returns: a new #GogChart object.
+ * returns: a new #GogChart object.
**/
GogChartMap *
@@ -952,8 +952,8 @@ gog_chart_map_get_axis_map (GogChartMap *map, unsigned int i)
* Tests if @map was correctly initializied, i.e. if all associated axis_map
* are valid (see gog_axis_map_is_valid() ).
*
- * given
- * to gog_chart_map_new.
+ * given
+ * to gog_chart_map_new.
* returns: %TRUE if @map is valid.
**/
diff --git a/goffice/graph/gog-chart-map.h b/goffice/graph/gog-chart-map.h
index df7b5ac..8e5f37a 100644
--- a/goffice/graph/gog-chart-map.h
+++ b/goffice/graph/gog-chart-map.h
@@ -43,11 +43,11 @@ GogAxisMap *gog_chart_map_get_axis_map (GogChartMap *map, unsigned int index);
gboolean gog_chart_map_is_valid (GogChartMap *map);
void gog_chart_map_free (GogChartMap *map);
-GOPath *gog_chart_map_make_path (GogChartMap *map, double const *x, double const *y,
+GOPath *gog_chart_map_make_path (GogChartMap *map, double const *x, double const *y,
int n_points, GOLineInterpolation interpolation,
gboolean skip_invalid, gpointer data);
-GOPath *gog_chart_map_make_close_path (GogChartMap *map, double const *x, double const *y,
- int n_points,
+GOPath *gog_chart_map_make_close_path (GogChartMap *map, double const *x, double const *y,
+ int n_points,
GogSeriesFillType fill_type);
GogChartMapPolarData *gog_chart_map_get_polar_parms (GogChartMap *map);
diff --git a/goffice/graph/gog-chart.c b/goffice/graph/gog-chart.c
index b4a72ec..a2cfad2 100644
--- a/goffice/graph/gog-chart.c
+++ b/goffice/graph/gog-chart.c
@@ -62,7 +62,7 @@ static const struct {
{ "pseudo-3d", GOG_AXIS_SET_XY_pseudo_3d},
{ "xy-color", GOG_AXIS_SET_XY_COLOR}
};
-
+
GogAxisSet
gog_axis_set_from_str (char const *str)
{
@@ -73,13 +73,13 @@ gog_axis_set_from_str (char const *str)
if (str == NULL)
return GOG_AXIS_SET_NONE;
- for (i = 0; i < G_N_ELEMENTS (axis_set_desc); i++)
+ for (i = 0; i < G_N_ELEMENTS (axis_set_desc); i++)
if (strcmp (axis_set_desc[i].name, str) == 0) {
axis_set = axis_set_desc[i].axis_set;
found = TRUE;
break;
}
- if (!found)
+ if (!found)
g_warning ("[GogAxisSet::from_str] unknown axis set (%s)", str);
return axis_set;
}
@@ -185,9 +185,9 @@ gog_chart_get_property (GObject *obj, guint param_id,
}
static void
-gog_chart_populate_editor (GogObject *gobj,
- GOEditor *editor,
- G_GNUC_UNUSED GogDataAllocator *dalloc,
+gog_chart_populate_editor (GogObject *gobj,
+ GOEditor *editor,
+ G_GNUC_UNUSED GogDataAllocator *dalloc,
GOCmdContext *cc)
{
static guint chart_pref_page = 0;
@@ -251,7 +251,7 @@ role_plot_post_add (GogObject *parent, GogObject *plot)
/* APPEND to keep order, there won't be that many */
chart->plots = g_slist_append (chart->plots, plot);
gog_chart_request_cardinality_update (chart);
-
+
if (chart->plots->next == NULL)
ok = gog_chart_axis_set_assign (chart,
gog_plot_axis_set_pref (GOG_PLOT (plot)));
@@ -269,13 +269,13 @@ role_plot_pre_remove (GogObject *parent, GogObject *plot)
gog_plot_axis_clear (GOG_PLOT (plot), GOG_AXIS_SET_ALL);
chart->plots = g_slist_remove (chart->plots, plot);
gog_chart_request_cardinality_update (chart);
-
+
if (chart->plots == NULL)
gog_chart_axis_set_assign (chart, GOG_AXIS_SET_UNKNOWN);
- if (chart->grid != NULL &&
+ if (chart->grid != NULL &&
chart->axis_set != GOG_AXIS_SET_XY &&
- chart->axis_set != GOG_AXIS_SET_X &&
+ chart->axis_set != GOG_AXIS_SET_X &&
chart->axis_set != GOG_AXIS_SET_XY_pseudo_3d &&
chart->axis_set != GOG_AXIS_SET_XY_COLOR &&
chart->axis_set != GOG_AXIS_SET_RADAR) {
@@ -452,13 +452,13 @@ static GogObjectRole const roles[] = {
GOG_POSITION_SPECIAL, GOG_POSITION_SPECIAL, GOG_OBJECT_NAME_BY_TYPE,
role_plot_can_add, NULL, NULL, role_plot_post_add, role_plot_pre_remove, NULL, { -1 } },
{ N_("Title"), "GogLabel", 10,
- GOG_POSITION_COMPASS|GOG_POSITION_ANY_MANUAL,
- GOG_POSITION_N|GOG_POSITION_ALIGN_CENTER,
+ GOG_POSITION_COMPASS|GOG_POSITION_ANY_MANUAL,
+ GOG_POSITION_N|GOG_POSITION_ALIGN_CENTER,
GOG_OBJECT_NAME_BY_ROLE,
NULL, NULL, NULL, NULL, NULL, NULL, { -1 } },
{ N_("Legend"), "GogLegend", 11,
- GOG_POSITION_COMPASS|GOG_POSITION_ANY_MANUAL,
- GOG_POSITION_E|GOG_POSITION_ALIGN_CENTER,
+ GOG_POSITION_COMPASS|GOG_POSITION_ANY_MANUAL,
+ GOG_POSITION_E|GOG_POSITION_ALIGN_CENTER,
GOG_OBJECT_NAME_BY_ROLE,
NULL, NULL, NULL, NULL, NULL, NULL, { -1 } },
#ifdef GOFFICE_WITH_LASEM
@@ -488,22 +488,22 @@ gog_chart_class_init (GogObjectClass *gog_klass)
gog_klass->can_manual_size = TRUE;
g_object_class_install_property (gobject_klass, CHART_PROP_CARDINALITY_VALID,
- g_param_spec_boolean ("cardinality-valid",
+ g_param_spec_boolean ("cardinality-valid",
_("Valid cardinality"),
_("Is the charts cardinality currently valid"),
- FALSE,
+ FALSE,
GSF_PARAM_STATIC | G_PARAM_READABLE));
g_object_class_install_property (gobject_klass, CHART_PROP_PLOT_AREA,
- g_param_spec_string ("plot-area",
+ g_param_spec_string ("plot-area",
_("Plot area"),
_("Position and size of plot area, in percentage of chart size"),
- "0 0 1 1",
+ "0 0 1 1",
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, CHART_PROP_PLOT_AREA_IS_MANUAL,
- g_param_spec_boolean ("is-plot-area-manual",
- _("Manual plot area"),
+ g_param_spec_boolean ("is-plot-area-manual",
+ _("Manual plot area"),
_("Is plot area manual"),
- FALSE,
+ FALSE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
gog_klass->view_type = gog_chart_view_get_type ();
@@ -527,7 +527,7 @@ gog_chart_init (GogChart *chart)
chart->is_plot_area_manual = FALSE;
chart->plot_area.x =
chart->plot_area.y = 0.0;
- chart->plot_area.w =
+ chart->plot_area.w =
chart->plot_area.h = 1.0;
}
@@ -604,7 +604,7 @@ gog_chart_get_plot_area (GogChart *chart, GogViewAllocation *plot_area)
{
if (plot_area != NULL)
*plot_area = chart->plot_area;
-
+
return chart->is_plot_area_manual;
}
@@ -636,12 +636,12 @@ gog_chart_set_plot_area (GogChart *chart, GogViewAllocation const *plot_area)
* @visible: placeholder for visible cardinality
*
* Update and cache cardinality values if required, and returns
- * full and visible cardinality. Full cardinality is the number of
+ * full and visible cardinality. Full cardinality is the number of
* chart elements that require a different style. Visible cardinality is
* the number of chart elements shown in chart legend.
*
* @full and @visible may be NULL.
- **/
+ **/
void
gog_chart_get_cardinality (GogChart *chart, unsigned *full, unsigned *visible)
{
@@ -671,7 +671,7 @@ void
gog_chart_request_cardinality_update (GogChart *chart)
{
g_return_if_fail (GOG_IS_CHART (chart));
-
+
if (chart->cardinality_valid) {
chart->cardinality_valid = FALSE;
gog_object_request_update (GOG_OBJECT (chart));
@@ -975,7 +975,7 @@ gog_chart_view_3d_process (GogView *view, GogViewAllocation *bbox)
box->ratio = (d > tg)? d: tg;
gog_view_padding_request (view, bbox, &padding);
-
+
if (!chart->is_plot_area_manual) {
bbox->x += padding.wl;
bbox->w -= padding.wl + padding.wr;
@@ -1049,7 +1049,7 @@ gog_chart_view_size_allocate (GogView *view, GogViewAllocation const *bbox)
tmp = *plot_area;
gog_view_padding_request (view, plot_area, &padding);
-
+
if (!chart->is_plot_area_manual) {
plot_area->x += padding.wl;
plot_area->w -= padding.wl + padding.wr;
@@ -1083,7 +1083,7 @@ gog_chart_view_init (GogChartView *cview)
}
static void
-grid_line_render (GSList *start_ptr, GogViewAllocation const *bbox)
+grid_line_render (GSList *start_ptr, GogViewAllocation const *bbox)
{
GSList *ptr, *child_ptr;
GSList *minor_grid_lines = NULL;
@@ -1097,16 +1097,16 @@ grid_line_render (GSList *start_ptr, GogViewAllocation const *bbox)
axis_child_view = child_ptr->data;
if (GOG_IS_GRID_LINE (axis_child_view->model)) {
if (gog_grid_line_is_minor (GOG_GRID_LINE (axis_child_view->model)))
- minor_grid_lines = g_slist_prepend (minor_grid_lines,
+ minor_grid_lines = g_slist_prepend (minor_grid_lines,
axis_child_view);
else
- major_grid_lines = g_slist_prepend (major_grid_lines,
+ major_grid_lines = g_slist_prepend (major_grid_lines,
axis_child_view);
- }
+ }
}
}
- }
-
+ }
+
/* Render stripes, minor first then major */
for (ptr = minor_grid_lines; ptr != NULL; ptr = ptr->next) {
gog_grid_line_view_render_stripes (ptr->data);
@@ -1114,7 +1114,7 @@ grid_line_render (GSList *start_ptr, GogViewAllocation const *bbox)
for (ptr = major_grid_lines; ptr != NULL; ptr = ptr->next) {
gog_grid_line_view_render_stripes (ptr->data);
}
-
+
/* Render lines, minor first then major */
for (ptr = minor_grid_lines; ptr != NULL; ptr = ptr->next) {
gog_grid_line_view_render_lines (ptr->data);
@@ -1122,13 +1122,13 @@ grid_line_render (GSList *start_ptr, GogViewAllocation const *bbox)
for (ptr = major_grid_lines; ptr != NULL; ptr = ptr->next) {
gog_grid_line_view_render_lines (ptr->data);
}
-
+
g_slist_free (minor_grid_lines);
g_slist_free (major_grid_lines);
}
static void
-plot_render (GogView *view, GogViewAllocation const *bbox)
+plot_render (GogView *view, GogViewAllocation const *bbox)
{
GSList *ptr;
GogView *child_view;
@@ -1136,7 +1136,7 @@ plot_render (GogView *view, GogViewAllocation const *bbox)
/* Render some plots before axes */
for (ptr = view->children ; ptr != NULL ; ptr = ptr->next) {
child_view = ptr->data;
- if (GOG_IS_PLOT (child_view->model) &&
+ if (GOG_IS_PLOT (child_view->model) &&
GOG_PLOT (child_view->model)->render_before_axes)
gog_view_render (ptr->data, bbox);
}
@@ -1155,7 +1155,7 @@ gog_chart_view_render (GogView *view, GogViewAllocation const *bbox)
if (gog_chart_is_3d (chart)) {
for (ptr = view->children ; ptr != NULL ; ptr = ptr->next) {
child_view = ptr->data;
- if (!GOG_IS_AXIS (child_view->model) && !GOG_IS_PLOT (child_view->model))
+ if (!GOG_IS_AXIS (child_view->model) && !GOG_IS_PLOT (child_view->model))
gog_view_render (ptr->data, bbox);
}
/* now render plot and axes */
@@ -1170,7 +1170,7 @@ gog_chart_view_render (GogView *view, GogViewAllocation const *bbox)
child_view = ptr->data;
if (GOG_IS_AXIS (child_view->model))
continue;
- if (GOG_IS_PLOT (child_view->model))
+ if (GOG_IS_PLOT (child_view->model))
gog_view_render (ptr->data, bbox);
}
} else {
diff --git a/goffice/graph/gog-data-allocator.h b/goffice/graph/gog-data-allocator.h
index 8a81c73..2ef4a77 100644
--- a/goffice/graph/gog-data-allocator.h
+++ b/goffice/graph/gog-data-allocator.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-data-allocator.h :
+ * gog-data-allocator.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/graph/gog-data-set.c b/goffice/graph/gog-data-set.c
index 2adea7e..1a52647 100644
--- a/goffice/graph/gog-data-set.c
+++ b/goffice/graph/gog-data-set.c
@@ -142,7 +142,7 @@ cb_dataset_dim_changed (GOData *data, GogDatasetElement *elem)
* @dim_i : the index
* @val : #GOData
* @graph : #GogGraph
- *
+ *
* an internal routine to handle signal setup and teardown
**/
void
diff --git a/goffice/graph/gog-data-set.h b/goffice/graph/gog-data-set.h
index 3c37974..db6dff9 100644
--- a/goffice/graph/gog-data-set.h
+++ b/goffice/graph/gog-data-set.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-data-set.h :
+ * gog-data-set.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/graph/gog-equation.h b/goffice/graph/gog-equation.h
index 8eb5f29..3d3a6d1 100644
--- a/goffice/graph/gog-equation.h
+++ b/goffice/graph/gog-equation.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-equation.h :
+ * gog-equation.h :
*
* Copyright (C) 2008 Emmanuel Pacaud <emmanuel gnome org>
*
diff --git a/goffice/graph/gog-error-bar.c b/goffice/graph/gog-error-bar.c
index 61dc568..40526d3 100644
--- a/goffice/graph/gog-error-bar.c
+++ b/goffice/graph/gog-error-bar.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-error-bar.c :
+ * gog-error-bar.c :
*
* Copyright (C) 2004 Jean Brefort (jean brefort ac-dijon fr)
*
@@ -174,16 +174,16 @@ cb_type_changed (GtkWidget *w, GogErrorBarEditor *editor)
set = GOG_DATASET (editor->bar->series);
data = g_object_get_data (G_OBJECT (w), "plus");
if (!data) {
- GtkWidget* al = GTK_WIDGET (gog_data_allocator_editor (dalloc, set,
- editor->bar->error_i,
+ GtkWidget* al = GTK_WIDGET (gog_data_allocator_editor (dalloc, set,
+ editor->bar->error_i,
GOG_DATA_VECTOR));
gtk_table_attach (GTK_TABLE (table), al, 1, 2, 0, 1, GTK_FILL | GTK_EXPAND, 0, 0, 0);
g_object_set_data (G_OBJECT (w), "plus", al);
}
data = g_object_get_data (G_OBJECT (w), "minus");
if (!data) {
- GtkWidget* al = GTK_WIDGET (gog_data_allocator_editor (dalloc, set,
- editor->bar->error_i + 1,
+ GtkWidget* al = GTK_WIDGET (gog_data_allocator_editor (dalloc, set,
+ editor->bar->error_i + 1,
GOG_DATA_VECTOR));
gtk_table_attach (GTK_TABLE (table), al, 1, 2, 1, 2, GTK_FILL | GTK_EXPAND, 0, 0, 0);
g_object_set_data (G_OBJECT (w), "minus", al);
@@ -242,7 +242,7 @@ gog_error_bar_prefs (GogSeries *series,
g_signal_connect (gtk_spin_button_get_adjustment (GTK_SPIN_BUTTON (w)),
"value_changed",
G_CALLBACK (cb_width_changed), editor);
-
+
/* Line width */
w = go_gtk_builder_get_widget (gui, "line_width");
gtk_spin_button_set_value (GTK_SPIN_BUTTON (w), editor->line_width);
@@ -260,7 +260,7 @@ gog_error_bar_prefs (GogSeries *series,
"activate",
G_CALLBACK (cb_color_changed), editor);
gtk_table_attach (GTK_TABLE (style_table), w, 1, 2, 3, 4, GTK_FILL, GTK_FILL, 0, 0);
-
+
/* Display style */
list = gtk_list_store_new (3, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_UINT);
combo = gtk_combo_box_new_with_model (GTK_TREE_MODEL (list));
@@ -275,11 +275,11 @@ gog_error_bar_prefs (GogSeries *series,
gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (combo), cell, "text", 1, NULL);
for (i = 0; i < G_N_ELEMENTS (display_combo_desc); i++) {
- pixbuf = go_pixbuf_new_from_file (horizontal ?
+ pixbuf = go_pixbuf_new_from_file (horizontal ?
display_combo_desc[i].h_pixbuf :
display_combo_desc[i].v_pixbuf);
gtk_list_store_append (list, &iter);
- gtk_list_store_set (list, &iter,
+ gtk_list_store_set (list, &iter,
0, pixbuf,
1, display_combo_desc[i].label,
2, display_combo_desc[i].display,
@@ -291,7 +291,7 @@ gog_error_bar_prefs (GogSeries *series,
gtk_table_attach (GTK_TABLE (style_table), GTK_WIDGET(combo), 1, 4, 0, 1, GTK_FILL, GTK_FILL, 0, 0);
g_signal_connect (G_OBJECT (combo), "changed", G_CALLBACK (cb_display_changed), editor);
-
+
/* Category property*/
w = go_gtk_builder_get_widget (gui, "category_combo");
gtk_combo_box_set_active (GTK_COMBO_BOX (w), (editor->bar)? (int) editor->bar->type: 0);
@@ -484,8 +484,8 @@ GSF_CLASS_FULL (GogErrorBar, gog_error_bar,
/**
* gog_error_bar_get_bounds :
* @bar : A GogErrorBar
- * @index : the index corresponding to the value which error limits are
- * @min : where the minimum value will be stored
+ * @index : the index corresponding to the value which error limits are
+ * @min : where the minimum value will be stored
* @max : where the maximum value will be stored
*
* If the value correponding to @index is valid, fills min and max with the error values:
@@ -564,7 +564,7 @@ gog_error_bar_get_minmax (const GogErrorBar *bar, double *min, double *max)
double *values;
int i, imax;
double tmp_min, tmp_max, plus, minus;
-
+
g_return_if_fail (GOG_IS_ERROR_BAR (bar));
if (!gog_series_is_valid (bar->series)) {
@@ -613,13 +613,13 @@ gog_error_bar_dup (GogErrorBar const *bar)
/**
* gog_error_bar_render :
* @bar : A GogErrorBar
- * @rend : A GogRenderer
+ * @rend : A GogRenderer
* @x_map : A GogAxisMap for the x axis
* @y_map : A GogAxisMap for the y axis
- * @x : x coordinate of the origin of the bar
+ * @x : x coordinate of the origin of the bar
* @y : y coordinate of the origin of the bar
- * @plus : distance from the origin to the positive end of the bar
- * @minus : distance from the origin to the negative end of the bar
+ * @plus : distance from the origin to the positive end of the bar
+ * @minus : distance from the origin to the negative end of the bar
* @horizontal : whether the bar is horizontal or not.
*
* Displays the error bar. If @plus is negative, the positive side of the bar is not displayed,
@@ -649,11 +649,11 @@ void gog_error_bar_render (const GogErrorBar *bar,
(start && !gog_axis_map_finite (x_map, x + plus)) ||
(end && !gog_axis_map_finite (x_map, x - minus)))
return;
-
- x_start = start ?
- gog_axis_map_to_view (x_map, x + plus) :
+
+ x_start = start ?
+ gog_axis_map_to_view (x_map, x + plus) :
gog_axis_map_to_view (x_map, x);
- x_end = end ?
+ x_end = end ?
gog_axis_map_to_view (x_map , x - minus) :
gog_axis_map_to_view (x_map , x);
y_start = y_end = gog_axis_map_to_view (y_map, y);
@@ -665,10 +665,10 @@ void gog_error_bar_render (const GogErrorBar *bar,
return;
x_start = x_end = gog_axis_map_to_view (x_map ,x);
- y_start = start ?
+ y_start = start ?
gog_axis_map_to_view (y_map, y + plus) :
gog_axis_map_to_view (y_map, y);
- y_end = end ?
+ y_end = end ?
gog_axis_map_to_view (y_map, y - minus) :
gog_axis_map_to_view (y_map, y);
}
diff --git a/goffice/graph/gog-error-bar.h b/goffice/graph/gog-error-bar.h
index 2316e5c..e0689bb 100644
--- a/goffice/graph/gog-error-bar.h
+++ b/goffice/graph/gog-error-bar.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-error-bar.h :
+ * gog-error-bar.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
@@ -60,18 +60,18 @@ GType gog_error_bar_get_type (void);
GogErrorBar *gog_error_bar_dup (GogErrorBar const *bar);
#ifdef GOFFICE_WITH_GTK
-gpointer gog_error_bar_prefs (GogSeries *series, char const *property,
- gboolean horizontal, GogDataAllocator *dalloc,
+gpointer gog_error_bar_prefs (GogSeries *series, char const *property,
+ gboolean horizontal, GogDataAllocator *dalloc,
GOCmdContext *cc);
#endif
-gboolean gog_error_bar_get_bounds (const GogErrorBar *bar, int index,
+gboolean gog_error_bar_get_bounds (const GogErrorBar *bar, int index,
double *min, double *max);
-void gog_error_bar_get_minmax (const GogErrorBar *bar,
+void gog_error_bar_get_minmax (const GogErrorBar *bar,
double *min, double *max);
-void gog_error_bar_render (const GogErrorBar *bar, GogRenderer *rend,
+void gog_error_bar_render (const GogErrorBar *bar, GogRenderer *rend,
GogAxisMap *x_map, GogAxisMap *y_map,
- double x, double y,
+ double x, double y,
double minus,
double plus,
gboolean horizontal);
diff --git a/goffice/graph/gog-graph.c b/goffice/graph/gog-graph.c
index 28a4349..67bfb91 100644
--- a/goffice/graph/gog-graph.c
+++ b/goffice/graph/gog-graph.c
@@ -64,7 +64,7 @@ static GObjectClass *graph_parent_klass;
static GogViewClass *gview_parent_klass;
static void apply_theme (GogObject *object, GogTheme const *theme, gboolean force_auto);
-
+
static void
gog_graph_set_property (GObject *obj, guint param_id,
GValue const *value, GParamSpec *pspec)
@@ -84,7 +84,7 @@ gog_graph_set_property (GObject *obj, guint param_id,
graph->height);
break;
case GRAPH_PROP_HEIGHT:
- gog_graph_set_size (graph, graph->width,
+ gog_graph_set_size (graph, graph->width,
g_value_get_double (value));
break;
case GRAPH_PROP_DOCUMENT: {
@@ -169,7 +169,7 @@ cb_theme_changed (GtkComboBox *combo, GogGraph *graph)
GSList *theme_names;
char const *name;
int index = gtk_combo_box_get_active (combo);
-
+
theme_names = gog_theme_registry_get_theme_names ();
if (theme_names == NULL)
return;
@@ -178,7 +178,7 @@ cb_theme_changed (GtkComboBox *combo, GogGraph *graph)
g_slist_free (theme_names);
if (name == NULL)
return;
-
+
gog_graph_set_theme (graph, gog_theme_registry_lookup (name));
}
@@ -189,9 +189,9 @@ cb_force_theme (GtkButton *button, GogGraph *graph)
}
static void
-gog_graph_populate_editor (GogObject *gobj,
- GOEditor *editor,
- G_GNUC_UNUSED GogDataAllocator *dalloc,
+gog_graph_populate_editor (GogObject *gobj,
+ GOEditor *editor,
+ G_GNUC_UNUSED GogDataAllocator *dalloc,
GOCmdContext *cc)
{
GogGraph *graph = GOG_GRAPH (gobj);
@@ -206,27 +206,27 @@ gog_graph_populate_editor (GogObject *gobj,
(GOG_OBJECT_CLASS(graph_parent_klass)->populate_editor) (gobj, editor, dalloc, cc);
theme_names = gog_theme_registry_get_theme_names ();
-
+
if (theme_names != NULL) {
GtkWidget *box;
GtkWidget *combo;
GSList *ptr;
char const *graph_theme_name;
int count, index = 0;
-
+
graph_theme_name = gog_theme_get_name (graph->theme);
combo = go_gtk_builder_get_widget (gui, "theme_combo");
- gtk_list_store_clear (GTK_LIST_STORE (gtk_combo_box_get_model (GTK_COMBO_BOX (combo))));
-
+ gtk_list_store_clear (GTK_LIST_STORE (gtk_combo_box_get_model (GTK_COMBO_BOX (combo))));
+
count = 0;
for (ptr = theme_names; ptr != NULL; ptr = ptr->next) {
gtk_combo_box_append_text (GTK_COMBO_BOX (combo), _(ptr->data));
- if (strcmp (ptr->data, graph_theme_name) == 0)
+ if (strcmp (ptr->data, graph_theme_name) == 0)
index = count;
count++;
}
gtk_combo_box_set_active (GTK_COMBO_BOX (combo), index);
-
+
g_signal_connect (G_OBJECT (combo), "changed", G_CALLBACK (cb_theme_changed), graph);
g_signal_connect (gtk_builder_get_object (gui, "force_theme_button"), "clicked",
G_CALLBACK (cb_force_theme), graph);
@@ -235,8 +235,8 @@ gog_graph_populate_editor (GogObject *gobj,
go_editor_add_page (editor, box, _("Theme"));
g_object_unref (gui);
- g_slist_free (theme_names);
- }
+ g_slist_free (theme_names);
+ }
go_editor_set_store_page (editor, &graph_pref_page);
}
@@ -279,13 +279,13 @@ gog_graph_class_init (GogGraphClass *klass)
static GogObjectRole const roles[] = {
{ N_("Chart"), "GogChart", 0,
- GOG_POSITION_SPECIAL|GOG_POSITION_ANY_MANUAL,
- GOG_POSITION_SPECIAL,
+ GOG_POSITION_SPECIAL|GOG_POSITION_ANY_MANUAL,
+ GOG_POSITION_SPECIAL,
GOG_OBJECT_NAME_BY_ROLE,
NULL, NULL, NULL, role_chart_post_add, role_chart_pre_remove, NULL },
{ N_("Title"), "GogLabel", 1,
- GOG_POSITION_COMPASS|GOG_POSITION_ANY_MANUAL,
- GOG_POSITION_N|GOG_POSITION_ALIGN_CENTER,
+ GOG_POSITION_COMPASS|GOG_POSITION_ANY_MANUAL,
+ GOG_POSITION_N|GOG_POSITION_ALIGN_CENTER,
GOG_OBJECT_NAME_BY_ROLE,
NULL, NULL, NULL, NULL, NULL, NULL },
};
@@ -301,7 +301,7 @@ gog_graph_class_init (GogGraphClass *klass)
#ifdef GOFFICE_WITH_GTK
gog_klass->populate_editor = gog_graph_populate_editor;
#endif
-
+
gog_object_register_roles (gog_klass, roles, G_N_ELEMENTS (roles));
/**
@@ -337,34 +337,34 @@ gog_graph_class_init (GogGraphClass *klass)
1, G_TYPE_OBJECT);
g_object_class_install_property (gobject_klass, GRAPH_PROP_THEME,
- g_param_spec_object ("theme",
+ g_param_spec_object ("theme",
_("Theme"),
_("The theme for elements of the graph"),
- GOG_TYPE_THEME,
+ GOG_TYPE_THEME,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_klass, GRAPH_PROP_THEME_NAME,
- g_param_spec_string ("theme-name",
+ g_param_spec_string ("theme-name",
_("Theme name"),
_("The name of the theme for elements of the graph"),
- "default",
+ "default",
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, GRAPH_PROP_WIDTH,
- g_param_spec_double ("width-pts",
+ g_param_spec_double ("width-pts",
_("Width"),
_("Logical graph width, in points"),
0.0, G_MAXDOUBLE, GOG_GRAPH_DEFAULT_WIDTH,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, GRAPH_PROP_HEIGHT,
- g_param_spec_double ("height-pts",
+ g_param_spec_double ("height-pts",
_("Height"),
_("Logical graph heigth, in points"),
0.0, G_MAXDOUBLE, GOG_GRAPH_DEFAULT_HEIGHT,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, GRAPH_PROP_DOCUMENT,
- g_param_spec_object ("document",
+ g_param_spec_object ("document",
_("Document"),
_("the document for this graph"),
- GO_TYPE_DOC,
+ GO_TYPE_DOC,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
}
@@ -513,14 +513,14 @@ apply_theme (GogObject *object, GogTheme const *theme, gboolean force_auto)
GSList *ptr;
for (ptr = object->children; ptr != NULL; ptr = ptr->next)
- apply_theme (ptr->data, theme, force_auto);
+ apply_theme (ptr->data, theme, force_auto);
if (GO_IS_STYLED_OBJECT (object)) {
GOStyledObject *styled_object = (GOStyledObject *) object;
GOStyle *style;
style = go_styled_object_get_style (styled_object);
- if (force_auto)
+ if (force_auto)
/* FIXME: Some style settings are not themed yet,
* such as font or fill type. */
go_style_force_auto (style);
@@ -538,7 +538,7 @@ gog_graph_set_theme (GogGraph *graph, GogTheme *theme)
graph->theme = theme;
- apply_theme (GOG_OBJECT (graph), graph->theme, FALSE);
+ apply_theme (GOG_OBJECT (graph), graph->theme, FALSE);
}
/**
@@ -581,7 +581,7 @@ gog_graph_ref_data (GogGraph *graph, GOData *dat)
if (res == NULL) {
/* is there something like it already */
- GSList *existing = graph->data;
+ GSList *existing = graph->data;
for (; existing != NULL ; existing = existing->next)
if (go_data_eq (dat, existing->data))
break;
@@ -845,7 +845,7 @@ gog_graph_view_finalize (GObject *obj)
gog_tool_action_free (gview->action);
gview->action = NULL;
}
-
+
(G_OBJECT_CLASS (gview_parent_klass)->finalize) (obj);
}
@@ -864,12 +864,12 @@ gog_graph_view_class_init (GogGraphViewClass *gview_klass)
view_klass->clip = TRUE;
g_object_class_install_property (gobject_klass, GRAPH_VIEW_PROP_RENDERER,
- g_param_spec_object ("renderer",
+ g_param_spec_object ("renderer",
_("Renderer"),
_("the renderer for this view"),
- GOG_TYPE_RENDERER,
+ GOG_TYPE_RENDERER,
GSF_PARAM_STATIC | G_PARAM_WRITABLE));
-
+
gog_graph_view_signals [GRAPH_VIEW_SELECTION_CHANGED] = g_signal_new ("selection-changed",
G_TYPE_FROM_CLASS (gview_klass),
G_SIGNAL_RUN_LAST,
@@ -901,7 +901,7 @@ update_cursor (GogGraphView *view, GogTool *tool, GdkWindow *window)
{
GdkCursor *cursor;
GdkCursorType cursor_type;
-
+
cursor_type = tool != NULL ? tool->cursor_type : GDK_LEFT_PTR;
if (cursor_type != view->cursor_type) {
view->cursor_type = cursor_type;
@@ -916,11 +916,11 @@ update_cursor (GogGraphView *view, GogTool *tool, GdkWindow *window)
static void
update_action (GogGraphView *view, GogTool *tool, double x, double y)
{
- if (view->action != NULL) {
+ if (view->action != NULL) {
gog_tool_action_free (view->action);
view->action = NULL;
}
-
+
if (tool != NULL)
view->action = gog_tool_action_new (view->selected_view, tool, x, y);
}
@@ -938,7 +938,7 @@ update_action (GogGraphView *view, GogTool *tool, double x, double y)
* Handle events.
**/
void
-gog_graph_view_handle_event (GogGraphView *view, GdkEvent *event,
+gog_graph_view_handle_event (GogGraphView *view, GdkEvent *event,
double x_offset, double y_offset)
{
GogObject *old_object = view->selected_object;
@@ -946,25 +946,25 @@ gog_graph_view_handle_event (GogGraphView *view, GdkEvent *event,
GdkWindow *window = event->any.window;
double x, y;
int x_int, y_int;
-
+
x = event->button.x - x_offset;
y = event->button.y - y_offset;
switch (event->type) {
case GDK_2BUTTON_PRESS:
- if (view->action != NULL)
+ if (view->action != NULL)
gog_tool_action_double_click (view->action);
break;
- case GDK_BUTTON_PRESS:
+ case GDK_BUTTON_PRESS:
if (view->selected_view != NULL)
tool = gog_view_get_tool_at_point (view->selected_view, x, y,
&view->selected_object);
- if (tool == NULL)
- view->selected_view = gog_view_get_view_at_point (GOG_VIEW (view), x, y,
- &view->selected_object,
+ if (tool == NULL)
+ view->selected_view = gog_view_get_view_at_point (GOG_VIEW (view), x, y,
+ &view->selected_object,
&tool);
if (old_object != view->selected_object) {
- g_signal_emit (G_OBJECT (view),
+ g_signal_emit (G_OBJECT (view),
gog_graph_view_signals [GRAPH_VIEW_SELECTION_CHANGED],
0, view->selected_object);
gog_view_queue_redraw (GOG_VIEW (view));
@@ -972,7 +972,7 @@ gog_graph_view_handle_event (GogGraphView *view, GdkEvent *event,
update_action (view, tool, x, y);
update_cursor (view, tool, window);
break;
- case GDK_MOTION_NOTIFY:
+ case GDK_MOTION_NOTIFY:
if (event->motion.is_hint) {
gdk_window_get_pointer (window, &x_int, &y_int, NULL);
x = x_int - x_offset;
@@ -1019,8 +1019,8 @@ gog_graph_view_get_selection (GogGraphView *gview)
* gog_graph_view_set_selection
* @gview : #GogGraphView
* @gobj : new selected object
- *
- * Sets @gobj as current selection. If @gobj is different from previously
+ *
+ * Sets @gobj as current selection. If @gobj is different from previously
* selected object, a selection-changed signal is emitted.
**/
void
@@ -1043,8 +1043,8 @@ gog_graph_view_set_selection (GogGraphView *gview, GogObject *gobj)
}
gog_view_queue_redraw (GOG_VIEW (gview));
- g_signal_emit (G_OBJECT (gview),
- gog_graph_view_signals [GRAPH_VIEW_SELECTION_CHANGED],
+ g_signal_emit (G_OBJECT (gview),
+ gog_graph_view_signals [GRAPH_VIEW_SELECTION_CHANGED],
0, gobj);
}
@@ -1091,7 +1091,7 @@ gog_graph_get_supported_image_formats (void)
* @y_dpi: y resolution of exported graph
*
* Exports an image of @graph in given @format, writing results in a #GsfOutput stream.
- * If export format type is a bitmap one, it computes image size with x_dpi, y_dpi and
+ * If export format type is a bitmap one, it computes image size with x_dpi, y_dpi and
* @graph size (see @gog_graph_get_size()).
*
* returns: %TRUE if export succeed.
diff --git a/goffice/graph/gog-graph.h b/goffice/graph/gog-graph.h
index 5db1960..a168a92 100644
--- a/goffice/graph/gog-graph.h
+++ b/goffice/graph/gog-graph.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-graph.h :
+ * gog-graph.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/graph/gog-grid-line.c b/goffice/graph/gog-grid-line.c
index 17813fb..c984518 100644
--- a/goffice/graph/gog-grid-line.c
+++ b/goffice/graph/gog-grid-line.c
@@ -69,7 +69,7 @@ gog_grid_line_set_property (GObject *obj, guint param_id,
grid_line->is_minor = g_value_get_boolean (value);
break;
- default:
+ default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (obj, param_id, pspec);
return; /* NOTE : RETURN */
}
@@ -88,7 +88,7 @@ gog_grid_line_get_property (GObject *obj, guint param_id,
g_value_set_boolean (value, grid_line->is_minor);
break;
- default:
+ default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (obj, param_id, pspec);
break;
}
@@ -105,12 +105,12 @@ gog_grid_line_class_init (GogGridLineClass *klass)
gobject_klass->get_property = gog_grid_line_get_property;
gog_klass->view_type = gog_grid_line_view_get_type ();
style_klass->init_style = gog_grid_line_init_style;
-
+
g_object_class_install_property (gobject_klass, GRID_LINE_PROP_IS_MINOR,
- g_param_spec_boolean ("is-minor",
+ g_param_spec_boolean ("is-minor",
_("Is-minor"),
- _("Are these minor grid lines"),
- FALSE,
+ _("Are these minor grid lines"),
+ FALSE,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
}
@@ -375,7 +375,7 @@ gog_grid_line_xyz_render (GogGridLine *grid_line, GogView *view,
}
} else {
for (i = 0; i < tick_nbr; ++i) {
- if (!((ticks[i].type == GOG_AXIS_TICK_MAJOR
+ if (!((ticks[i].type == GOG_AXIS_TICK_MAJOR
&& !grid_line->is_minor) ||
(ticks[i].type == GOG_AXIS_TICK_MINOR
&& grid_line->is_minor)))
@@ -458,7 +458,7 @@ gog_grid_line_xyz_render (GogGridLine *grid_line, GogView *view,
}
} else {
for (i = 0; i < tick_nbr; ++i) {
- if (!((ticks[i].type == GOG_AXIS_TICK_MAJOR
+ if (!((ticks[i].type == GOG_AXIS_TICK_MAJOR
&& !grid_line->is_minor) ||
(ticks[i].type == GOG_AXIS_TICK_MINOR
&& grid_line->is_minor)))
@@ -541,7 +541,7 @@ gog_grid_line_xyz_render (GogGridLine *grid_line, GogView *view,
}
} else {
for (i = 0; i < tick_nbr; ++i) {
- if (!((ticks[i].type == GOG_AXIS_TICK_MAJOR
+ if (!((ticks[i].type == GOG_AXIS_TICK_MAJOR
&& !grid_line->is_minor) ||
(ticks[i].type == GOG_AXIS_TICK_MINOR
&& grid_line->is_minor)))
@@ -863,14 +863,14 @@ gog_grid_line_view_render (GogView *view, gboolean stripes)
plot_area, stripes);
break;
- case GOG_AXIS_RADIAL:
- gog_grid_line_radial_render (grid_line, view,
+ case GOG_AXIS_RADIAL:
+ gog_grid_line_radial_render (grid_line, view,
axis, ticks, tick_nbr,
chart, plot_area, stripes);
break;
-
- case GOG_AXIS_CIRCULAR:
- gog_grid_line_circular_render (grid_line, view,
+
+ case GOG_AXIS_CIRCULAR:
+ gog_grid_line_circular_render (grid_line, view,
axis, ticks, tick_nbr,
chart, plot_area, stripes);
break;
diff --git a/goffice/graph/gog-grid.c b/goffice/graph/gog-grid.c
index 5f78f51..400caad 100644
--- a/goffice/graph/gog-grid.c
+++ b/goffice/graph/gog-grid.c
@@ -115,7 +115,7 @@ gog_grid_class_init (GObjectClass *gobject_klass)
g_object_class_install_property (gobject_klass, GRID_PROP_TYPE,
g_param_spec_int ("type", _("Type"),
_("Numerical type of this backplane"),
- GOG_GRID_UNKNOWN, GOG_GRID_TYPES, GOG_GRID_UNKNOWN,
+ GOG_GRID_UNKNOWN, GOG_GRID_TYPES, GOG_GRID_UNKNOWN,
GSF_PARAM_STATIC | G_PARAM_READWRITE
| GO_PARAM_PERSISTENT));
diff --git a/goffice/graph/gog-grid.h b/goffice/graph/gog-grid.h
index a4e58b9..e68ba85 100644
--- a/goffice/graph/gog-grid.h
+++ b/goffice/graph/gog-grid.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-grid.h :
+ * gog-grid.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/graph/gog-guru.c b/goffice/graph/gog-guru.c
index 0a008cf..0fe0a91 100644
--- a/goffice/graph/gog-guru.c
+++ b/goffice/graph/gog-guru.c
@@ -572,7 +572,7 @@ cb_attr_tree_selection_change (GraphGuruState *s)
if (s->prop_object != NULL) {
gog_child_button_set_object (GOG_CHILD_BUTTON (s->child_button), s->prop_object);
- /* if we ever go back to the typeselector be sure to
+ /* if we ever go back to the typeselector be sure to
* add the plot to the last selected chart */
s->chart = (GogChart *)
gog_object_get_parent_typed (obj, GOG_TYPE_CHART);
@@ -776,7 +776,7 @@ cb_canvas_select_item (GocCanvas *canvas, GdkEvent *event,
g_return_val_if_fail (GOC_IS_CANVAS (canvas), FALSE);
g_object_get (G_OBJECT(s->sample_graph_item), "x", &item_x, "y", &item_y, NULL);
- gog_graph_view_handle_event (s->graph_view, (GdkEvent *) event,
+ gog_graph_view_handle_event (s->graph_view, (GdkEvent *) event,
item_x * canvas->pixels_per_unit,
item_y * canvas->pixels_per_unit);
return TRUE;
@@ -946,7 +946,7 @@ graph_guru_init_format_page (GraphGuruState *s)
/* Connect to selection-changed signal of graph view */
g_object_get (G_OBJECT (s->sample_graph_item), "renderer", &rend, NULL);
g_object_get (G_OBJECT (rend), "view", &(s->graph_view), NULL);
- s->selection_changed_handler = g_signal_connect (G_OBJECT (s->graph_view), "selection-changed",
+ s->selection_changed_handler = g_signal_connect (G_OBJECT (s->graph_view), "selection-changed",
G_CALLBACK (cb_graph_selection_changed), s);
g_object_unref (G_OBJECT (rend));
@@ -977,7 +977,7 @@ graph_guru_init_format_page (GraphGuruState *s)
w = go_gtk_builder_get_widget (s->gui, "attr_window");
gtk_container_add (GTK_CONTAINER (w), GTK_WIDGET (s->prop_view));
gtk_widget_show_all (w);
-
+
}
static void
@@ -1031,9 +1031,9 @@ cb_graph_guru_clicked (GtkWidget *button, GraphGuruState *s)
s->register_closure != NULL && s->graph != NULL) {
/* Invoking closure */
GValue instance_and_params[2];
- gpointer data = s->register_closure->is_invalid ?
+ gpointer data = s->register_closure->is_invalid ?
NULL : s->register_closure->data;
-
+
instance_and_params[0].g_type = 0;
g_value_init (&instance_and_params[0], GOG_TYPE_GRAPH);
g_value_set_instance (&instance_and_params[0], s->graph);
@@ -1068,9 +1068,9 @@ graph_guru_init_button (GraphGuruState *s, char const *widget_name)
static GtkWidget *
graph_guru_init_ok_button (GraphGuruState *s)
{
- GtkButton *button = GTK_BUTTON (gtk_builder_get_object
+ GtkButton *button = GTK_BUTTON (gtk_builder_get_object
(s->gui, "button_ok"));
-
+
if (s->editing) {
gtk_button_set_label (button, GTK_STOCK_APPLY);
gtk_button_set_use_stock (button, TRUE);
@@ -1166,7 +1166,7 @@ graph_guru_type_selector_new (GraphGuruState *s)
gtk_widget_set_size_request (typesel->canvas,
MINOR_PIXMAP_WIDTH*3 + BORDER*5,
MINOR_PIXMAP_HEIGHT*3 + BORDER*5);
- gtk_container_add (GTK_CONTAINER (gtk_builder_get_object (gui, "canvas_container")),
+ gtk_container_add (GTK_CONTAINER (gtk_builder_get_object (gui, "canvas_container")),
typesel->canvas);
/* Init the list and the canvas group for each family */
diff --git a/goffice/graph/gog-guru.h b/goffice/graph/gog-guru.h
index 406d083..81de947 100644
--- a/goffice/graph/gog-guru.h
+++ b/goffice/graph/gog-guru.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-guru.h :
+ * gog-guru.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/graph/gog-label.c b/goffice/graph/gog-label.c
index e18dbef..8432b91 100644
--- a/goffice/graph/gog-label.c
+++ b/goffice/graph/gog-label.c
@@ -41,7 +41,7 @@ typedef struct {
typedef struct {
GogOutlinedObjectClass base;
-
+
char *(*get_str) (GogText *text);
} GogTextClass;
@@ -97,7 +97,7 @@ gog_text_init_style (GogStyledObject *gso, GOStyle *style)
gog_theme_fillin_style (gog_object_get_theme (GOG_OBJECT (gso)),
style, GOG_OBJECT (gso), 0, GO_STYLE_OUTLINE | GO_STYLE_FILL |
GO_STYLE_FONT | GO_STYLE_TEXT_LAYOUT);
-
+
/* Kludge for default Y axis title orientation. This should have be done
* in GogTheme, but it's not possible without breaking graph persistence
* compatibility */
@@ -123,10 +123,10 @@ gog_text_class_init (GogTextClass *klass)
gobject_klass->get_property = gog_text_get_property;
g_object_class_install_property (gobject_klass, TEXT_PROP_ALLOW_MARKUP,
- g_param_spec_boolean ("allow-markup",
+ g_param_spec_boolean ("allow-markup",
_("Allow markup"),
_("Support basic html-ish markup"),
- TRUE,
+ TRUE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
gog_klass->view_type = gog_text_view_get_type ();
@@ -143,9 +143,9 @@ static char *
gog_text_get_str (GogText *text)
{
GogTextClass *klass;
-
+
g_return_val_if_fail (GOG_IS_TEXT (text), NULL);
-
+
klass = GOG_TEXT_GET_CLASS (text);
if (klass->get_str != NULL)
@@ -172,9 +172,9 @@ static GObjectClass *label_parent_klass;
#ifdef GOFFICE_WITH_GTK
static void
-gog_label_populate_editor (GogObject *gobj,
- GOEditor *editor,
- GogDataAllocator *dalloc,
+gog_label_populate_editor (GogObject *gobj,
+ GOEditor *editor,
+ GogDataAllocator *dalloc,
GOCmdContext *cc)
{
static guint label_pref_page = 0;
@@ -186,14 +186,14 @@ gog_label_populate_editor (GogObject *gobj,
0, GOG_DATA_SCALAR));
gtk_container_set_border_width (GTK_CONTAINER (alignment), 12);
- gtk_box_pack_start (GTK_BOX (hbox),
+ gtk_box_pack_start (GTK_BOX (hbox),
gtk_label_new_with_mnemonic (_("_Text:")), FALSE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (hbox), editor_widget, TRUE, TRUE, 0);
gtk_container_add (GTK_CONTAINER (alignment), hbox);
gtk_widget_show_all (alignment);
go_editor_add_page (editor, alignment, _("Data"));
-
+
(GOG_OBJECT_CLASS(label_parent_klass)->populate_editor) (gobj, editor, dalloc, cc);
go_editor_set_store_page (editor, &label_pref_page);
}
@@ -203,12 +203,12 @@ static char *
gog_label_get_str (GogText *text)
{
GogLabel *label = GOG_LABEL (text);
-
+
g_return_val_if_fail (GOG_IS_LABEL (label), NULL);
if (label->text.data != NULL)
return go_data_get_scalar_string (label->text.data);
-
+
return NULL;
}
@@ -223,7 +223,7 @@ static void
gog_label_class_init (GogLabelClass *klass)
{
GObjectClass *gobject_klass = (GObjectClass *) klass;
- GogTextClass *got_klass = (GogTextClass *) klass;
+ GogTextClass *got_klass = (GogTextClass *) klass;
#ifdef GOFFICE_WITH_GTK
GogObjectClass *gog_klass = (GogObjectClass *) klass;
gog_klass->populate_editor = gog_label_populate_editor;
@@ -267,7 +267,7 @@ GSF_CLASS_FULL (GogLabel, gog_label,
GSF_INTERFACE (gog_label_dataset_init, GOG_TYPE_DATASET))
/************************************************************************/
-
+
enum {
REG_EQN_PROP_0,
REG_EQN_SHOW_EQ,
@@ -331,9 +331,9 @@ cb_text_visibility_changed (GtkToggleButton *button, GogObject *gobj)
}
static void
-gog_reg_eqn_populate_editor (GogObject *gobj,
- GOEditor *editor,
- GogDataAllocator *dalloc,
+gog_reg_eqn_populate_editor (GogObject *gobj,
+ GOEditor *editor,
+ GogDataAllocator *dalloc,
GOCmdContext *cc)
{
GtkWidget *w;
@@ -344,7 +344,7 @@ gog_reg_eqn_populate_editor (GogObject *gobj,
if (gui == NULL)
return;
- go_editor_add_page (editor,
+ go_editor_add_page (editor,
go_gtk_builder_get_widget (gui, "reg-eqn-prefs"),
_("Details"));
@@ -375,13 +375,13 @@ gog_reg_eqn_get_str (GogText *text)
{
GogRegCurve *reg_curve = GOG_REG_CURVE ((GOG_OBJECT (text))->parent);
GogRegEqn *reg_eqn = GOG_REG_EQN (text);
-
- if (!reg_eqn->show_r2)
- return reg_eqn->show_eq ?
+
+ if (!reg_eqn->show_r2)
+ return reg_eqn->show_eq ?
g_strdup (gog_reg_curve_get_equation (reg_curve)) :
NULL;
- else
- return reg_eqn->show_eq ?
+ else
+ return reg_eqn->show_eq ?
g_strdup_printf ("%s\r\nR² = %g",
gog_reg_curve_get_equation (reg_curve),
gog_reg_curve_get_R2 (reg_curve)) :
@@ -392,7 +392,7 @@ static void
gog_reg_eqn_class_init (GogObjectClass *gog_klass)
{
GObjectClass *gobject_klass = (GObjectClass *)gog_klass;
- GogTextClass *got_klass = (GogTextClass *) gog_klass;
+ GogTextClass *got_klass = (GogTextClass *) gog_klass;
reg_eqn_parent_klass = g_type_class_peek_parent (gog_klass);
@@ -405,16 +405,16 @@ gog_reg_eqn_class_init (GogObjectClass *gog_klass)
got_klass->get_str = gog_reg_eqn_get_str;
g_object_class_install_property (gobject_klass, REG_EQN_SHOW_EQ,
- g_param_spec_boolean ("show-eq",
+ g_param_spec_boolean ("show-eq",
_("Show equation"),
_("Show the equation on the graph"),
- TRUE,
+ TRUE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, REG_EQN_SHOW_R2,
- g_param_spec_boolean ("show-r2",
+ g_param_spec_boolean ("show-r2",
_("Show coefficient"),
_("Show the correlation coefficient on the graph"),
- TRUE,
+ TRUE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
}
@@ -441,7 +441,7 @@ typedef GogOutlinedViewClass GogTextViewClass;
static GogViewClass *text_view_parent_klass;
static void
-gog_text_view_size_request (GogView *v,
+gog_text_view_size_request (GogView *v,
GogViewRequisition const *available,
GogViewRequisition *req)
{
@@ -471,7 +471,7 @@ gog_text_view_render (GogView *view, GogViewAllocation const *bbox)
gog_renderer_push_style (view->renderer, style);
if (str != NULL) {
- double outline = gog_renderer_line_size (view->renderer,
+ double outline = gog_renderer_line_size (view->renderer,
goo->base.style->line.width);
if (style->fill.type != GO_STYLE_FILL_NONE || outline > 0.) {
GogViewAllocation rect;
diff --git a/goffice/graph/gog-label.h b/goffice/graph/gog-label.h
index 6808960..d2be310 100644
--- a/goffice/graph/gog-label.h
+++ b/goffice/graph/gog-label.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-label.h :
+ * gog-label.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
* Copyright (C) 2005 Jean Brefort (jean brefort normalesup org)
diff --git a/goffice/graph/gog-legend.c b/goffice/graph/gog-legend.c
index 9ccfd72..41ad4fe 100644
--- a/goffice/graph/gog-legend.c
+++ b/goffice/graph/gog-legend.c
@@ -160,9 +160,9 @@ gog_legend_update (GogObject *obj)
}
static void
-gog_legend_populate_editor (GogObject *gobj,
- GOEditor *editor,
- GogDataAllocator *dalloc,
+gog_legend_populate_editor (GogObject *gobj,
+ GOEditor *editor,
+ GogDataAllocator *dalloc,
GOCmdContext *cc)
{
static guint legend_pref_page = 0;
@@ -194,7 +194,7 @@ gog_legend_class_init (GogLegendClass *klass)
GogStyledObjectClass *style_klass = (GogStyledObjectClass *) klass;
parent_klass = g_type_class_peek_parent (klass);
-
+
gobject_klass->set_property = gog_legend_set_property;
gobject_klass->get_property = gog_legend_get_property;
gog_klass->parent_changed = gog_legend_parent_changed;
@@ -202,20 +202,20 @@ gog_legend_class_init (GogLegendClass *klass)
gog_klass->populate_editor = gog_legend_populate_editor;
gog_klass->view_type = gog_legend_view_get_type ();
style_klass->init_style = gog_legend_init_style;
-
+
gog_object_register_roles (gog_klass, roles, G_N_ELEMENTS (roles));
g_object_class_install_property (gobject_klass, LEGEND_SWATCH_SIZE_PTS,
- g_param_spec_double ("swatch-size-pts",
+ g_param_spec_double ("swatch-size-pts",
_("Swatch Size pts"),
_("size of the swatches in pts."),
- 0, G_MAXDOUBLE, 0,
+ 0, G_MAXDOUBLE, 0,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, LEGEND_SWATCH_PADDING_PTS,
- g_param_spec_double ("swatch-padding-pts",
+ g_param_spec_double ("swatch-padding-pts",
_("Swatch Padding pts"),
_("padding between the swatches in pts."),
- 0, G_MAXDOUBLE, 0,
+ 0, G_MAXDOUBLE, 0,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
}
@@ -263,25 +263,25 @@ typedef GogOutlinedViewClass GogLegendViewClass;
static GogViewClass *lview_parent_klass;
static void
-cb_size_elements (unsigned i, GOStyle const *style,
+cb_size_elements (unsigned i, GOStyle const *style,
char const *name, GogLegendView *glv)
{
GogView *view = GOG_VIEW (glv);
GOGeometryAABR aabr;
-
+
gog_renderer_get_text_AABR (view->renderer, name, FALSE, &aabr);
if (glv->element_width < aabr.w)
glv->element_width = aabr.w;
if (glv->element_height < aabr.h)
glv->element_height = aabr.h;
- if (!glv->uses_lines && (style->interesting_fields & GO_STYLE_LINE))
+ if (!glv->uses_lines && (style->interesting_fields & GO_STYLE_LINE))
glv->uses_lines = TRUE;
}
static void
-gog_legend_view_size_request (GogView *v,
- GogViewRequisition const *available,
+gog_legend_view_size_request (GogView *v,
+ GogViewRequisition const *available,
GogViewRequisition *req)
{
GogChart *chart = GOG_CHART (v->model->parent);
@@ -306,7 +306,7 @@ gog_legend_view_size_request (GogView *v,
gog_chart_get_cardinality (chart, NULL, &num_elements);
if (num_elements < 1) {
- /* If there's no child requisition and no element, there's no
+ /* If there's no child requisition and no element, there's no
* point in displaying a legend box. */
if (go_sub_epsilon (child_req.w) <= 0.0 &&
go_sub_epsilon (child_req.h) <= 0.0) {
@@ -320,11 +320,11 @@ gog_legend_view_size_request (GogView *v,
style = go_styled_object_get_style (GO_STYLED_OBJECT (l));
gog_renderer_push_style (v->renderer, style);
-
+
glv->font_size = pango_font_description_get_size (style->font.font->desc) / PANGO_SCALE;
glv->swatch_w = gog_renderer_pt2r_x (v->renderer, glv->font_size);
glv->swatch_h = gog_renderer_pt2r_y (v->renderer, glv->font_size);
-
+
glv->element_width = 0.;
glv->element_height = GLV_ELEMENT_HEIGHT_EM * glv->swatch_h;
glv->uses_lines = FALSE;
@@ -334,16 +334,16 @@ gog_legend_view_size_request (GogView *v,
gog_renderer_pop_style (v->renderer);
- glv->label_offset = (glv->uses_lines ?
- GLV_LINE_LENGTH_EM + GLV_SWATCH_SPACING_EM :
+ glv->label_offset = (glv->uses_lines ?
+ GLV_LINE_LENGTH_EM + GLV_SWATCH_SPACING_EM :
GLV_SWATCH_LENGTH_EM + GLV_SWATCH_SPACING_EM) * glv->swatch_w;
glv->element_width += glv->label_offset + glv->swatch_w * GLV_ELEMENT_SPACING_EM;
available_space = glv->is_vertical ? residual.h : residual.w;
- element_size = glv->is_vertical ? glv->element_height : glv->element_width;
-
+ element_size = glv->is_vertical ? glv->element_height : glv->element_width;
+
glv->element_per_blocks = available_space > 0. ? floor (available_space / element_size) : 0;
-
+
if (glv->element_per_blocks < 1) {
req->w = req->h = -1;
return;
@@ -356,7 +356,7 @@ gog_legend_view_size_request (GogView *v,
req->w += glv->num_blocks * glv->element_width - glv->swatch_w * GLV_ELEMENT_SPACING_EM;
} else {
req->h += glv->num_blocks * glv->element_height;
- req->w += MIN (glv->element_per_blocks, num_elements) * glv->element_width
+ req->w += MIN (glv->element_per_blocks, num_elements) * glv->element_width
- glv->swatch_w * GLV_ELEMENT_SPACING_EM;
}
@@ -536,9 +536,9 @@ gog_legend_view_render (GogView *v, GogViewAllocation const *bbox)
if (swatch_data.size_min > swatch_size_min)
swatch_data.size_min = swatch_size_min;
if (go_sub_epsilon (fabs (swatch_data.size_max - swatch_data.size_min)) > 0.0) {
- data.swatch_scale_a = (swatch_size_max - swatch_size_min) /
+ data.swatch_scale_a = (swatch_size_max - swatch_size_min) /
(swatch_data.size_max - swatch_data.size_min);
- data.swatch_scale_b = - swatch_data.size_min *
+ data.swatch_scale_b = - swatch_data.size_min *
data.swatch_scale_a +swatch_size_min;
} else {
data.swatch_scale_a = 1.0;
@@ -554,24 +554,24 @@ gog_legend_view_render (GogView *v, GogViewAllocation const *bbox)
data.line_path[1].code = ART_LINETO;
data.line_path[2].code = ART_END;
}*/
-
+
data.count = 0;
data.view = v;
data.x = v->residual.x;
data.y = v->residual.y;
data.element_step_x = glv->is_vertical ? 0 : glv->element_width;
data.element_step_y = glv->is_vertical ? glv->element_height : 0;
- data.block_step_x = glv->is_vertical ?
- + glv->element_width :
+ data.block_step_x = glv->is_vertical ?
+ + glv->element_width :
- glv->element_width * (glv->element_per_blocks - 1);
- data.block_step_y = glv->is_vertical ?
+ data.block_step_y = glv->is_vertical ?
- glv->element_height * (glv->element_per_blocks - 1) :
+ glv->element_height;
data.swatch.w = glv->swatch_w;
data.swatch.h = glv->swatch_h;
data.swatch.x = (glv->label_offset - 1.5 * data.swatch.w) * .5;
data.swatch.y = (glv->element_height - data.swatch.h) * .5;
-
+
gog_chart_foreach_elem (GOG_CHART (v->model->parent), TRUE,
(GogEnumFunc) cb_render_elements, &data);
diff --git a/goffice/graph/gog-legend.h b/goffice/graph/gog-legend.h
index bb28cdb..23cefa2 100644
--- a/goffice/graph/gog-legend.h
+++ b/goffice/graph/gog-legend.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-legend.h :
+ * gog-legend.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/graph/gog-object-xml.c b/goffice/graph/gog-object-xml.c
index 8099bca..7b91025 100644
--- a/goffice/graph/gog-object-xml.c
+++ b/goffice/graph/gog-object-xml.c
@@ -69,7 +69,7 @@ gog_object_set_arg_full (char const *name, char const *val, GogObject *obj, xmlN
GObject *val_obj;
success = FALSE;
- type_name = xmlGetProp (xml_node,
+ type_name = xmlGetProp (xml_node,
(xmlChar const *) "type");
if (type_name != NULL) {
type = g_type_from_name (type_name);
@@ -116,7 +116,7 @@ gog_object_write_property_sax (GogObject const *obj, GParamSpec *pspec, GsfXMLOu
if (((pspec->flags & GOG_PARAM_POSITION) &&
gog_object_is_default_position_flags (obj, pspec->name)) ||
(!(pspec->flags & GOG_PARAM_FORCE_SAVE) &&
- !(pspec->flags & GOG_PARAM_POSITION) &&
+ !(pspec->flags & GOG_PARAM_POSITION) &&
g_param_value_defaults (pspec, &value))) {
g_value_unset (&value);
return;
@@ -227,7 +227,7 @@ gog_dataset_sax_save (GogDataset const *set, GsfXMLOut *output, gpointer user)
gsf_xml_out_start_element (output, "dimension");
gsf_xml_out_add_int (output, "id", i);
- gsf_xml_out_add_cstr (output, "type",
+ gsf_xml_out_add_cstr (output, "type",
G_OBJECT_TYPE_NAME (dat));
tmp = go_data_serialize (dat, user);
gsf_xml_out_add_cstr (output, NULL, tmp);
diff --git a/goffice/graph/gog-object-xml.h b/goffice/graph/gog-object-xml.h
index a6b70a6..7adce07 100644
--- a/goffice/graph/gog-object-xml.h
+++ b/goffice/graph/gog-object-xml.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-object-xml.h :
+ * gog-object-xml.h :
*
* Copyright (C) 2003-2005 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/graph/gog-object.c b/goffice/graph/gog-object.c
index 4ba874d..953b7c2 100644
--- a/goffice/graph/gog-object.c
+++ b/goffice/graph/gog-object.c
@@ -31,7 +31,7 @@
typedef struct {
char const *label;
char const *value;
- unsigned const flags;
+ unsigned const flags;
} GogPositionFlagDesc;
static GogPositionFlagDesc const position_compass[] = {
@@ -151,11 +151,11 @@ gog_object_set_property (GObject *obj, guint param_id,
if (str == NULL)
break;
for (id = 0; id < G_N_ELEMENTS (position_compass); id++)
- if (strcmp (str, position_compass[id].value) == 0)
+ if (strcmp (str, position_compass[id].value) == 0)
break;
if (id < G_N_ELEMENTS (position_compass))
- gog_object_set_position_flags (gobj,
- position_compass[id].flags,
+ gog_object_set_position_flags (gobj,
+ position_compass[id].flags,
GOG_POSITION_COMPASS);
break;
case OBJECT_PROP_POSITION_ALIGNMENT:
@@ -163,11 +163,11 @@ gog_object_set_property (GObject *obj, guint param_id,
if (str == NULL)
break;
for (id = 0; id < G_N_ELEMENTS (position_alignment); id++)
- if (strcmp (str, position_alignment[id].value) == 0)
+ if (strcmp (str, position_alignment[id].value) == 0)
break;
if (id < G_N_ELEMENTS (position_alignment))
- gog_object_set_position_flags (gobj,
- position_alignment[id].flags,
+ gog_object_set_position_flags (gobj,
+ position_alignment[id].flags,
GOG_POSITION_ALIGNMENT);
break;
case OBJECT_PROP_POSITION_IS_MANUAL:
@@ -177,14 +177,14 @@ gog_object_set_property (GObject *obj, guint param_id,
break;
case OBJECT_PROP_POSITION_ANCHOR:
str = g_value_get_string (value);
- if (str == NULL)
+ if (str == NULL)
break;
for (id = 0; id < G_N_ELEMENTS (position_anchor); id++)
- if (strcmp (str, position_anchor[id].value) == 0)
+ if (strcmp (str, position_anchor[id].value) == 0)
break;
if (id < G_N_ELEMENTS (position_anchor))
- gog_object_set_position_flags (gobj,
- position_anchor[id].flags,
+ gog_object_set_position_flags (gobj,
+ position_anchor[id].flags,
GOG_POSITION_ANCHOR);
break;
case OBJECT_PROP_INVISIBLE :
@@ -229,7 +229,7 @@ gog_object_get_property (GObject *obj, guint param_id,
g_value_set_string (value, position_compass[i].value);
break;
}
- break;
+ break;
case OBJECT_PROP_POSITION_ALIGNMENT:
flags = gog_object_get_position_flags (GOG_OBJECT (obj), GOG_POSITION_ALIGNMENT);
for (i = 0; i < G_N_ELEMENTS (position_alignment); i++)
@@ -237,7 +237,7 @@ gog_object_get_property (GObject *obj, guint param_id,
g_value_set_string (value, position_alignment[i].value);
break;
}
- break;
+ break;
case OBJECT_PROP_POSITION_IS_MANUAL:
g_value_set_boolean (value, (gobj->position & GOG_POSITION_MANUAL) != 0);
break;
@@ -269,7 +269,7 @@ typedef struct {
} ObjectPrefState;
static void
-object_pref_state_free (ObjectPrefState *state)
+object_pref_state_free (ObjectPrefState *state)
{
g_signal_handler_disconnect (state->gobj, state->update_editor_handler);
g_object_unref (state->gobj);
@@ -316,8 +316,8 @@ update_select_state (ObjectPrefState *state)
{
if (state->position_select_combo) {
int index = gog_object_get_position_flags (state->gobj, GOG_POSITION_MANUAL) == 0 ? 0 : 1;
-
- gtk_combo_box_set_active (GTK_COMBO_BOX (state->position_select_combo), index);
+
+ gtk_combo_box_set_active (GTK_COMBO_BOX (state->position_select_combo), index);
gtk_notebook_set_current_page (GTK_NOTEBOOK (state->position_notebook), index);
}
}
@@ -327,8 +327,8 @@ cb_manual_position_changed (GtkComboBox *combo, ObjectPrefState *state)
{
int index = gtk_combo_box_get_active (combo);
- gog_object_set_position_flags (state->gobj,
- index != 0 ? GOG_POSITION_MANUAL : 0,
+ gog_object_set_position_flags (state->gobj,
+ index != 0 ? GOG_POSITION_MANUAL : 0,
GOG_POSITION_MANUAL);
gtk_notebook_set_current_page (GTK_NOTEBOOK (state->position_notebook), index);
}
@@ -352,14 +352,14 @@ cb_update_editor (GogObject *gobj, ObjectPrefState *state)
gtk_spin_button_set_value (GTK_SPIN_BUTTON (state->w_spin), gobj->manual_position.w * 100.0);
if (state->h_spin != NULL)
gtk_spin_button_set_value (GTK_SPIN_BUTTON (state->h_spin), gobj->manual_position.h * 100.0);
-
+
update_select_state (state);
}
static void
-gog_object_populate_editor (GogObject *gobj,
- GOEditor *editor,
- G_GNUC_UNUSED GogDataAllocator *dalloc,
+gog_object_populate_editor (GogObject *gobj,
+ GOEditor *editor,
+ G_GNUC_UNUSED GogDataAllocator *dalloc,
GOCmdContext *cc)
{
GtkWidget *w;
@@ -369,15 +369,15 @@ gog_object_populate_editor (GogObject *gobj,
GogObjectPosition allowable_positions, flags;
ObjectPrefState *state;
unsigned i;
-
- if (gobj->role == NULL)
+
+ if (gobj->role == NULL)
return;
gog_klass = GOG_OBJECT_GET_CLASS (gobj);
-
+
allowable_positions = gobj->role->allowable_positions;
if (!(allowable_positions & (GOG_POSITION_MANUAL | GOG_POSITION_COMPASS)))
- return;
+ return;
gui = go_gtk_builder_new ("gog-object-prefs.ui", GETTEXT_PACKAGE, cc);
if (gui == NULL)
@@ -402,7 +402,7 @@ gog_object_populate_editor (GogObject *gobj,
w = go_gtk_builder_get_widget (gui, "position_combo");
gtk_size_group_add_widget (widget_size_group, w);
flags = gog_object_get_position_flags (gobj, GOG_POSITION_COMPASS);
- for (i = 0; i < G_N_ELEMENTS (position_compass); i++) {
+ for (i = 0; i < G_N_ELEMENTS (position_compass); i++) {
gtk_combo_box_append_text (GTK_COMBO_BOX (w), _(position_compass[i].label));
if (position_compass[i].flags == flags)
gtk_combo_box_set_active (GTK_COMBO_BOX (w), i);
@@ -432,15 +432,15 @@ gog_object_populate_editor (GogObject *gobj,
gtk_widget_hide (w);
}
- if (!(allowable_positions & GOG_POSITION_COMPASS))
+ if (!(allowable_positions & GOG_POSITION_COMPASS))
gtk_notebook_set_current_page (GTK_NOTEBOOK (state->position_notebook), 1);
-
+
g_object_unref (G_OBJECT (widget_size_group));
g_object_unref (G_OBJECT (label_size_group));
widget_size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
label_size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
-
+
if (allowable_positions & GOG_POSITION_MANUAL) {
w = go_gtk_builder_get_widget (gui, "x_label");
gtk_size_group_add_widget (label_size_group, w);
@@ -449,7 +449,7 @@ gog_object_populate_editor (GogObject *gobj,
gtk_spin_button_set_value (GTK_SPIN_BUTTON (w), gobj->manual_position.x * 100.0);
g_signal_connect (G_OBJECT (w), "value-changed", G_CALLBACK (cb_position_changed), state);
state->x_spin = w;
-
+
w = go_gtk_builder_get_widget (gui, "y_label");
gtk_size_group_add_widget (label_size_group, w);
w = go_gtk_builder_get_widget (gui, "y_spin");
@@ -469,14 +469,14 @@ gog_object_populate_editor (GogObject *gobj,
}
g_signal_connect (G_OBJECT (w), "changed", G_CALLBACK (cb_anchor_changed), state);
gtk_combo_box_set_wrap_width (GTK_COMBO_BOX (w), 3);
-
+
if (gog_klass->can_manual_size) {
w = go_gtk_builder_get_widget (gui, "width_label");
gtk_size_group_add_widget (label_size_group, w);
w = go_gtk_builder_get_widget (gui, "width_spin");
gtk_size_group_add_widget (widget_size_group, w);
gtk_spin_button_set_value (GTK_SPIN_BUTTON (w), gobj->manual_position.w * 100.0);
- g_signal_connect (G_OBJECT (w), "value-changed",
+ g_signal_connect (G_OBJECT (w), "value-changed",
G_CALLBACK (cb_position_changed), state);
state->w_spin = w;
@@ -485,14 +485,14 @@ gog_object_populate_editor (GogObject *gobj,
w = go_gtk_builder_get_widget (gui, "height_spin");
gtk_size_group_add_widget (widget_size_group, w);
gtk_spin_button_set_value (GTK_SPIN_BUTTON (w), gobj->manual_position.h * 100.0);
- g_signal_connect (G_OBJECT (w), "value-changed",
+ g_signal_connect (G_OBJECT (w), "value-changed",
G_CALLBACK (cb_position_changed), state);
state->h_spin = w;
} else {
w = go_gtk_builder_get_widget (gui, "manual_sizes");
gtk_widget_hide (w);
}
- } else
+ } else
gtk_notebook_set_current_page (GTK_NOTEBOOK (state->position_notebook), 0);
g_object_unref (G_OBJECT (widget_size_group));
@@ -512,12 +512,12 @@ gog_object_populate_editor (GogObject *gobj,
gtk_widget_hide (w);
}
- state->update_editor_handler = g_signal_connect (G_OBJECT (gobj),
- "update-editor",
+ state->update_editor_handler = g_signal_connect (G_OBJECT (gobj),
+ "update-editor",
G_CALLBACK (cb_update_editor), state);
w = go_gtk_builder_get_widget (gui, "gog_object_prefs");
- g_signal_connect_swapped (G_OBJECT (w), "destroy", G_CALLBACK (object_pref_state_free), state);
+ g_signal_connect_swapped (G_OBJECT (w), "destroy", G_CALLBACK (object_pref_state_free), state);
go_editor_add_page (editor, w, _("Position"));
}
#endif
@@ -556,46 +556,46 @@ gog_object_class_init (GObjectClass *klass)
gog_klass->use_parent_as_proxy = FALSE;
g_object_class_install_property (klass, OBJECT_PROP_ID,
- g_param_spec_uint ("id",
- _("Object ID"),
+ g_param_spec_uint ("id",
+ _("Object ID"),
_("Object numerical ID"),
0, G_MAXINT, 0,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (klass, OBJECT_PROP_POSITION,
- g_param_spec_string ("position",
- _("Position"),
+ g_param_spec_string ("position",
+ _("Position"),
_("Position and size of object, in percentage of parent size"),
- "0 0 1 1",
+ "0 0 1 1",
GSF_PARAM_STATIC | G_PARAM_READWRITE|GO_PARAM_PERSISTENT));
g_object_class_install_property (klass, OBJECT_PROP_POSITION_COMPASS,
- g_param_spec_string ("compass",
+ g_param_spec_string ("compass",
_("Compass"),
_("Compass auto position flags"),
- "top",
+ "top",
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT | GOG_PARAM_POSITION));
g_object_class_install_property (klass, OBJECT_PROP_POSITION_ALIGNMENT,
- g_param_spec_string ("alignment",
+ g_param_spec_string ("alignment",
_("Alignment"),
_("Alignment flag"),
"fill",
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT | GOG_PARAM_POSITION));
g_object_class_install_property (klass, OBJECT_PROP_POSITION_IS_MANUAL,
- g_param_spec_boolean ("is-position-manual",
- _("Is position manual"),
+ g_param_spec_boolean ("is-position-manual",
_("Is position manual"),
- FALSE,
+ _("Is position manual"),
+ FALSE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (klass, OBJECT_PROP_POSITION_ANCHOR,
- g_param_spec_string ("anchor",
+ g_param_spec_string ("anchor",
_("Anchor"),
_("Anchor for manual position"),
- "top-left",
+ "top-left",
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT | GOG_PARAM_POSITION));
g_object_class_install_property (klass, OBJECT_PROP_INVISIBLE,
- g_param_spec_boolean ("invisible",
- _("Should the object be hidden"),
+ g_param_spec_boolean ("invisible",
+ _("Should the object be hidden"),
_("Should the object be hidden"),
- FALSE,
+ FALSE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
/**
@@ -817,7 +817,7 @@ dataset_dup (GogDataset const *src, GogDataset *dst)
* gog_object_dup :
* @src: #GogObject
* @new_parent: #GogObject the parent tree for the object (can be NULL)
- * @datadup: a function to duplicate the data (a default one is used if NULL)
+ * @datadup: a function to duplicate the data (a default one is used if NULL)
*
* Create a deep copy of @obj using @new_parent as its parent.
*
@@ -1242,10 +1242,10 @@ gog_object_reorder (GogObject const *obj, gboolean inc, gboolean goto_max)
* @obj: a #GogObject
* @dalloc: a #GogDataAllocator
* @cc: a #GOCmdContext
- *
+ *
* Builds an object property editor, by calling GogObject::populate_editor
* virtual functions.
- *
+ *
* Returns: a #GtkNotebook widget
**/
gpointer
@@ -1614,7 +1614,7 @@ gog_object_get_manual_position (GogObject *gobj, GogViewAllocation *pos)
* @obj : #GogObject
* @pos : #GogViewAllocation
*
- * set manual position of given object, in points.
+ * set manual position of given object, in points.
**/
void
gog_object_set_manual_position (GogObject *gobj, GogViewAllocation const *pos)
@@ -1658,9 +1658,9 @@ gog_object_get_manual_allocation (GogObject *gobj,
pos.w = requisition->w;
pos.h = requisition->h;
}
-
+
anchor = gog_object_get_position_flags (gobj, GOG_POSITION_ANCHOR);
-
+
switch (anchor) {
case GOG_POSITION_ANCHOR_N:
case GOG_POSITION_ANCHOR_CENTER:
@@ -1717,7 +1717,7 @@ gog_object_is_default_position_flags (GogObject const *obj, char const *name)
mask = GOG_POSITION_ALIGNMENT;
else if (strcmp (name, "anchor") == 0)
mask = GOG_POSITION_ANCHOR;
- else
+ else
return FALSE;
return (obj->position & mask) == (obj->role->default_position & mask);
diff --git a/goffice/graph/gog-object.h b/goffice/graph/gog-object.h
index 96b0bcc..de0ef19 100644
--- a/goffice/graph/gog-object.h
+++ b/goffice/graph/gog-object.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-object.h :
+ * gog-object.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
@@ -60,7 +60,7 @@ struct _GogObject {
unsigned id;
char *user_name; /* user assigned, NULL will fall back to system generated */
char *auto_name; /* system generated, in current locale */
-
+
GogObjectRole const *role;
GogObject *parent;
@@ -82,16 +82,16 @@ typedef struct {
GType view_type;
unsigned use_parent_as_proxy : 1; /* when we change, pretend it was our parent */
- unsigned can_manual_size : 1;
+ unsigned can_manual_size : 1;
unsigned roles_allocated : 1;
/* Virtuals */
void (*update) (GogObject *obj);
void (*parent_changed) (GogObject *obj, gboolean was_set);
char const *(*type_name) (GogObject const *obj);
- void (*populate_editor) (GogObject *obj,
+ void (*populate_editor) (GogObject *obj,
GOEditor *editor,
- GogDataAllocator *dalloc,
+ GogDataAllocator *dalloc,
GOCmdContext *cc);
void (*document_changed)(GogObject *obj, GODoc *doc);
@@ -148,14 +148,14 @@ GogObject *gog_object_reorder (GogObject const *obj,
#define gog_object_is_visible(obj) (!((GogObject*)obj)->invisible)
void gog_object_set_invisible (GogObject *obj, gboolean invisible);
GogObjectPosition gog_object_get_position_flags (GogObject const *obj, GogObjectPosition mask);
-gboolean gog_object_set_position_flags (GogObject *obj, GogObjectPosition flags,
+gboolean gog_object_set_position_flags (GogObject *obj, GogObjectPosition flags,
GogObjectPosition mask);
gboolean gog_object_is_default_position_flags (GogObject const *obj, char const *name);
void gog_object_get_manual_position (GogObject *obj, GogViewAllocation *pos);
void gog_object_set_manual_position (GogObject *obj, GogViewAllocation const *pos);
-GogViewAllocation gog_object_get_manual_allocation (GogObject *gobj,
- GogViewAllocation const *parent_allocation,
+GogViewAllocation gog_object_get_manual_allocation (GogObject *gobj,
+ GogViewAllocation const *parent_allocation,
GogViewRequisition const *requisition);
GogObjectRole const *gog_object_find_role_by_name (GogObject const *obj,
diff --git a/goffice/graph/gog-outlined-object.c b/goffice/graph/gog-outlined-object.c
index f6a5b85..04eff03 100644
--- a/goffice/graph/gog-outlined-object.c
+++ b/goffice/graph/gog-outlined-object.c
@@ -70,10 +70,10 @@ gog_outlined_object_class_init (GObjectClass *gobject_klass)
gobject_klass->get_property = gog_outlined_object_get_property;
g_object_class_install_property (gobject_klass, OUTLINED_OBJECT_PROP_PADDING_PTS,
- g_param_spec_double ("padding-pts",
+ g_param_spec_double ("padding-pts",
_("Padding Pts"),
_("Number of pts separating charts in the grid"),
- 0, G_MAXDOUBLE, 0,
+ 0, G_MAXDOUBLE, 0,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
}
@@ -99,19 +99,19 @@ gog_outlined_object_get_pad (GogOutlinedObject const *goo)
static GogViewClass *oview_parent_klass;
static void
-gog_outlined_view_size_request (GogView *v,
+gog_outlined_view_size_request (GogView *v,
GogViewRequisition const *available,
GogViewRequisition *req)
{
GogOutlinedObject *goo = GOG_OUTLINED_OBJECT (v->model);
- double outline = gog_renderer_line_size (v->renderer,
+ double outline = gog_renderer_line_size (v->renderer,
goo->base.style->line.width);
double is_outline_visible = go_style_is_outline_visible (goo->base.style);
if (goo->base.style->fill.type != GO_STYLE_FILL_NONE || is_outline_visible) {
- req->w += outline * 2 +
+ req->w += outline * 2 +
gog_renderer_pt2r_y (v->renderer, goo->padding_pts);
- req->h += outline * 2 +
+ req->h += outline * 2 +
gog_renderer_pt2r_y (v->renderer, goo->padding_pts);
}
}
@@ -121,7 +121,7 @@ gog_outlined_view_size_allocate (GogView *v, GogViewAllocation const *a)
{
GogOutlinedObject *goo = GOG_OUTLINED_OBJECT (v->model);
GogViewAllocation res = *a;
- double outline = gog_renderer_line_size (v->renderer,
+ double outline = gog_renderer_line_size (v->renderer,
goo->base.style->line.width);
double is_outline_visible = go_style_is_outline_visible (goo->base.style);
diff --git a/goffice/graph/gog-outlined-object.h b/goffice/graph/gog-outlined-object.h
index c42873e..3e4af36 100644
--- a/goffice/graph/gog-outlined-object.h
+++ b/goffice/graph/gog-outlined-object.h
@@ -30,7 +30,7 @@ typedef struct {
double padding_pts;
} GogOutlinedObject;
-typedef GogStyledObjectClass GogOutlinedObjectClass;
+typedef GogStyledObjectClass GogOutlinedObjectClass;
#define GOG_TYPE_OUTLINED_OBJECT (gog_outlined_object_get_type ())
#define GOG_OUTLINED_OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOG_TYPE_OUTLINED_OBJECT, GogOutlinedObject))
diff --git a/goffice/graph/gog-plot-engine.c b/goffice/graph/gog-plot-engine.c
index f4c0eb5..afab7e9 100644
--- a/goffice/graph/gog-plot-engine.c
+++ b/goffice/graph/gog-plot-engine.c
@@ -200,7 +200,7 @@ cb_pending_plot_types_load (char const *path,
}
if (type->properties == NULL)
- type->properties =
+ type->properties =
g_hash_table_new_full (g_str_hash, g_str_equal,
xmlFree, xmlFree);
g_hash_table_replace (type->properties,
@@ -384,7 +384,7 @@ gog_theme_service_read_xml (GOPluginService *service, xmlNode *tree, GOErrorInfo
}
theme = gog_theme_new_from_file (go_plugin_service_get_description (service),
path);
- gog_theme_registry_add (theme, FALSE);
+ gog_theme_registry_add (theme, FALSE);
}
}
@@ -770,9 +770,9 @@ gog_plot_type_register (GogPlotFamily *family, int col, int row,
char const *description, char const *engine)
{
GogPlotType *res;
-
+
g_return_val_if_fail (family != NULL, NULL);
-
+
res = g_new0 (GogPlotType, 1);
res->name = g_strdup (name);
res->sample_image_file = g_strdup (sample_image_file);
diff --git a/goffice/graph/gog-plot-engine.h b/goffice/graph/gog-plot-engine.h
index dae0fb8..89d733d 100644
--- a/goffice/graph/gog-plot-engine.h
+++ b/goffice/graph/gog-plot-engine.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-plot-engine.h :
+ * gog-plot-engine.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
@@ -34,7 +34,7 @@ struct _GogPlotType {
int col, row;
GHashTable *properties;
-};
+};
struct _GogPlotFamily {
char *name, *sample_image_file;
@@ -43,7 +43,7 @@ struct _GogPlotFamily {
GogAxisSet axis_set;
GHashTable *types;
-};
+};
/* GogPlotFamily hashed by name */
GHashTable const *gog_plot_families (void);
diff --git a/goffice/graph/gog-plot.c b/goffice/graph/gog-plot.c
index c31ac10..d21b7b6 100644
--- a/goffice/graph/gog-plot.c
+++ b/goffice/graph/gog-plot.c
@@ -59,7 +59,7 @@ static GObjectClass *plot_parent_klass;
static gboolean gog_plot_set_axis_by_id (GogPlot *plot, GogAxisType type, unsigned id);
static unsigned gog_plot_get_axis_id (GogPlot const *plot, GogAxisType type);
-
+
static void
gog_plot_finalize (GObject *obj)
{
@@ -105,7 +105,7 @@ role_series_post_add (GogObject *parent, GogObject *child)
series->plot = plot;
series->interpolation = plot->interpolation;
- /* if there are other series associated with the plot, and there are
+ /* if there are other series associated with the plot, and there are
* shared dimensions, clone them over. */
if (series->plot->series != NULL) {
GogGraph *graph = gog_object_get_graph (GOG_OBJECT (plot));
@@ -147,7 +147,7 @@ typedef struct {
} PlotPrefState;
static void
-plot_pref_state_free (PlotPrefState *state)
+plot_pref_state_free (PlotPrefState *state)
{
g_signal_handler_disconnect (G_OBJECT (state->plot), state->update_editor_handler);
g_object_unref (state->plot);
@@ -219,7 +219,7 @@ cb_axis_changed (GtkComboBox *combo, PlotPrefState *state)
memset (&value, 0, sizeof (GValue));
gtk_combo_box_get_active_iter (combo, &iter);
gtk_tree_model_get_value (model, &iter, 1, &value);
- gog_plot_set_axis_by_id (state->plot,
+ gog_plot_set_axis_by_id (state->plot,
GPOINTER_TO_UINT (g_object_get_data (G_OBJECT(combo), "axis-type")),
g_value_get_uint (&value));
}
@@ -231,7 +231,7 @@ cb_update_editor (GogObject *gobj, PlotPrefState *state)
gboolean is_plot_area_manual;
is_plot_area_manual = gog_chart_get_plot_area (state->chart, &plot_area);
-
+
if (state->x_spin != NULL)
gtk_spin_button_set_value (GTK_SPIN_BUTTON (state->x_spin), plot_area.x * 100.0);
if (state->y_spin != NULL)
@@ -241,7 +241,7 @@ cb_update_editor (GogObject *gobj, PlotPrefState *state)
if (state->h_spin != NULL)
gtk_spin_button_set_value (GTK_SPIN_BUTTON (state->h_spin), plot_area.h * 100.0);
if (state->position_select_combo != NULL) {
- gtk_combo_box_set_active (GTK_COMBO_BOX (state->position_select_combo),
+ gtk_combo_box_set_active (GTK_COMBO_BOX (state->position_select_combo),
is_plot_area_manual ? 1 : 0);
if (is_plot_area_manual)
gtk_widget_show (state->manual_setting_table);
@@ -256,17 +256,17 @@ gog_plot_populate_editor (GogObject *obj,
G_GNUC_UNUSED GogDataAllocator *dalloc,
GOCmdContext *cc)
{
- static const char *axis_labels[GOG_AXIS_TYPES] = {
- N_("X axis:"),
- N_("Y axis:"),
- N_("Z axis:"),
- N_("Circular axis:"),
- N_("Radial axis:"),
- N_("Pseudo 3D axis:"),
- N_("Color axis:"),
+ static const char *axis_labels[GOG_AXIS_TYPES] = {
+ N_("X axis:"),
+ N_("Y axis:"),
+ N_("Z axis:"),
+ N_("Circular axis:"),
+ N_("Radial axis:"),
+ N_("Pseudo 3D axis:"),
+ N_("Color axis:"),
N_("Bubble axis:")
};
-
+
GtkWidget *w;
GogAxisType type;
GogPlot *plot = GOG_PLOT (obj);
@@ -319,12 +319,12 @@ gog_plot_populate_editor (GogObject *obj,
for (ptr = axes; ptr != NULL; ptr = ptr->next) {
axis = GOG_AXIS (ptr->data);
gtk_list_store_prepend (store, &iter);
- gtk_list_store_set (store, &iter,
- 0, gog_object_get_name (GOG_OBJECT (axis)),
+ gtk_list_store_set (store, &iter,
+ 0, gog_object_get_name (GOG_OBJECT (axis)),
1, gog_object_get_id (GOG_OBJECT (axis)),
-1);
if (axis == plot->axis[type])
- gtk_combo_box_set_active_iter (GTK_COMBO_BOX (combo), &iter);
+ gtk_combo_box_set_active_iter (GTK_COMBO_BOX (combo), &iter);
axis_count++;
}
if (axis_count < 2)
@@ -348,53 +348,53 @@ gog_plot_populate_editor (GogObject *obj,
else
g_object_unref (G_OBJECT (table));
}
-
+
is_plot_area_manual = gog_chart_get_plot_area (chart, &plot_area);
-
+
state->x_spin = go_gtk_builder_get_widget (gui, "x_spin");
- gtk_spin_button_set_value (GTK_SPIN_BUTTON (state->x_spin),
- plot_area.x * 100.0);
- g_signal_connect (G_OBJECT (state->x_spin), "value-changed",
+ gtk_spin_button_set_value (GTK_SPIN_BUTTON (state->x_spin),
+ plot_area.x * 100.0);
+ g_signal_connect (G_OBJECT (state->x_spin), "value-changed",
G_CALLBACK (cb_plot_area_changed), state);
state->y_spin = go_gtk_builder_get_widget (gui, "y_spin");
- gtk_spin_button_set_value (GTK_SPIN_BUTTON (state->y_spin),
- plot_area.y * 100.0);
- g_signal_connect (G_OBJECT (state->y_spin), "value-changed",
+ gtk_spin_button_set_value (GTK_SPIN_BUTTON (state->y_spin),
+ plot_area.y * 100.0);
+ g_signal_connect (G_OBJECT (state->y_spin), "value-changed",
G_CALLBACK (cb_plot_area_changed), state);
state->w_spin = go_gtk_builder_get_widget (gui, "w_spin");
- gtk_spin_button_set_range (GTK_SPIN_BUTTON (state->w_spin),
+ gtk_spin_button_set_range (GTK_SPIN_BUTTON (state->w_spin),
0.0, (1.0 - plot_area.x) * 100.0);
- gtk_spin_button_set_value (GTK_SPIN_BUTTON (state->w_spin),
- 100.0 * plot_area.w);
- state->w_spin_signal = g_signal_connect (G_OBJECT (state->w_spin), "value-changed",
+ gtk_spin_button_set_value (GTK_SPIN_BUTTON (state->w_spin),
+ 100.0 * plot_area.w);
+ state->w_spin_signal = g_signal_connect (G_OBJECT (state->w_spin), "value-changed",
G_CALLBACK (cb_plot_area_changed), state);
state->h_spin = go_gtk_builder_get_widget (gui, "h_spin");
- gtk_spin_button_set_range (GTK_SPIN_BUTTON (state->h_spin),
+ gtk_spin_button_set_range (GTK_SPIN_BUTTON (state->h_spin),
0.0, (1.0 - plot_area.y) * 100.0);
- gtk_spin_button_set_value (GTK_SPIN_BUTTON (state->h_spin),
- 100.0 * plot_area.h);
- state->h_spin_signal = g_signal_connect (G_OBJECT (state->h_spin), "value-changed",
+ gtk_spin_button_set_value (GTK_SPIN_BUTTON (state->h_spin),
+ 100.0 * plot_area.h);
+ state->h_spin_signal = g_signal_connect (G_OBJECT (state->h_spin), "value-changed",
G_CALLBACK (cb_plot_area_changed), state);
state->position_select_combo = go_gtk_builder_get_widget (gui, "position_select_combo");
- gtk_combo_box_set_active (GTK_COMBO_BOX (state->position_select_combo),
- is_plot_area_manual ? 1 : 0);
+ gtk_combo_box_set_active (GTK_COMBO_BOX (state->position_select_combo),
+ is_plot_area_manual ? 1 : 0);
state->manual_setting_table = go_gtk_builder_get_widget (gui, "manual_setting_table");
if (!is_plot_area_manual)
gtk_widget_hide (state->manual_setting_table);
-
+
g_signal_connect (G_OBJECT (state->position_select_combo),
"changed", G_CALLBACK (cb_manual_position_changed), state);
w = go_gtk_builder_get_widget (gui, "gog_plot_prefs");
- g_signal_connect_swapped (G_OBJECT (w), "destroy", G_CALLBACK (plot_pref_state_free), state);
+ g_signal_connect_swapped (G_OBJECT (w), "destroy", G_CALLBACK (plot_pref_state_free), state);
go_editor_add_page (editor, w, _("Plot area"));
- state->update_editor_handler = g_signal_connect (G_OBJECT (plot),
- "update-editor",
+ state->update_editor_handler = g_signal_connect (G_OBJECT (plot),
+ "update-editor",
G_CALLBACK (cb_update_editor), state);
(GOG_OBJECT_CLASS(plot_parent_klass)->populate_editor) (obj, editor, dalloc, cc);
@@ -513,35 +513,35 @@ gog_plot_class_init (GogObjectClass *gog_klass)
plot_klass->guru_helper = NULL;
g_object_class_install_property (gobject_klass, PLOT_PROP_VARY_STYLE_BY_ELEMENT,
- g_param_spec_boolean ("vary-style-by-element",
+ g_param_spec_boolean ("vary-style-by-element",
_("Vary style by element"),
_("Use a different style for each segments"),
FALSE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT | GOG_PARAM_FORCE_SAVE));
g_object_class_install_property (gobject_klass, PLOT_PROP_AXIS_X,
- g_param_spec_uint ("x-axis",
- _("X axis"),
+ g_param_spec_uint ("x-axis",
+ _("X axis"),
_("Reference to X axis"),
0, G_MAXINT, 0,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, PLOT_PROP_AXIS_Y,
- g_param_spec_uint ("y-axis",
- _("Y axis"),
+ g_param_spec_uint ("y-axis",
+ _("Y axis"),
_("Reference to Y axis"),
0, G_MAXINT, 0,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, PLOT_PROP_GROUP,
- g_param_spec_string ("plot-group",
- _("Plot group"),
+ g_param_spec_string ("plot-group",
+ _("Plot group"),
_("Name of plot group if any"),
- NULL,
+ NULL,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, PLOT_PROP_GURU_HINTS,
- g_param_spec_string ("guru-hints",
- _("Guru hints"),
+ g_param_spec_string ("guru-hints",
+ _("Guru hints"),
_("Semicolon separated list of hints for automatic addition of objects in "
"guru dialog"),
- NULL,
+ NULL,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_klass, PLOT_PROP_DEFAULT_INTERPOLATION,
g_param_spec_string ("interpolation",
@@ -665,7 +665,7 @@ gog_plot_update_cardinality (GogPlot *plot, int index_num)
gog_series_set_index (series, i++, FALSE);
if (!gog_series_has_legend (series))
no_legend++;
- }
+ }
}
plot->full_cardinality =
@@ -915,7 +915,7 @@ gog_plot_set_axis_by_id (GogPlot *plot, GogAxisType type, unsigned id)
gog_plot_set_axis (plot, axis);
found = TRUE;
}
- }
+ }
g_slist_free (axes);
return found;
}
@@ -950,10 +950,10 @@ gog_plot_axis_set_assign (GogPlot *plot, GogAxisSet axis_set)
}
/**
- * gog_plot_axis_clear :
+ * gog_plot_axis_clear :
* @plot : #GogPlot
* @filter : #GogAxisSet
- *
+ *
* A utility method to clear all existing axis associations flagged by @filter
**/
void
@@ -974,7 +974,7 @@ static unsigned
gog_plot_get_axis_id (GogPlot const *plot, GogAxisType type)
{
GogAxis *axis = gog_plot_get_axis (plot, type);
-
+
return axis != NULL ? gog_object_get_id (GOG_OBJECT (axis)) : 0;
}
@@ -998,19 +998,19 @@ gog_plot_update_3d (GogPlot *plot)
}
static void
-gog_plot_guru_helper_add_grid_line (GogPlot *plot, gboolean major)
+gog_plot_guru_helper_add_grid_line (GogPlot *plot, gboolean major)
{
GogAxisType type;
for (type = 0; type < GOG_AXIS_TYPES; type++) {
- if ((((type == GOG_AXIS_X) |
- (type == GOG_AXIS_Y) |
- (type == GOG_AXIS_CIRCULAR) |
+ if ((((type == GOG_AXIS_X) |
+ (type == GOG_AXIS_Y) |
+ (type == GOG_AXIS_CIRCULAR) |
(type == GOG_AXIS_RADIAL))) &&
plot->axis[type] != NULL &&
gog_axis_get_grid_line (plot->axis[type], major) == NULL)
{
- gog_object_add_by_name (GOG_OBJECT (plot->axis[type]),
+ gog_object_add_by_name (GOG_OBJECT (plot->axis[type]),
major ? "MajorGrid": "MinorGrid", NULL);
}
}
@@ -1093,21 +1093,21 @@ gog_tool_move_plot_area_init (GogToolAction *action)
data->chart = GOG_CHART (action->view->parent->model);
data->chart_allocation = action->view->parent->allocation;
- data->start_position = *gog_chart_view_get_plot_area (action->view->parent);
- data->start_position.x = (data->start_position.x - data->chart_allocation.x) / data->chart_allocation.w;
- data->start_position.w = data->start_position.w / data->chart_allocation.w;
- data->start_position.y = (data->start_position.y - data->chart_allocation.y) / data->chart_allocation.h;
- data->start_position.h = data->start_position.h / data->chart_allocation.h;
+ data->start_position = *gog_chart_view_get_plot_area (action->view->parent);
+ data->start_position.x = (data->start_position.x - data->chart_allocation.x) / data->chart_allocation.w;
+ data->start_position.w = data->start_position.w / data->chart_allocation.w;
+ data->start_position.y = (data->start_position.y - data->chart_allocation.y) / data->chart_allocation.h;
+ data->start_position.h = data->start_position.h / data->chart_allocation.h;
action->data = data;
}
static void
gog_tool_move_plot_area_move (GogToolAction *action, double x, double y)
-{
+{
GogViewAllocation plot_area;
MovePlotAreaData *data = action->data;
-
+
plot_area.w = data->start_position.w;
plot_area.h = data->start_position.h;
plot_area.x = data->start_position.x + (x - action->start_x) / data->chart_allocation.w;
@@ -1127,17 +1127,17 @@ static void
gog_tool_move_plot_area_double_click (GogToolAction *action)
{
MovePlotAreaData *data = action->data;
-
+
gog_chart_set_plot_area (data->chart, NULL);
}
static GogTool gog_tool_move_plot_area = {
- N_("Move plot area"),
+ N_("Move plot area"),
GDK_FLEUR,
- gog_tool_move_plot_area_point,
+ gog_tool_move_plot_area_point,
gog_tool_move_plot_area_render,
- gog_tool_move_plot_area_init,
- gog_tool_move_plot_area_move,
+ gog_tool_move_plot_area_init,
+ gog_tool_move_plot_area_move,
gog_tool_move_plot_area_double_click,
NULL /*destroy*/
};
@@ -1157,17 +1157,17 @@ gog_tool_resize_plot_area_render (GogView *view)
{
GogViewAllocation const *plot_area = gog_chart_view_get_plot_area (view->parent);
- gog_renderer_draw_grip (view->renderer,
+ gog_renderer_draw_grip (view->renderer,
plot_area->x + plot_area->w,
plot_area->y + plot_area->h);
}
static void
gog_tool_resize_plot_area_move (GogToolAction *action, double x, double y)
-{
+{
GogViewAllocation plot_area;
MovePlotAreaData *data = action->data;
-
+
plot_area.x = data->start_position.x;
plot_area.y = data->start_position.y;
plot_area.w = data->start_position.w + (x - action->start_x) / data->chart_allocation.w;
@@ -1186,10 +1186,10 @@ gog_tool_resize_plot_area_move (GogToolAction *action, double x, double y)
static GogTool gog_tool_resize_plot_area = {
N_("Resize plot area"),
GDK_BOTTOM_RIGHT_CORNER,
- gog_tool_resize_plot_area_point,
+ gog_tool_resize_plot_area_point,
gog_tool_resize_plot_area_render,
- gog_tool_move_plot_area_init,
- gog_tool_resize_plot_area_move,
+ gog_tool_move_plot_area_init,
+ gog_tool_resize_plot_area_move,
NULL /* double-click */,
NULL /*destroy*/
};
diff --git a/goffice/graph/gog-plot.h b/goffice/graph/gog-plot.h
index 5c1c5f9..2144e2d 100644
--- a/goffice/graph/gog-plot.h
+++ b/goffice/graph/gog-plot.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-plot.h :
+ * gog-plot.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/graph/gog-reg-curve.c b/goffice/graph/gog-reg-curve.c
index d5e0bd0..16b22a6 100644
--- a/goffice/graph/gog-reg-curve.c
+++ b/goffice/graph/gog-reg-curve.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-reg-curve.c :
+ * gog-reg-curve.c :
*
* Copyright (C) 2005 Jean Brefort (jean brefort normalesup org)
*
@@ -52,9 +52,9 @@ skip_invalid_toggled_cb (GtkToggleButton* btn, GObject *obj)
}
static void
-gog_reg_curve_populate_editor (GogObject *gobj,
- GOEditor *editor,
- GogDataAllocator *dalloc,
+gog_reg_curve_populate_editor (GogObject *gobj,
+ GOEditor *editor,
+ GogDataAllocator *dalloc,
GOCmdContext *cc)
{
GtkWidget *w;
@@ -66,7 +66,7 @@ gog_reg_curve_populate_editor (GogObject *gobj,
if (gui == NULL)
return;
- go_editor_add_page (editor,
+ go_editor_add_page (editor,
go_gtk_builder_get_widget (gui, "reg-curve-prefs"),
_("Details"));
@@ -175,10 +175,10 @@ gog_reg_curve_class_init (GogObjectClass *gog_klass)
#endif
g_object_class_install_property (gobject_klass, REG_CURVE_PROP_SKIP_INVALID,
- g_param_spec_boolean ("skip-invalid",
+ g_param_spec_boolean ("skip-invalid",
_("Skip invalid"),
- _("Skip invalid data"),
- FALSE,
+ _("Skip invalid data"),
+ FALSE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
}
diff --git a/goffice/graph/gog-reg-curve.h b/goffice/graph/gog-reg-curve.h
index a9a1015..4eb41fc 100644
--- a/goffice/graph/gog-reg-curve.h
+++ b/goffice/graph/gog-reg-curve.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-reg-curve.h :
+ * gog-reg-curve.h :
*
* Copyright (C) 2005 Jean Brefort (jean brefort normalesup org)
*
@@ -28,7 +28,7 @@ G_BEGIN_DECLS
struct _GogRegCurve {
GogTrendLine base;
-
+
GogSeries *series;
gboolean weighted;
GODataVector *weights;
diff --git a/goffice/graph/gog-renderer.c b/goffice/graph/gog-renderer.c
index 24f5425..36670ae 100644
--- a/goffice/graph/gog-renderer.c
+++ b/goffice/graph/gog-renderer.c
@@ -486,7 +486,7 @@ gog_renderer_fill_shape (GogRenderer *renderer, GOPath const *path)
* @rend: #GogRenderer
* @path: a #GOPath
*
- * Defines the current clipping region.
+ * Defines the current clipping region.
**/
void
@@ -510,7 +510,7 @@ gog_renderer_push_clip (GogRenderer *rend, GOPath const *path)
* @w: width of clipping rectangle
* @h: height of clipping rectangle
*
- * Defines a rectangular clipping region. For efficient screen rendering,
+ * Defines a rectangular clipping region. For efficient screen rendering,
* this function takes care to round the coordinates.
**/
@@ -1075,7 +1075,7 @@ gog_renderer_update (GogRenderer *rend, double w, double h)
return redraw;
}
-/**
+/**
* gog_renderer_get_pixbuf:
* @renderer : #GogRenderer
*
@@ -1192,7 +1192,7 @@ gog_renderer_render_to_cairo (GogRenderer *renderer, cairo_t *cairo, double widt
* @y_dpi: y resolution of exported graph
*
* Exports an image of @graph in given @format, writing results in a #GsfOutput stream.
- * If export format type is a bitmap one, it computes image size with x_dpi, y_dpi and
+ * If export format type is a bitmap one, it computes image size with x_dpi, y_dpi and
* @graph size (see gog_graph_get_size()).
*
* returns: %TRUE if export succeed.
diff --git a/goffice/graph/gog-renderer.h b/goffice/graph/gog-renderer.h
index 7edb0bf..3c0dc5e 100644
--- a/goffice/graph/gog-renderer.h
+++ b/goffice/graph/gog-renderer.h
@@ -67,8 +67,8 @@ typedef enum
#endif
G_BEGIN_DECLS
-/* We need to define an hair line width for the svg and gnome_print renderer.
- * 0.5 pt is approx. the dot size of a 150 dpi printer, if the plot is
+/* We need to define an hair line width for the svg and gnome_print renderer.
+ * 0.5 pt is approx. the dot size of a 150 dpi printer, if the plot is
* printed at scale 1:1 */
#define GOG_RENDERER_HAIRLINE_WIDTH_PTS 0.5
diff --git a/goffice/graph/gog-series-impl.h b/goffice/graph/gog-series-impl.h
index e709d6d..0b173bb 100644
--- a/goffice/graph/gog-series-impl.h
+++ b/goffice/graph/gog-series-impl.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-series-impl.h :
+ * gog-series-impl.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/graph/gog-series-lines.c b/goffice/graph/gog-series-lines.c
index c4dd884..cdb2727 100644
--- a/goffice/graph/gog-series-lines.c
+++ b/goffice/graph/gog-series-lines.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-series-lines.c :
+ * gog-series-lines.c :
*
* Copyright (C) 2005 Jean Brefort (jean brefort normalesup org)
*
@@ -88,7 +88,7 @@ path_close_path (void *closure)
{
}
-void gog_series_lines_stroke (GogSeriesLines *lines, GogRenderer *rend,
+void gog_series_lines_stroke (GogSeriesLines *lines, GogRenderer *rend,
GogViewAllocation const *bbox, GOPath *path, gboolean invert)
{
GOStyle *style = go_styled_object_get_style (GO_STYLED_OBJECT (lines));
@@ -96,7 +96,7 @@ void gog_series_lines_stroke (GogSeriesLines *lines, GogRenderer *rend,
if (invert) {
GOMarker *marker;
GOColor color;
-
+
style = go_style_dup (style);
style->line.color ^= 0xffffff00;
marker = style->marker.mark;
diff --git a/goffice/graph/gog-series-lines.h b/goffice/graph/gog-series-lines.h
index 9c26a5f..8de39d7 100644
--- a/goffice/graph/gog-series-lines.h
+++ b/goffice/graph/gog-series-lines.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-series-lines.h :
+ * gog-series-lines.h :
*
* Copyright (C) 2005 Jean Brefort (jean brefort normalesup org)
*
@@ -31,7 +31,7 @@ G_BEGIN_DECLS
#define GOG_IS_SERIES_LINES(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOG_TYPE_SERIES_LINES))
GType gog_series_lines_get_type (void);
-void gog_series_lines_stroke (GogSeriesLines *lines, GogRenderer *rend,
+void gog_series_lines_stroke (GogSeriesLines *lines, GogRenderer *rend,
GogViewAllocation const *bbox, GOPath *path, gboolean invert);
void gog_series_lines_use_markers (GogSeriesLines *lines, gboolean use_markers);
diff --git a/goffice/graph/gog-series.c b/goffice/graph/gog-series.c
index 4d0cb12..5710fa3 100644
--- a/goffice/graph/gog-series.c
+++ b/goffice/graph/gog-series.c
@@ -160,7 +160,7 @@ gog_series_element_populate_editor (GogObject *gobj,
if (gse_vbox == NULL) {
vbox = gtk_vbox_new (FALSE, 6);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
- } else
+ } else
vbox = gse_vbox;
gtk_box_pack_start (GTK_BOX (vbox), w, FALSE, FALSE, 0);
gtk_box_reorder_child (GTK_BOX (vbox), w, 0);
@@ -207,7 +207,7 @@ gog_series_element_class_init (GogSeriesElementClass *klass)
gog_klass->use_parent_as_proxy = TRUE;
g_object_class_install_property (gobject_klass, ELEMENT_INDEX,
- g_param_spec_int ("index",
+ g_param_spec_int ("index",
_("Index"),
_("Index of the corresponding data element"),
0, G_MAXINT, 0,
@@ -547,7 +547,7 @@ gog_series_populate_editor (GogObject *gobj,
(GtkAttachOptions) (GTK_FILL | GTK_EXPAND), 0, 0);
gtk_widget_show_all (widget);
widget = go_gtk_builder_get_widget (gui, "interpolation-skip-invalid");
- g_object_set_data (G_OBJECT (combo), "skip-button", widget);
+ g_object_set_data (G_OBJECT (combo), "skip-button", widget);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), series->interpolation_skip_invalid);
if (go_line_interpolation_auto_skip (series->interpolation))
gtk_widget_set_sensitive (widget, FALSE);
@@ -662,7 +662,7 @@ gog_series_class_init (GogSeriesClass *klass)
gog_object_register_roles (gog_klass, roles, G_N_ELEMENTS (roles));
g_object_class_install_property (gobject_klass, SERIES_PROP_HAS_LEGEND,
- g_param_spec_boolean ("has-legend",
+ g_param_spec_boolean ("has-legend",
_("Has-legend"),
_("Should the series show up in legends"),
TRUE,
@@ -674,13 +674,13 @@ gog_series_class_init (GogSeriesClass *klass)
"linear",
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT | GOG_PARAM_FORCE_SAVE));
g_object_class_install_property (gobject_klass, SERIES_PROP_INTERPOLATION_SKIP_INVALID,
- g_param_spec_boolean ("interpolation-skip-invalid",
+ g_param_spec_boolean ("interpolation-skip-invalid",
_("Interpolation skip invalid"),
_("Should the series interpolation ignore the invalid data"),
FALSE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, SERIES_PROP_FILL_TYPE,
- g_param_spec_string ("fill-type",
+ g_param_spec_string ("fill-type",
_("Fill type"),
_("How to fill the area"),
"invalid",
@@ -1027,7 +1027,7 @@ gog_series_get_element (GogSeries const *series, int index)
if ((int) element->index == index)
return element;
}
-
+
return NULL;
}
@@ -1058,14 +1058,14 @@ gog_series_get_data (GogSeries const *series, int *indices, double **data, int n
n_points = MIN (vector_n_points, n_points);
} else
data[i] = NULL;
- }
+ }
return n_points;
}
unsigned
gog_series_get_xy_data (GogSeries const *series,
- double const **x,
+ double const **x,
double const **y)
{
GogSeriesClass *klass = GOG_SERIES_GET_CLASS (series);
@@ -1097,8 +1097,8 @@ gog_series_get_xy_data (GogSeries const *series,
unsigned
gog_series_get_xyz_data (GogSeries const *series,
- double const **x,
- double const **y,
+ double const **x,
+ double const **y,
double const **z)
{
double *data[3];
diff --git a/goffice/graph/gog-series.h b/goffice/graph/gog-series.h
index 13eaf98..dde71f3 100644
--- a/goffice/graph/gog-series.h
+++ b/goffice/graph/gog-series.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-series.h :
+ * gog-series.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
@@ -65,11 +65,11 @@ unsigned gog_series_num_elements (GogSeries const *series);
GList const *gog_series_get_overrides (GogSeries const *series);
unsigned gog_series_get_xy_data (GogSeries const *series,
- double const **x,
+ double const **x,
double const **y);
unsigned gog_series_get_xyz_data (GogSeries const *series,
- double const **x,
- double const **y,
+ double const **x,
+ double const **y,
double const **z);
GogSeriesFillType gog_series_get_fill_type (GogSeries const *series);
diff --git a/goffice/graph/gog-smoothed-curve.c b/goffice/graph/gog-smoothed-curve.c
index 3dc5496..93804b9 100644
--- a/goffice/graph/gog-smoothed-curve.c
+++ b/goffice/graph/gog-smoothed-curve.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-smoothed-curve.c :
+ * gog-smoothed-curve.c :
*
* Copyright (C) 2006 Jean Brefort (jean brefort normalesup org)
*
diff --git a/goffice/graph/gog-smoothed-curve.h b/goffice/graph/gog-smoothed-curve.h
index aba5f63..ddbfeb6 100644
--- a/goffice/graph/gog-smoothed-curve.h
+++ b/goffice/graph/gog-smoothed-curve.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-smoothed-curve.h :
+ * gog-smoothed-curve.h :
*
* Copyright (C) 2006 Jean Brefort (jean brefort normalesup org)
*
@@ -28,7 +28,7 @@ G_BEGIN_DECLS
struct _GogSmoothedCurve {
GogTrendLine base;
-
+
GogSeries *series;
double *x, *y;
unsigned nb;
diff --git a/goffice/graph/gog-styled-object.c b/goffice/graph/gog-styled-object.c
index c2621d3..cb338dd 100644
--- a/goffice/graph/gog-styled-object.c
+++ b/goffice/graph/gog-styled-object.c
@@ -46,7 +46,7 @@ GSF_CLASS (GogStyle, gog_style,
GO_TYPE_STYLE);
static void gog_styled_object_style_changed (GOStyledObject *obj);
-
+
static gulong gog_styled_object_signals [LAST_SIGNAL] = { 0, };
static GObjectClass *parent_klass;
@@ -86,7 +86,7 @@ gog_styled_object_set_property (GObject *obj, guint param_id,
switch (param_id) {
case STYLED_OBJECT_PROP_STYLE :
- resize = go_styled_object_set_style (GO_STYLED_OBJECT (gso),
+ resize = go_styled_object_set_style (GO_STYLED_OBJECT (gso),
g_value_get_object (value));
break;
@@ -126,7 +126,7 @@ gog_styled_object_finalize (GObject *obj)
}
static void
-styled_object_populate_editor (GogObject *gobj,
+styled_object_populate_editor (GogObject *gobj,
GOEditor *editor,
GogDataAllocator *dalloc,
GOCmdContext *cc)
@@ -140,7 +140,7 @@ styled_object_populate_editor (GogObject *gobj,
g_object_unref (default_style);
}
g_object_unref (style);
-
+
(GOG_OBJECT_CLASS(parent_klass)->populate_editor) (gobj, editor, dalloc, cc);
}
@@ -191,10 +191,10 @@ gog_styled_object_class_init (GogObjectClass *gog_klass)
style_klass->init_style = gog_styled_object_init_style;
g_object_class_install_property (gobject_klass, STYLED_OBJECT_PROP_STYLE,
- g_param_spec_object ("style",
+ g_param_spec_object ("style",
_("Style"),
_("A pointer to the GOStyle object"),
- gog_style_get_type (),
+ gog_style_get_type (),
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
}
diff --git a/goffice/graph/gog-styled-object.h b/goffice/graph/gog-styled-object.h
index f84e858..f02e1c6 100644
--- a/goffice/graph/gog-styled-object.h
+++ b/goffice/graph/gog-styled-object.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-styled-object.h :
+ * gog-styled-object.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/graph/gog-theme.c b/goffice/graph/gog-theme.c
index 811e1d1..426addf 100644
--- a/goffice/graph/gog-theme.c
+++ b/goffice/graph/gog-theme.c
@@ -115,16 +115,16 @@ gog_theme_class_init (GogThemeClass *klass)
static void
gog_theme_init (GogTheme *theme)
{
- theme->elem_hash_by_role =
+ theme->elem_hash_by_role =
g_hash_table_new_full ((GHashFunc) gog_theme_element_hash,
(GCompareFunc) gog_theme_element_eq,
NULL, (GDestroyNotify) gog_theme_element_free);
-
- theme->elem_hash_by_class =
+
+ theme->elem_hash_by_class =
g_hash_table_new_full (g_str_hash, g_str_equal,
NULL, (GDestroyNotify) gog_theme_element_free);
-
- theme->class_aliases =
+
+ theme->class_aliases =
g_hash_table_new (g_str_hash, g_str_equal);
}
@@ -149,7 +149,7 @@ gog_theme_find_element (GogTheme const *theme, GogObject const *obj)
}
/* FIXME: Restore hash search caching. */
-
+
/* Search by role */
if (elem == NULL && obj->role != NULL && obj->parent != NULL) {
GogThemeElement key;
@@ -211,10 +211,10 @@ gog_theme_find_element (GogTheme const *theme, GogObject const *obj)
* fillin the entire style, not just the auto portions included in @relevant_fields.
**/
void
-gog_theme_fillin_style (GogTheme const *theme,
+gog_theme_fillin_style (GogTheme const *theme,
GOStyle *style,
- GogObject const *obj,
- int ind,
+ GogObject const *obj,
+ int ind,
GOStyleFlag relevant_fields)
{
GogThemeElement *elem = gog_theme_find_element (theme, obj);
@@ -417,9 +417,9 @@ map_area_series_solid_guppi (GOStyle *style, unsigned ind)
* @theme: a #GogTheme
* @is_default : bool
*
- * Keep a pointer to @theme in graph theme registry.
+ * Keep a pointer to @theme in graph theme registry.
* This function does not add a reference to @theme.
- **/
+ **/
void
gog_theme_registry_add (GogTheme *theme, gboolean is_default)
{
@@ -427,7 +427,7 @@ gog_theme_registry_add (GogTheme *theme, gboolean is_default)
/* TODO: Check for duplicated names and for already
* registered themes */
-
+
if (is_default) {
g_object_ref (theme);
if (default_theme != NULL)
@@ -442,8 +442,8 @@ gog_theme_registry_add (GogTheme *theme, gboolean is_default)
* gog_theme_registry_lookup:
* @name: a theme name
*
- * Returns: a #GogTheme from theme registry.
- **/
+ * Returns: a #GogTheme from theme registry.
+ **/
GogTheme *
gog_theme_registry_lookup (char const *name)
{
@@ -463,7 +463,7 @@ gog_theme_registry_lookup (char const *name)
/**
* gog_theme_registry_get_theme_names:
- *
+ *
* Returns: a newly allocated theme name list from theme registry.
**/
GSList *
@@ -472,7 +472,7 @@ gog_theme_registry_get_theme_names (void)
GogTheme *theme;
GSList *names = NULL;
GSList *ptr;
-
+
for (ptr = themes; ptr != NULL; ptr = ptr->next) {
theme = ptr->data;
names = g_slist_append (names, theme->name);
@@ -551,19 +551,19 @@ _gog_themes_init (void)
/* GridLine */
style = go_style_new ();
style->line.dash_type = GO_LINE_SOLID;
- style->line.width = 0.4;
+ style->line.width = 0.4;
style->line.color = GO_COLOR_BLACK;
go_pattern_set_solid (&style->fill.pattern, GO_COLOR_FROM_RGBA (0xE0, 0xE0, 0xE0, 0xE0));
style->fill.type = GO_STYLE_FILL_NONE;
gog_theme_add_element (theme, style, NULL, NULL, "MajorGrid");
style = go_style_new ();
style->line.dash_type = GO_LINE_SOLID;
- style->line.width = 0.2;
- style->line.color = GO_COLOR_BLACK;
+ style->line.width = 0.2;
+ style->line.color = GO_COLOR_BLACK;
go_pattern_set_solid (&style->fill.pattern, GO_COLOR_FROM_RGBA (0xE0, 0xE0, 0xE0, 0xE0));
style->fill.type = GO_STYLE_FILL_NONE;
gog_theme_add_element (theme, style, NULL, NULL, "MinorGrid");
-
+
/* Series */
style = go_style_new ();
style->line.dash_type = GO_LINE_SOLID;
@@ -639,8 +639,8 @@ _gog_themes_init (void)
/* graph */
style = go_style_new ();
style->line.dash_type = GO_LINE_NONE;
- style->line.width = 0;
- style->line.color = GO_COLOR_BLACK;
+ style->line.width = 0;
+ style->line.color = GO_COLOR_BLACK;
style->fill.type = GO_STYLE_FILL_GRADIENT;
style->fill.gradient.dir = GO_GRADIENT_N_TO_S;
style->fill.pattern.fore = GO_COLOR_BLUE;
@@ -671,7 +671,7 @@ _gog_themes_init (void)
style->line.width = 0.; /* hairline */
style->line.color = GO_COLOR_GREY (0x20);
gog_theme_add_element (theme, style, NULL, "GogAxis", NULL);
-
+
/* AxisLine */
style = go_style_new ();
style->line.dash_type = GO_LINE_SOLID;
@@ -703,7 +703,7 @@ _gog_themes_init (void)
go_pattern_set_solid (&style->fill.pattern, GO_COLOR_FROM_RGBA (0xE0, 0xE0, 0xE0, 0xE0));
style->fill.type = GO_STYLE_FILL_NONE;
gog_theme_add_element (theme, style, NULL, NULL, "MinorGrid");
-
+
/* series */
style = go_style_new ();
style->line.dash_type = GO_LINE_SOLID;
diff --git a/goffice/graph/gog-theme.h b/goffice/graph/gog-theme.h
index 00e985d..5ff8bdb 100644
--- a/goffice/graph/gog-theme.h
+++ b/goffice/graph/gog-theme.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-theme.h :
+ * gog-theme.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
@@ -41,7 +41,7 @@ void gog_theme_fillin_style (GogTheme const *theme, GOStyle *style,
void gog_theme_registry_add (GogTheme *theme, gboolean is_default);
GogTheme *gog_theme_registry_lookup (char const *name);
GSList *gog_theme_registry_get_theme_names (void);
-
+
/* private */
void _gog_themes_init (void);
void _gog_themes_shutdown (void);
diff --git a/goffice/graph/gog-trend-line.c b/goffice/graph/gog-trend-line.c
index 3fc3fde..14d0bc3 100644
--- a/goffice/graph/gog-trend-line.c
+++ b/goffice/graph/gog-trend-line.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-trend-line.c :
+ * gog-trend-line.c :
*
* Copyright (C) 2006 Jean Brefort (jean brefort normalesup org)
*
diff --git a/goffice/graph/gog-trend-line.h b/goffice/graph/gog-trend-line.h
index f8bf0cc..5a4877f 100644
--- a/goffice/graph/gog-trend-line.h
+++ b/goffice/graph/gog-trend-line.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-trend-line.h :
+ * gog-trend-line.h :
*
* Copyright (C) 2006 Jean Brefort (jean brefort normalesup org)
*
diff --git a/goffice/graph/gog-view.c b/goffice/graph/gog-view.c
index f872456..cfdc55c 100644
--- a/goffice/graph/gog-view.c
+++ b/goffice/graph/gog-view.c
@@ -55,10 +55,10 @@ gog_tool_select_object_render (GogView *view)
static GogTool gog_tool_select_object = {
N_("Select object"),
GDK_LEFT_PTR,
- gog_tool_select_object_point,
+ gog_tool_select_object_point,
gog_tool_select_object_render,
NULL /* init */,
- NULL /* move */,
+ NULL /* move */,
NULL /* double_click */,
NULL /* destroy */
};
@@ -74,7 +74,7 @@ gog_tool_move_object_point (GogView *view, double x, double y, GogObject **gobj)
if (view->model->role == NULL)
return FALSE;
- if ((view->model->role->allowable_positions &
+ if ((view->model->role->allowable_positions &
(GOG_POSITION_MANUAL)) == 0)
return FALSE;
@@ -88,12 +88,12 @@ static void
gog_tool_move_object_init (GogToolAction *action)
{
MoveObjectData *data = g_new0 (MoveObjectData, 1);
-
+
action->data = data;
data->parent_allocation = action->view->parent->allocation;
gog_object_get_manual_position (action->view->model, &data->start_position);
-
- if ((gog_object_get_position_flags (action->view->model, GOG_POSITION_MANUAL) &
+
+ if ((gog_object_get_position_flags (action->view->model, GOG_POSITION_MANUAL) &
GOG_POSITION_MANUAL) == 0) {
data->start_position.x = action->view->allocation.x / data->parent_allocation.w;
data->start_position.y = action->view->allocation.y / data->parent_allocation.h;
@@ -104,10 +104,10 @@ gog_tool_move_object_init (GogToolAction *action)
static void
gog_tool_move_object_move (GogToolAction *action, double x, double y)
-{
+{
GogViewAllocation position;
MoveObjectData *data = action->data;
-
+
position.x = data->start_position.x + (x - action->start_x) / data->parent_allocation.w;
position.y = data->start_position.y + (y - action->start_y) / data->parent_allocation.h;
position.w = data->start_position.w;
@@ -124,12 +124,12 @@ gog_tool_move_object_double_click (GogToolAction *action)
static GogTool gog_tool_move_object = {
- N_("Move"),
+ N_("Move"),
GDK_FLEUR,
- gog_tool_move_object_point,
+ gog_tool_move_object_point,
NULL /* render */,
- gog_tool_move_object_init,
- gog_tool_move_object_move,
+ gog_tool_move_object_init,
+ gog_tool_move_object_move,
gog_tool_move_object_double_click,
NULL /* destroy */
};
@@ -156,17 +156,17 @@ gog_tool_resize_object_render (GogView *view)
if (!gobj_klass->can_manual_size)
return;
- gog_renderer_draw_grip (view->renderer,
+ gog_renderer_draw_grip (view->renderer,
view->allocation.x + view->allocation.w,
view->allocation.y + view->allocation.h);
}
static void
gog_tool_resize_object_move (GogToolAction *action, double x, double y)
-{
+{
GogViewAllocation position;
MoveObjectData *data = action->data;
-
+
position.x = data->start_position.x;
position.y = data->start_position.y;
position.w = data->start_position.w + (x - action->start_x) / data->parent_allocation.w;
@@ -178,10 +178,10 @@ gog_tool_resize_object_move (GogToolAction *action, double x, double y)
static GogTool gog_tool_resize_object = {
N_("Resize object"),
GDK_BOTTOM_RIGHT_CORNER,
- gog_tool_resize_object_point,
+ gog_tool_resize_object_point,
gog_tool_resize_object_render,
- gog_tool_move_object_init,
- gog_tool_resize_object_move,
+ gog_tool_move_object_init,
+ gog_tool_resize_object_move,
NULL /* double-click */,
NULL /* destroy */
};
@@ -225,7 +225,7 @@ void
gog_tool_action_double_click (GogToolAction *action)
{
g_return_if_fail (action != NULL);
-
+
if (action->tool->double_click != NULL)
(action->tool->double_click) (action);
}
@@ -430,7 +430,7 @@ gog_view_padding_request_real (GogView *view, GogViewAllocation const *bbox, Gog
}
static void
-gog_view_size_request_real (GogView *view,
+gog_view_size_request_real (GogView *view,
GogViewRequisition const *available,
GogViewRequisition *req)
{
@@ -488,7 +488,7 @@ gog_view_size_allocate_real (GogView *view, GogViewAllocation const *allocation)
req.h = 0;
tmp.h = req.h;
vertical = FALSE;
- }
+ }
if (pos & GOG_POSITION_E) {
if (req.w > 0) {
@@ -536,7 +536,7 @@ gog_view_size_allocate_real (GogView *view, GogViewAllocation const *allocation)
}
gog_view_size_allocate (child, &tmp);
- } else if (!(GOG_POSITION_IS_SPECIAL (pos)) &&
+ } else if (!(GOG_POSITION_IS_SPECIAL (pos)) &&
!(GOG_POSITION_IS_PADDING (pos)))
g_warning ("[GogView::size_allocate_real] unexpected position %x for child %p of %p",
pos, child, view);
@@ -580,13 +580,13 @@ gog_view_class_init (GogViewClass *view_klass)
view_klass->clip = FALSE;
g_object_class_install_property (gobject_klass, GOG_VIEW_PROP_PARENT,
- g_param_spec_object ("parent",
+ g_param_spec_object ("parent",
_("Parent"),
_("the GogView parent"),
GOG_TYPE_VIEW,
GSF_PARAM_STATIC | G_PARAM_WRITABLE));
g_object_class_install_property (gobject_klass, GOG_VIEW_PROP_MODEL,
- g_param_spec_object ("model",
+ g_param_spec_object ("model",
_("Model"),
_("The GogObject this view displays"),
GOG_TYPE_OBJECT,
@@ -655,7 +655,7 @@ void
gog_view_padding_request (GogView *view, GogViewAllocation const *bbox, GogViewPadding *padding)
{
GogViewClass *klass = GOG_VIEW_GET_CLASS (view);
-
+
g_return_if_fail (klass != NULL);
g_return_if_fail (padding != NULL);
g_return_if_fail (bbox != NULL);
@@ -674,16 +674,16 @@ gog_view_padding_request (GogView *view, GogViewAllocation const *bbox, GogViewP
* @requisition : a #GogViewRequisition.
*
* When called @available holds the available space and @requisition is populated
- * with the desired size based on that input and other elements of the view or
+ * with the desired size based on that input and other elements of the view or
* its model's state (eg the position).
*
* Remember that the size request is not necessarily the size a view will
* actually be allocated.
- *
+ *
**/
void
-gog_view_size_request (GogView *view,
- GogViewRequisition const *available,
+gog_view_size_request (GogView *view,
+ GogViewRequisition const *available,
GogViewRequisition *requisition)
{
GogViewClass *klass = GOG_VIEW_GET_CLASS (view);
@@ -790,7 +790,7 @@ gog_view_render (GogView *view, GogViewAllocation const *bbox)
* Computes additional requision in @req which must be added to parent requisition,
* and minimum requisition in @min_req which is minimum space for displaying all
* children.
- *
+ *
**/
void
gog_view_size_child_request (GogView *view,
@@ -899,7 +899,7 @@ gog_view_render_toolkit (GogView *view)
{
GogTool *tool;
GSList const *ptr;
-
+
g_return_if_fail (GOG_IS_VIEW (view));
for (ptr = gog_view_get_toolkit (view); ptr != NULL; ptr = ptr->next) {
@@ -936,7 +936,7 @@ gog_view_get_toolkit (GogView *view)
* @x : in coords
* @y : in coords
* @gobj : non-%NULL storage.
- *
+ *
* Returns: tool under cursor for a given view, or %NULL
**/
GogTool *
@@ -950,7 +950,7 @@ gog_view_get_tool_at_point (GogView *view, double x, double y, GogObject **gobj)
current_tool = ptr->data;
if (current_tool->point != NULL &&
(current_tool->point) (view, x, y, ¤t_gobj)) {
- if (gobj != NULL)
+ if (gobj != NULL)
*gobj = current_gobj == NULL ? view->model : current_gobj;
return current_tool;
}
@@ -981,7 +981,7 @@ gog_view_get_view_at_point (GogView *view, double x, double y, GogObject **obj,
GogView *pointed_view;
GSList const *ptr;
GSList *list;
-
+
g_return_val_if_fail (GOG_IS_VIEW (view), NULL);
/* walk the list in reverse */
@@ -996,7 +996,7 @@ gog_view_get_view_at_point (GogView *view, double x, double y, GogObject **obj,
g_slist_free (list);
*tool = gog_view_get_tool_at_point (view, x, y, obj);
- if (*tool != NULL)
+ if (*tool != NULL)
return view;
*obj = NULL;
diff --git a/goffice/graph/gog-view.h b/goffice/graph/gog-view.h
index b81a4af..18a1446 100644
--- a/goffice/graph/gog-view.h
+++ b/goffice/graph/gog-view.h
@@ -34,7 +34,7 @@ typedef struct {
/* GdkCursorType cursor_type; Not compatible with --without-gtk */
int cursor_type;
-
+
gboolean (*point) (GogView *view, double x, double y, GogObject **object);
void (*render) (GogView *view);
void (*init) (GogToolAction *action);
@@ -54,7 +54,7 @@ GogToolAction *gog_tool_action_new (GogView *view, GogTool *tool, double x, d
void gog_tool_action_move (GogToolAction *action, double x, double y);
void gog_tool_action_double_click (GogToolAction *action);
void gog_tool_action_free (GogToolAction *action);
-
+
/*****************************************************************************/
struct _GogView {
@@ -82,12 +82,12 @@ typedef struct {
/* Virtuals */
void (*state_init) (GogView *);
- void (*padding_request) (GogView *view, GogViewAllocation const *bbox,
+ void (*padding_request) (GogView *view, GogViewAllocation const *bbox,
GogViewPadding *padding);
- void (*size_request) (GogView *view, GogViewRequisition const *available,
+ void (*size_request) (GogView *view, GogViewRequisition const *available,
GogViewRequisition *req);
void (*size_allocate) (GogView *, GogViewAllocation const *bbox);
-
+
void (*render) (GogView *view, GogViewAllocation const *bbox);
void (*build_toolkit) (GogView *view);
@@ -107,7 +107,7 @@ void gog_view_render (GogView *view, GogViewAllocation const *bbox);
void gog_view_queue_redraw (GogView *view);
void gog_view_queue_resize (GogView *view);
void gog_view_padding_request (GogView *view, GogViewAllocation const *bbox, GogViewPadding *padding);
-void gog_view_size_request (GogView *view, GogViewRequisition const *available,
+void gog_view_size_request (GogView *view, GogViewRequisition const *available,
GogViewRequisition *requisition);
void gog_view_size_allocate (GogView *view, GogViewAllocation const *allocation);
gboolean gog_view_update_sizes (GogView *view);
@@ -116,9 +116,9 @@ GogView *gog_view_find_child_view (GogView const *container,
GSList const *gog_view_get_toolkit (GogView *view);
void gog_view_render_toolkit (GogView *view);
-GogTool *gog_view_get_tool_at_point (GogView *view, double x, double y,
+GogTool *gog_view_get_tool_at_point (GogView *view, double x, double y,
GogObject **gobj);
-GogView *gog_view_get_view_at_point (GogView *view, double x, double y,
+GogView *gog_view_get_view_at_point (GogView *view, double x, double y,
GogObject **obj, GogTool **tool);
/* protected */
diff --git a/goffice/gtk/go-3d-rotation-sel.c b/goffice/gtk/go-3d-rotation-sel.c
index 915c63c..079fed2 100644
--- a/goffice/gtk/go-3d-rotation-sel.c
+++ b/goffice/gtk/go-3d-rotation-sel.c
@@ -221,7 +221,7 @@ cb_rotate_canvas_realize (GocCanvas *canvas, GO3DRotationSel *g3d)
go_style->line.width = 2.;
go_style->fill.auto_type = FALSE;
go_style->fill.type = GO_STYLE_FILL_NONE;
-
+
g3d->bank_dial = goc_item_new (group,
GOC_TYPE_CIRCLE, "radius", (double) g3d->bank_dial_r, NULL);
go_style = go_styled_object_get_style (GO_STYLED_OBJECT (g3d->bank_dial));
@@ -233,7 +233,7 @@ cb_rotate_canvas_realize (GocCanvas *canvas, GO3DRotationSel *g3d)
go_style->fill.auto_back = FALSE;
go_style->fill.pattern.back = GO_COLOR_WHITE;
- cb_rotation_changed(g3d);
+ cb_rotation_changed(g3d);
}
@@ -284,7 +284,7 @@ cb_rotate_motion_notify_event (GocCanvas *canvas, GdkEventMotion *event,
go_matrix3x3_from_euler (&m3, 0, 0, -M_PI * 0.5);
go_matrix3x3_multiply (&m1, &m1, &m3);
go_matrix3x3_multiply (&g3d->mat, &m1, &g3d->mat);
- cb_rotation_changed (g3d);
+ cb_rotation_changed (g3d);
return TRUE;
}
@@ -352,7 +352,7 @@ g3d_init (GO3DRotationSel *g3d)
"rotate_canvas")),
GTK_WIDGET (g3d->rotate_canvas));
gtk_widget_show (GTK_WIDGET (g3d->rotate_canvas));
-
+
g3d->motion_handle = 0;
g_object_connect (G_OBJECT (g3d->rotate_canvas),
"signal::realize",
@@ -481,15 +481,15 @@ go_3d_rotation_sel_get_fov (GO3DRotationSel const *g3d)
void
go_3d_rotation_sel_set_matrix (GO3DRotationSel *g3d, GOMatrix3x3 *mat)
{
- g3d->mat.a11 = mat->a11;
- g3d->mat.a12 = mat->a12;
- g3d->mat.a13 = mat->a13;
- g3d->mat.a21 = mat->a21;
- g3d->mat.a22 = mat->a22;
- g3d->mat.a23 = mat->a23;
- g3d->mat.a31 = mat->a31;
- g3d->mat.a32 = mat->a32;
- g3d->mat.a33 = mat->a33;
+ g3d->mat.a11 = mat->a11;
+ g3d->mat.a12 = mat->a12;
+ g3d->mat.a13 = mat->a13;
+ g3d->mat.a21 = mat->a21;
+ g3d->mat.a22 = mat->a22;
+ g3d->mat.a23 = mat->a23;
+ g3d->mat.a31 = mat->a31;
+ g3d->mat.a32 = mat->a32;
+ g3d->mat.a33 = mat->a33;
cb_rotation_changed (g3d);
}
diff --git a/goffice/gtk/go-action-combo-color.c b/goffice/gtk/go-action-combo-color.c
index 71989dd..926f30d 100644
--- a/goffice/gtk/go-action-combo-color.c
+++ b/goffice/gtk/go-action-combo-color.c
@@ -130,7 +130,7 @@ go_action_combo_color_connect_proxy (GtkAction *a, GtkWidget *proxy)
if (icon) {
GtkWidget *image = gtk_image_new_from_pixbuf (icon);
g_object_unref (icon);
-
+
gtk_widget_show (image);
gtk_image_menu_item_set_image (
GTK_IMAGE_MENU_ITEM (proxy), image);
diff --git a/goffice/gtk/go-charmap-sel.c b/goffice/gtk/go-charmap-sel.c
index 3a72d96..7cbfd94 100644
--- a/goffice/gtk/go-charmap-sel.c
+++ b/goffice/gtk/go-charmap-sel.c
@@ -601,7 +601,7 @@ cb_find_entry (GtkMenuItem *w, struct cb_find_entry *cl)
gtk_container_foreach (GTK_CONTAINER (sub), (GtkCallback)cb_find_entry, cl);
if (cl->found)
return;
-
+
cl->i = GPOINTER_TO_INT (cl->path->data);
cl->path = cl->path->next;
g_slist_free_1 (tmp);
diff --git a/goffice/gtk/go-color-palette.c b/goffice/gtk/go-color-palette.c
index a9bb3aa..8fb17b6 100644
--- a/goffice/gtk/go-color-palette.c
+++ b/goffice/gtk/go-color-palette.c
@@ -379,7 +379,7 @@ cb_combo_custom_clicked (GtkWidget *button, GOColorPalette *pal)
void
go_color_palette_set_title (GOColorPalette *pal, char const *title)
{
- g_object_set_data_full (G_OBJECT (pal), "title",
+ g_object_set_data_full (G_OBJECT (pal), "title",
g_strdup (title), g_free);
}
@@ -590,7 +590,7 @@ make_colored_menu_item (char const *label, GOColor c)
if (label && 0 == strcmp (label, " ")) {
/* color buttons are created with a label of " " */
button = gtk_menu_item_new ();
- gtk_container_add (GTK_CONTAINER (button),
+ gtk_container_add (GTK_CONTAINER (button),
gtk_image_new_from_pixbuf (pixbuf));
} else {
button = gtk_image_menu_item_new_with_label (label);
@@ -709,7 +709,7 @@ custom_colors :
}
w = gtk_image_menu_item_new_with_label (_("Custom Color..."));
/* Workaround for bug http://bugzilla.gnome.org/show_bug.cgi?id=585421 */
- /* We can't have an image in one of the gtk_menu_item, it would lead to an
+ /* We can't have an image in one of the gtk_menu_item, it would lead to an
ugly item spacing. */
/* gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (w),*/
/* gtk_image_new_from_stock (GTK_STOCK_SELECT_COLOR, GTK_ICON_SIZE_MENU));*/
@@ -721,7 +721,7 @@ custom_colors :
((GOMenuColor *)submenu)->selection = current_color;
((GOMenuColor *)submenu)->default_color = default_color;
- g_object_set_data_full (G_OBJECT (submenu), "title",
+ g_object_set_data_full (G_OBJECT (submenu), "title",
g_strdup (custom_dialog_title), g_free);
gtk_widget_show (submenu);
diff --git a/goffice/gtk/go-color-selector.c b/goffice/gtk/go-color-selector.c
index 0564289..4f66319 100644
--- a/goffice/gtk/go-color-selector.c
+++ b/goffice/gtk/go-color-selector.c
@@ -52,7 +52,7 @@ get_index (int n_swatches, GOColorGroup *color_group, GOColor color)
{
int i = 0;
int index = -1;
-
+
while (default_color_set[i].name != NULL) {
if (default_color_set[i].color == color && index < 0) {
index = i;
@@ -78,7 +78,7 @@ get_color (int n_swatches, GOColorGroup *color_group, int index)
{
if (index < 0 || index >= (n_swatches))
index = 0;
-
+
if (index < n_swatches - GO_COLOR_GROUP_HISTORY_SIZE)
return default_color_set[index].color;
else
@@ -110,7 +110,7 @@ draw_check (cairo_surface_t *surface, int width, int height)
static void
go_color_palette_render_func (cairo_t *cr,
GdkRectangle const *area,
- int index,
+ int index,
gpointer data)
{
GOColor color;
@@ -118,7 +118,7 @@ go_color_palette_render_func (cairo_t *cr,
cairo_surface_t *check;
color = get_color (state->n_swatches, state->color_group, index);
-
+
check = cairo_image_surface_create (CAIRO_FORMAT_RGB24, 12, 12);
draw_check (check, 12, 12);
@@ -131,15 +131,15 @@ go_color_palette_render_func (cairo_t *cr,
cairo_move_to (cr, area->x, area->y + area->height);
cairo_rel_line_to (cr, area->width, 0);
cairo_rel_line_to (cr, 0, -area->height);
- cairo_close_path (cr);
+ cairo_close_path (cr);
cairo_fill (cr);
cairo_restore (cr);
cairo_surface_destroy (check);
cairo_set_line_width (cr, 1);
- cairo_set_source_rgba (cr,
- GO_COLOR_DOUBLE_R(color),
+ cairo_set_source_rgba (cr,
+ GO_COLOR_DOUBLE_R(color),
GO_COLOR_DOUBLE_G(color),
GO_COLOR_DOUBLE_B(color),
GO_COLOR_DOUBLE_A(color));
@@ -155,20 +155,20 @@ cb_color_dialog_response (GtkColorSelectionDialog *color_dialog,
GOSelector *selector)
{
GtkWidget *color_selection;
-
+
color_selection = GTK_COLOR_SELECTION_DIALOG (color_dialog)->colorsel;
-
+
if (response == GTK_RESPONSE_OK) {
GOColorSelectorState *state;
GdkColor gdk_color;
GOColor color;
guint16 alpha;
-
+
gtk_color_selection_get_current_color (GTK_COLOR_SELECTION (color_selection),
&gdk_color);
alpha = gtk_color_selection_get_current_alpha (GTK_COLOR_SELECTION (color_selection));
state = go_selector_get_user_data (selector);
-
+
color = GO_COLOR_FROM_GDK (gdk_color);
alpha >>= 8;
color = GO_COLOR_CHANGE_A (color, alpha);
@@ -188,15 +188,15 @@ cb_combo_custom_activate (GOPalette *palette, GOSelector *selector)
GdkColor gdk_color;
GOColor color;
GOColorSelectorState *state = go_selector_get_user_data (selector);
-
+
color_dialog = g_object_get_data (G_OBJECT (selector), "color-dialog");
if (color_dialog != NULL) {
color_selection = GTK_COLOR_SELECTION_DIALOG (color_dialog)->colorsel;
color = go_color_selector_get_color (selector, NULL);
- gtk_color_selection_set_current_color (GTK_COLOR_SELECTION (color_selection),
+ gtk_color_selection_set_current_color (GTK_COLOR_SELECTION (color_selection),
go_color_to_gdk (color, &gdk_color));
if (state->allow_alpha)
- gtk_color_selection_set_current_alpha (GTK_COLOR_SELECTION (color_selection),
+ gtk_color_selection_set_current_alpha (GTK_COLOR_SELECTION (color_selection),
GO_COLOR_UINT_A (color) * 257);
gtk_window_present (GTK_WINDOW (color_dialog));
return;
@@ -205,13 +205,13 @@ cb_combo_custom_activate (GOPalette *palette, GOSelector *selector)
color_dialog = gtk_color_selection_dialog_new (_("Custom color..."));
color_selection = GTK_COLOR_SELECTION_DIALOG (color_dialog)->colorsel;
gtk_color_selection_set_has_opacity_control (GTK_COLOR_SELECTION (color_selection), state->allow_alpha);
- g_object_set_data_full (G_OBJECT (selector), "color-dialog", color_dialog,
+ g_object_set_data_full (G_OBJECT (selector), "color-dialog", color_dialog,
(GDestroyNotify) gtk_widget_destroy);
color = go_color_selector_get_color (selector, NULL);
- gtk_color_selection_set_current_color (GTK_COLOR_SELECTION (color_selection),
+ gtk_color_selection_set_current_color (GTK_COLOR_SELECTION (color_selection),
go_color_to_gdk (color, &gdk_color));
if (state->allow_alpha)
- gtk_color_selection_set_current_alpha (GTK_COLOR_SELECTION (color_selection),
+ gtk_color_selection_set_current_alpha (GTK_COLOR_SELECTION (color_selection),
GO_COLOR_UINT_A (color) * 257);
g_signal_connect (color_dialog, "response", G_CALLBACK (cb_color_dialog_response), selector);
gtk_widget_show (color_dialog);
@@ -232,7 +232,7 @@ go_color_selector_drag_data_received (GOSelector *selector, gpointer data)
}
static gpointer
-go_color_selector_drag_data_get (GOSelector *selector)
+go_color_selector_drag_data_get (GOSelector *selector)
{
GOColorSelectorState *state;
GOColor color;
@@ -240,7 +240,7 @@ go_color_selector_drag_data_get (GOSelector *selector)
guint16 *data;
state = go_selector_get_user_data (selector);
-
+
data = g_new0 (guint16, 4);
index = go_selector_get_active (selector, NULL);
color = get_color (state->n_swatches, state->color_group, index);
@@ -248,7 +248,7 @@ go_color_selector_drag_data_get (GOSelector *selector)
data[0] = GO_COLOR_UINT_R (color) << 8;
data[1] = GO_COLOR_UINT_G (color) << 8;
data[2] = GO_COLOR_UINT_B (color) << 8;
- data[3] = GO_COLOR_UINT_A (color) << 8;
+ data[3] = GO_COLOR_UINT_A (color) << 8;
return data;
}
@@ -272,15 +272,15 @@ go_color_selector_drag_fill_icon (GOSelector *selector, GdkPixbuf *pixbuf)
* @initial_color: initially selected color
* @default_color: automatic color
* @color_group: a #GOColorGroup name
- *
+ *
* Creates a new color selector, with @initial_color selected.
- * Palette will contain an automatic button, which can be used to
+ * Palette will contain an automatic button, which can be used to
* select @default_color. This widget supports color drag and drop.
*
* Returns: a #GtkWidget.
**/
GtkWidget *
-go_color_selector_new (GOColor initial_color,
+go_color_selector_new (GOColor initial_color,
GOColor default_color,
char const *group)
{
@@ -294,7 +294,7 @@ go_color_selector_new (GOColor initial_color,
state = g_new (GOColorSelectorState, 1);
state->default_color = default_color;
state->allow_alpha = TRUE;
-
+
while (default_color_set[count].name != NULL) count ++;
state->n_swatches = count + GO_COLOR_GROUP_HISTORY_SIZE;
state->color_group = go_color_group_fetch (group, NULL);
@@ -303,11 +303,11 @@ go_color_selector_new (GOColor initial_color,
default_index = get_index (state->n_swatches, state->color_group, default_color);
/* In case default_color is not in standard palette */
initial_index = get_index (state->n_swatches, state->color_group, initial_color);
-
- palette = go_palette_new (state->n_swatches, 1.0, 8,
+
+ palette = go_palette_new (state->n_swatches, 1.0, 8,
go_color_palette_render_func, NULL,
state, go_color_selector_state_free);
- go_palette_show_automatic (GO_PALETTE (palette), default_index, NULL);
+ go_palette_show_automatic (GO_PALETTE (palette), default_index, NULL);
go_palette_show_custom (GO_PALETTE (palette), "Custom color...");
selector = go_selector_new (GO_PALETTE (palette));
go_selector_set_active (GO_SELECTOR (selector), initial_index);
@@ -316,7 +316,7 @@ go_color_selector_new (GOColor initial_color,
go_selector_setup_dnd (GO_SELECTOR (selector), "application/x-color", 8,
go_color_selector_drag_data_get,
go_color_selector_drag_data_received,
- go_color_selector_drag_fill_icon);
+ go_color_selector_drag_fill_icon);
return selector;
}
@@ -336,14 +336,14 @@ go_color_selector_set_color (GOSelector *selector, GOColor color)
{
GOColorSelectorState *state;
int index;
-
+
g_return_val_if_fail (GO_IS_SELECTOR (selector), FALSE);
state = go_selector_get_user_data (selector);
g_return_val_if_fail (state != NULL, FALSE);
-
+
index = get_index (state->n_swatches, state->color_group, color);
-
+
return go_selector_set_active (selector, index);
}
@@ -352,14 +352,14 @@ go_color_selector_set_color (GOSelector *selector, GOColor color)
* go_color_selector_get_color:
* @selector: a #GOSelector
* @is_auto : non-NULL result storage
- *
- * Retrieves current color selection of a #GOSelector
+ *
+ * Retrieves current color selection of a #GOSelector
* created via @go_color_selector_new. @is_auto will be set to
* TRUE if current selection was set by clicking on automatic palette item.
*
* Returns: current color selection.
**/
-GOColor
+GOColor
go_color_selector_get_color (GOSelector *selector, gboolean *is_auto)
{
GOColorSelectorState *state;
@@ -367,7 +367,7 @@ go_color_selector_get_color (GOSelector *selector, gboolean *is_auto)
gboolean flag;
g_return_val_if_fail (GO_IS_SELECTOR (selector), GO_COLOR_WHITE);
-
+
index = go_selector_get_active (selector, &flag);
state = go_selector_get_user_data (selector);
if (is_auto != NULL)
@@ -377,7 +377,7 @@ go_color_selector_get_color (GOSelector *selector, gboolean *is_auto)
* successive color choices. */
if (flag)
return state->default_color;
-
+
return get_color (state->n_swatches, state->color_group, index);
}
diff --git a/goffice/gtk/go-color-selector.h b/goffice/gtk/go-color-selector.h
index 74272e3..3a58afc 100644
--- a/goffice/gtk/go-color-selector.h
+++ b/goffice/gtk/go-color-selector.h
@@ -26,8 +26,8 @@
G_BEGIN_DECLS
-GtkWidget *go_color_selector_new (GOColor initial_color,
- GOColor default_color,
+GtkWidget *go_color_selector_new (GOColor initial_color,
+ GOColor default_color,
char const *color_group);
GOColor go_color_selector_get_color (GOSelector *selector, gboolean *is_auto);
gboolean go_color_selector_set_color (GOSelector *selector, GOColor color);
diff --git a/goffice/gtk/go-combo-box.c b/goffice/gtk/go-combo-box.c
index 616073e..93aaa3e 100644
--- a/goffice/gtk/go-combo-box.c
+++ b/goffice/gtk/go-combo-box.c
@@ -277,7 +277,7 @@ go_combo_box_class_init (GObjectClass *object_class)
_("Add tearoffs to menus"),
_("Whether dropdowns should have a tearoff menu item"),
FALSE,
- GSF_PARAM_STATIC |
+ GSF_PARAM_STATIC |
G_PARAM_READABLE));
widget_class->style_set = go_combo_box_style_set;
diff --git a/goffice/gtk/go-combo-color.c b/goffice/gtk/go-combo-color.c
index b5f0baa..b12d592 100644
--- a/goffice/gtk/go-combo-color.c
+++ b/goffice/gtk/go-combo-color.c
@@ -348,12 +348,12 @@ go_combo_color_new (GdkPixbuf *icon, char const *no_color_label,
cc->default_color = default_color;
if (icon != NULL &&
- gdk_pixbuf_get_width (icon) > 4 &&
+ gdk_pixbuf_get_width (icon) > 4 &&
gdk_pixbuf_get_height (icon) > 4) {
cc->preview_is_icon = TRUE;
pixbuf = gdk_pixbuf_copy (icon);
} else
- pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8,
+ pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8,
PREVIEW_SIZE, PREVIEW_SIZE);
cc->preview_image = gtk_image_new_from_pixbuf (pixbuf);
diff --git a/goffice/gtk/go-combo-pixmaps.c b/goffice/gtk/go-combo-pixmaps.c
index 0f8257b..649a2fd 100644
--- a/goffice/gtk/go-combo-pixmaps.c
+++ b/goffice/gtk/go-combo-pixmaps.c
@@ -356,7 +356,7 @@ go_menu_pixmaps_add_element (GOMenuPixmaps *menu,
col = col % menu->cols;
button = gtk_menu_item_new ();
- gtk_container_add (GTK_CONTAINER (button),
+ gtk_container_add (GTK_CONTAINER (button),
gtk_image_new_from_pixbuf (pixbuf));
g_object_unref ((GdkPixbuf *)pixbuf);
g_object_set_data (G_OBJECT (button),
diff --git a/goffice/gtk/go-combo-text.c b/goffice/gtk/go-combo-text.c
index 2006266..88e8ccc 100644
--- a/goffice/gtk/go-combo-text.c
+++ b/goffice/gtk/go-combo-text.c
@@ -135,7 +135,7 @@ cb_scroll_size_request (GtkWidget *widget, GtkRequisition *requisition,
/* Make room for a whole number of items which don't
* overflow the screen, but no more than 20. */
int avail_height, nitems;
-
+
avail_height = mon_height - 20
- GTK_CONTAINER (widget)->border_width * 2 + 4;
nitems = MIN (20, avail_height * ct->rows / w->requisition.height);
@@ -151,8 +151,8 @@ cb_scroll_size_request (GtkWidget *widget, GtkRequisition *requisition,
GTK_CONTAINER (widget)->border_width * 2 + 4;
}
- requisition->width = MAX (requisition->width,
- ct->entry->allocation.width +
+ requisition->width = MAX (requisition->width,
+ ct->entry->allocation.width +
GTK_CONTAINER (widget)->border_width * 2);
requisition->width = MIN (requisition->width, mon_width - 20);
requisition->height = MIN (requisition->height, mon_height - 20);
@@ -169,7 +169,7 @@ cb_screen_changed (GOComboText *ct, GdkScreen *previous_screen)
if (screen) {
GtkWidget *toplevel = gtk_widget_get_toplevel (ct->scroll);
gtk_window_set_screen (GTK_WINDOW (toplevel), screen);
- }
+ }
}
static void
diff --git a/goffice/gtk/go-font-sel.c b/goffice/gtk/go-font-sel.c
index 857e137..5559ee4 100644
--- a/goffice/gtk/go-font-sel.c
+++ b/goffice/gtk/go-font-sel.c
@@ -340,8 +340,8 @@ gfs_init (GOFontSel *gfs)
gfs->modifications = pango_attr_list_new ();
- gtk_box_pack_start (GTK_BOX (gfs),
- go_gtk_builder_get_widget (gfs->gui, "toplevel-table"),
+ gtk_box_pack_start (GTK_BOX (gfs),
+ go_gtk_builder_get_widget (gfs->gui, "toplevel-table"),
TRUE, TRUE, 0);
gfs->font_name_entry = go_gtk_builder_get_widget (gfs->gui, "font-name-entry");
gfs->font_style_entry = go_gtk_builder_get_widget (gfs->gui, "font-style-entry");
@@ -493,7 +493,7 @@ go_font_sel_set_style (GOFontSel *gfs, gboolean is_bold, gboolean is_italic)
}
select_row (gfs->font_style_list, n);
- go_font_sel_add_attr (gfs,
+ go_font_sel_add_attr (gfs,
pango_attr_weight_new (is_bold ? PANGO_WEIGHT_BOLD : PANGO_WEIGHT_NORMAL),
pango_attr_style_new (is_italic ? PANGO_STYLE_ITALIC : PANGO_STYLE_NORMAL));
/* FIXME FIXME FIXME Do we really need the following line? */
diff --git a/goffice/gtk/go-format-sel.c b/goffice/gtk/go-format-sel.c
index e8089a8..a6b2c77 100644
--- a/goffice/gtk/go-format-sel.c
+++ b/goffice/gtk/go-format-sel.c
@@ -91,7 +91,7 @@ typedef enum {
F_SYMBOL_LABEL, F_SYMBOL,
F_ENTRY,
F_LIST_LABEL, F_LIST_SCROLL, F_LIST,
- F_DECIMAL_SPIN, F_ENGINEERING_BUTTON,
+ F_DECIMAL_SPIN, F_ENGINEERING_BUTTON,
F_SUPERSCRIPT_BUTTON, F_SUPERSCRIPT_HIDE_1_BUTTON,
F_NEGATIVE_LABEL, F_NEGATIVE_SCROLL, F_NEGATIVE,
F_DECIMAL_LABEL, F_CODE_LABEL,
@@ -209,7 +209,7 @@ draw_format_preview (GOFormatSel *gfs, gboolean regen_format)
else
gdk_color_parse ("black", &gdk_color);
- gtk_widget_modify_text (GTK_WIDGET (gfs->format.preview),
+ gtk_widget_modify_text (GTK_WIDGET (gfs->format.preview),
GTK_STATE_NORMAL, &gdk_color);
g_free (preview);
}
@@ -611,13 +611,13 @@ stays:
if (gfs->show_format_with_markup) {
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w),
gfs->format.details.use_markup);
- } else
+ } else
show_widget = FALSE;
break;
case F_SUPERSCRIPT_HIDE_1_BUTTON:
if (gfs->show_format_with_markup) {
-
+
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w),
gfs->format.details.simplify_mantissa);
gtk_widget_set_sensitive (w, gfs->format.details.use_markup);
@@ -659,15 +659,15 @@ stays:
*/
static void
-cb_format_class_changed (G_GNUC_UNUSED GtkTreeSelection *ignored,
+cb_format_class_changed (G_GNUC_UNUSED GtkTreeSelection *ignored,
GOFormatSel *gfs)
{
int selected_item = 0;
GList *list;
- GtkTreeSelection *selection = gtk_tree_view_get_selection
+ GtkTreeSelection *selection = gtk_tree_view_get_selection
(GTK_TREE_VIEW(gfs->format.menu));
- list = gtk_tree_selection_get_selected_rows
+ list = gtk_tree_selection_get_selected_rows
(selection, &gfs->format.menu_model);
if (list) {
GtkTreePath *path;
@@ -816,7 +816,7 @@ static void
set_format_category (GOFormatSel *gfs, int row)
{
GtkTreePath *path;
- GtkTreeSelection *selection = gtk_tree_view_get_selection
+ GtkTreeSelection *selection = gtk_tree_view_get_selection
((GTK_TREE_VIEW(gfs->format.menu)));
path = gtk_tree_path_new_from_indices (row, -1);
@@ -878,16 +878,16 @@ populate_menu (GOFormatSel *gfs)
GtkCellRenderer *renderer;
char const * const *categories = format_category_names;
- gfs->format.menu_model = GTK_TREE_MODEL (gtk_list_store_new
+ gfs->format.menu_model = GTK_TREE_MODEL (gtk_list_store_new
(1, G_TYPE_STRING));
- gtk_tree_view_set_model (GTK_TREE_VIEW (gfs->format.menu),
+ gtk_tree_view_set_model (GTK_TREE_VIEW (gfs->format.menu),
gfs->format.menu_model);
- selection = gtk_tree_view_get_selection
+ selection = gtk_tree_view_get_selection
(GTK_TREE_VIEW(gfs->format.menu));
gtk_tree_selection_set_mode (selection, GTK_SELECTION_BROWSE);
while (*categories) {
- gtk_list_store_append
+ gtk_list_store_append
(GTK_LIST_STORE (gfs->format.menu_model), &iter);
gtk_list_store_set (GTK_LIST_STORE (gfs->format.menu_model),
&iter, 0, _(*categories), -1);
@@ -1195,15 +1195,15 @@ nfs_class_init (GObjectClass *klass)
GSF_CLASS (GOFormatSel, go_format_sel,
nfs_class_init, nfs_init, GTK_TYPE_HBOX)
-/**
+/**
* go_format_sel_new_full:
* @use_markup: enable formats using pango markup
*
* Creates a format selector widget, with general format selected
* by default. When @use_markup is set to %TRUE, it shows additional
- * widgets for editing properties of formats using pango markup
+ * widgets for editing properties of formats using pango markup
* (e.g. scientific format with superscripted exponent).
- *
+ *
* returns: a format selector widget.
**/
@@ -1226,7 +1226,7 @@ go_format_sel_new_full (gboolean use_markup)
* Creates a format selector widget, with general format selected
* by default, and formats using pango markup disabled. See
* @go_format_sel_new_full.
- *
+ *
* returns: a format selector widget.
**/
@@ -1327,8 +1327,8 @@ go_format_sel_editable_enters (GOFormatSel *gfs,
go_gtk_editable_enters (window, gfs->format.widget[F_ENTRY]);
}
-void
-go_format_sel_set_locale (GOFormatSel *gfs,
+void
+go_format_sel_set_locale (GOFormatSel *gfs,
char const *locale)
{
g_free (gfs->locale);
@@ -1339,7 +1339,7 @@ go_format_sel_set_locale (GOFormatSel *gfs,
/* The following utility function should possibly be in format.h but we */
/* access to the array of category names which are better located here. */
-char const *
+char const *
go_format_sel_format_classification (GOFormat const *style_format)
{
GOFormatFamily page = go_format_get_family (style_format);
diff --git a/goffice/gtk/go-format-sel.h b/goffice/gtk/go-format-sel.h
index 2e9cce6..db44197 100644
--- a/goffice/gtk/go-format-sel.h
+++ b/goffice/gtk/go-format-sel.h
@@ -36,7 +36,7 @@ GtkWidget * go_format_sel_new_full (gboolean use_markup);
void go_format_sel_set_focus (GOFormatSel *gfs);
void go_format_sel_set_style_format (GOFormatSel *gfs,
GOFormat const *style_format);
-void go_format_sel_set_locale (GOFormatSel *gfs,
+void go_format_sel_set_locale (GOFormatSel *gfs,
char const *locale);
GOFormat const *go_format_sel_get_fmt (GOFormatSel *gfs);
diff --git a/goffice/gtk/go-gradient-selector.c b/goffice/gtk/go-gradient-selector.c
index 65b641f..d37a43f 100644
--- a/goffice/gtk/go-gradient-selector.c
+++ b/goffice/gtk/go-gradient-selector.c
@@ -30,7 +30,7 @@ typedef struct {
static void
go_gradient_swatch_render_func (cairo_t *cr,
GdkRectangle const *area,
- int index,
+ int index,
gpointer data)
{
struct { unsigned x0i, y0i, x1i, y1i; } const grad_i[GO_GRADIENT_MAX] = {
@@ -65,7 +65,7 @@ go_gradient_swatch_render_func (cairo_t *cr,
y[1] = area->y + area->height;
x[2] = (x[1] - x[0]) / 2.0 + x[0];
y[2] = (y[1] - y[0]) / 2.0 + y[0];
- cr_pattern = cairo_pattern_create_linear (x[grad_i[index].x0i],
+ cr_pattern = cairo_pattern_create_linear (x[grad_i[index].x0i],
y[grad_i[index].y0i],
x[grad_i[index].x1i],
y[grad_i[index].y1i]);
@@ -80,7 +80,7 @@ go_gradient_swatch_render_func (cairo_t *cr,
cairo_set_line_width (cr, 1);
cairo_set_source_rgb (cr, .75, .75, .75);
cairo_stroke (cr);
-
+
cairo_pattern_destroy (cr_pattern);
}
@@ -96,21 +96,21 @@ go_gradient_selector_new (GOGradientDirection initial_direction,
state->start_color = GO_COLOR_BLACK;
state->stop_color = GO_COLOR_WHITE;
- palette = go_palette_new (GO_GRADIENT_MAX, 1.0, 4,
+ palette = go_palette_new (GO_GRADIENT_MAX, 1.0, 4,
go_gradient_swatch_render_func, NULL,
state, g_free);
- go_palette_show_automatic (GO_PALETTE (palette),
+ go_palette_show_automatic (GO_PALETTE (palette),
CLAMP (default_direction, 0, GO_GRADIENT_MAX -1),
- NULL);
+ NULL);
selector = go_selector_new (GO_PALETTE (palette));
- go_selector_set_active (GO_SELECTOR (selector),
+ go_selector_set_active (GO_SELECTOR (selector),
CLAMP (initial_direction, 0, GO_GRADIENT_MAX - 1));
return selector;
}
void
-go_gradient_selector_set_colors (GOSelector *selector,
- GOColor start_color,
+go_gradient_selector_set_colors (GOSelector *selector,
+ GOColor start_color,
GOColor stop_color)
{
GOGradientSelectorState *state;
diff --git a/goffice/gtk/go-gradient-selector.h b/goffice/gtk/go-gradient-selector.h
index 34a8868..e4db8fd 100644
--- a/goffice/gtk/go-gradient-selector.h
+++ b/goffice/gtk/go-gradient-selector.h
@@ -28,8 +28,8 @@ G_BEGIN_DECLS
GtkWidget *go_gradient_selector_new (GOGradientDirection initial_direction,
GOGradientDirection default_direction);
-void go_gradient_selector_set_colors (GOSelector *selector,
- GOColor start,
+void go_gradient_selector_set_colors (GOSelector *selector,
+ GOColor start,
GOColor stop);
G_END_DECLS
diff --git a/goffice/gtk/go-graph-widget.c b/goffice/gtk/go-graph-widget.c
index 817978e..085455a 100644
--- a/goffice/gtk/go-graph-widget.c
+++ b/goffice/gtk/go-graph-widget.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-graph-widget.c :
+ * go-graph-widget.c :
*
* Copyright (C) 2003-2005 Jean Brefort (jean brefort normalesup org)
* This program is free software; you can redistribute it and/or modify
@@ -336,7 +336,7 @@ go_graph_widget_class_init (GOGraphWidgetClass *klass)
GRAPH_WIDGET_PROP_GRAPH,
g_param_spec_object ("graph", "graph",
"The graph to render.",
- gog_graph_get_type (),
+ gog_graph_get_type (),
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (object_class,
GRAPH_WIDGET_PROP_HRES,
@@ -373,7 +373,7 @@ go_graph_widget_init (GOGraphWidget *w)
* GO_GRAPH_WIDGET_SIZE_MODE_FIT, aspect ratio set.
* The aspect ratio is guaranteed to be maintained,
* i.e. the graph is never squeezed, and will
- * always fit into the visible area.
+ * always fit into the visible area.
*
* GO_GRAPH_WIDGET_SIZE_MODE_FIT, no aspect ratio set.
* The aspect ratio is adapted to make the graph
@@ -417,7 +417,7 @@ go_graph_widget_set_size_mode (GOGraphWidget *widget,
/**
* go_graph_widget_new :
* @graph : #GogGraph
- *
+ *
* Creates a new #GOGraphWidget with an embedded #GogGraph.
* If graph is NULL, the graph will be auto-created, and a
* #GogChart will be added graph.
@@ -453,7 +453,7 @@ GSF_CLASS (GOGraphWidget, go_graph_widget,
/**
* go_graph_widget_get_graph :
* @widget : #GOGraphWidget
- *
+ *
* Returns: the #GogGraph embedded in the widget.
**/
GogGraph *
@@ -466,7 +466,7 @@ go_graph_widget_get_graph (GOGraphWidget *widget)
/**
* go_graph_widget_get_chart :
* @widget : #GOGraphWidget
- *
+ *
* Returns: the #GogChart created by go_graph_widget_new().
**/
GogChart *
@@ -480,7 +480,7 @@ go_graph_widget_get_chart (GOGraphWidget *widget)
/**
* go_graph_widget_get_renderer :
* @widget : #GOGraphWidget
- *
+ *
* Returns: the #GogRenderer used by the widget.
**/
GogRenderer *go_graph_widget_get_renderer (GOGraphWidget *widget)
diff --git a/goffice/gtk/go-graph-widget.h b/goffice/gtk/go-graph-widget.h
index 40f587c..02e6ddd 100644
--- a/goffice/gtk/go-graph-widget.h
+++ b/goffice/gtk/go-graph-widget.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-graph-widget.h :
+ * go-graph-widget.h :
*
* Copyright (C) 2003-2005 Jean Brefort (jean brefort normalesup org)
* This program is free software; you can redistribute it and/or modify
diff --git a/goffice/gtk/go-image-sel.c b/goffice/gtk/go-image-sel.c
index 4b782a8..fd45d94 100644
--- a/goffice/gtk/go-image-sel.c
+++ b/goffice/gtk/go-image-sel.c
@@ -180,7 +180,7 @@ add_image_cb (char const *key, GOImage *image, GOImageSelState *state)
* go_image_sel_new
* @doc : The #GODoc owning the image collection
* @image : #GOImage
- *
+ *
* Returns: and shows new image selector.
**/
GtkWidget *
@@ -220,7 +220,7 @@ go_image_sel_new (GODoc *doc, GOCmdContext *cc, GOImage **image)
state->model = gtk_list_store_new (2, GDK_TYPE_PIXBUF, G_TYPE_STRING);
gtk_icon_view_set_model (state->icon_view , GTK_TREE_MODEL (state->model));
- /* Set sort column and function */
+ /* Set sort column and function */
gtk_tree_sortable_set_default_sort_func (GTK_TREE_SORTABLE (state->model),
sort_func,
NULL, NULL);
diff --git a/goffice/gtk/go-line-selector.c b/goffice/gtk/go-line-selector.c
index 4aa0c93..771435d 100644
--- a/goffice/gtk/go-line-selector.c
+++ b/goffice/gtk/go-line-selector.c
@@ -28,7 +28,7 @@
static void
go_line_dash_palette_render_func (cairo_t *cr,
GdkRectangle const *area,
- int index,
+ int index,
gpointer data)
{
GOLineDashSequence *sequence;
@@ -83,13 +83,13 @@ go_line_dash_selector_new (GOLineDashType initial_type,
GtkWidget *palette;
GtkWidget *selector;
- palette = go_palette_new (GO_LINE_MAX, 3.0, 3,
- go_line_dash_palette_render_func,
+ palette = go_palette_new (GO_LINE_MAX, 3.0, 3,
+ go_line_dash_palette_render_func,
go_line_dash_palette_get_tooltip_func,
NULL, NULL);
- go_palette_show_automatic (GO_PALETTE (palette),
+ go_palette_show_automatic (GO_PALETTE (palette),
CLAMP (default_type, 0, GO_LINE_MAX -1),
- NULL);
+ NULL);
selector = go_selector_new (GO_PALETTE (palette));
go_selector_set_active (GO_SELECTOR (selector),
CLAMP (initial_type, 0, GO_LINE_MAX - 1));
diff --git a/goffice/gtk/go-line-selector.h b/goffice/gtk/go-line-selector.h
index 76b31c5..726e057 100644
--- a/goffice/gtk/go-line-selector.h
+++ b/goffice/gtk/go-line-selector.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-line-selector.h :
+ * go-line-selector.h :
*
* Copyright (C) 2006 Emmanuel Pacaud (emmanuel pacaud lapp in2p3 fr)
*
diff --git a/goffice/gtk/go-marker-selector.h b/goffice/gtk/go-marker-selector.h
index a49a536..4b85e55 100644
--- a/goffice/gtk/go-marker-selector.h
+++ b/goffice/gtk/go-marker-selector.h
@@ -28,10 +28,10 @@ G_BEGIN_DECLS
GtkWidget *go_marker_selector_new (GOMarkerShape initial_shape,
GOMarkerShape default_shape);
-void go_marker_selector_set_colors (GOSelector *selector,
- GOColor outline,
+void go_marker_selector_set_colors (GOSelector *selector,
+ GOColor outline,
GOColor fill);
-
+
G_END_DECLS
#endif /* GO_MARKER_SELECTOR_H */
diff --git a/goffice/gtk/go-optionmenu.c b/goffice/gtk/go-optionmenu.c
index 9813551..8b75add 100644
--- a/goffice/gtk/go-optionmenu.c
+++ b/goffice/gtk/go-optionmenu.c
@@ -12,7 +12,7 @@
* Modified by the GTK+ Team and others 1997-2000. See the GTK AUTHORS
* file for a list of people on the GTK+ Team. See the ChangeLog
* files for a list of changes. These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*
*
* This library is free software; you can redistribute it and/or
@@ -158,7 +158,7 @@ go_option_menu_position (GtkMenu *menu,
}
screen_width = gdk_screen_get_width (gtk_widget_get_screen (widget));
-
+
if (menu_xpos + menu_width > screen_width)
menu_xpos -= (menu_xpos + menu_width) - screen_width;
if (menu_xpos < 0)
@@ -206,7 +206,7 @@ go_option_menu_key_press (GtkWidget *widget,
0, event->time);
return TRUE;
}
-
+
return FALSE;
}
@@ -233,13 +233,13 @@ handle_menu_signals (GOOptionMenu *option_menu, gboolean connect)
gtk_menu_item_get_submenu (GTK_MENU_ITEM (child));
if (sub)
- children = g_list_concat (children,
+ children = g_list_concat (children,
gtk_container_get_children (GTK_CONTAINER (sub)));
else if (connect)
g_signal_connect (child, "activate",
G_CALLBACK (cb_select),
option_menu);
-
+
else
g_signal_handlers_disconnect_by_func
(child, G_CALLBACK (cb_select), option_menu);
@@ -315,9 +315,9 @@ go_option_menu_set_history (GOOptionMenu *option_menu, GSList *selection)
/**
* go_option_menu_get_history:
* @option_menu: a #GOOptionMenu
- *
+ *
* Retrieves the currently selected menu item.
- *
+ *
* Return value: the selected menu_item
**/
@@ -340,7 +340,7 @@ go_option_menu_set_property (GObject *object,
case PROP_MENU:
go_option_menu_set_menu (option_menu, g_value_get_object (value));
break;
-
+
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -359,7 +359,7 @@ go_option_menu_get_property (GObject *object,
case PROP_MENU:
g_value_set_object (value, option_menu->menu);
break;
-
+
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
diff --git a/goffice/gtk/go-optionmenu.h b/goffice/gtk/go-optionmenu.h
index 80b8d79..65252b3 100644
--- a/goffice/gtk/go-optionmenu.h
+++ b/goffice/gtk/go-optionmenu.h
@@ -1,4 +1,4 @@
-/*
+/*
* go-optionmenu.h
*
* Copyright (C) 2002-2005 Andreas J. Guelzow <aguelzow taliesin ca>
@@ -11,7 +11,7 @@
* Modified by the GTK+ Team and others 1997-2000. See the GTK AUTHORS
* file for a list of people on the GTK+ Team. See the ChangeLog
* files for a list of changes. These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*
*
* This library is free software; you can redistribute it and/or
diff --git a/goffice/gtk/go-palette.c b/goffice/gtk/go-palette.c
index 4556a97..e22636e 100644
--- a/goffice/gtk/go-palette.c
+++ b/goffice/gtk/go-palette.c
@@ -123,7 +123,7 @@ go_palette_realize (GtkWidget *widget)
if (priv->show_automatic) {
priv->automatic = gtk_menu_item_new_with_label (priv->automatic_label);
gtk_menu_attach (GTK_MENU (palette), priv->automatic, 0, priv->n_columns, 0, 1);
- g_signal_connect (priv->automatic, "activate", G_CALLBACK (cb_automatic_activate), palette);
+ g_signal_connect (priv->automatic, "activate", G_CALLBACK (cb_automatic_activate), palette);
priv->automatic_separator = gtk_separator_menu_item_new ();
gtk_menu_attach (GTK_MENU (palette), priv->automatic_separator, 0, priv->n_columns, 1, 2);
gtk_widget_show (GTK_WIDGET (palette->priv->automatic));
@@ -134,16 +134,16 @@ go_palette_realize (GtkWidget *widget)
row = ((priv->n_swatches - 1) / priv->n_columns) + 3;
priv->custom_separator = gtk_separator_menu_item_new ();
- gtk_menu_attach (GTK_MENU (palette), priv->custom_separator, 0, priv->n_columns,
+ gtk_menu_attach (GTK_MENU (palette), priv->custom_separator, 0, priv->n_columns,
row, row + 1);
priv->custom = gtk_menu_item_new_with_label (priv->custom_label);
- gtk_menu_attach (GTK_MENU (palette), priv->custom, 0, priv->n_columns,
+ gtk_menu_attach (GTK_MENU (palette), priv->custom, 0, priv->n_columns,
row + 1, row + 2);
- g_signal_connect (priv->custom, "activate", G_CALLBACK (cb_custom_activate), palette);
+ g_signal_connect (priv->custom, "activate", G_CALLBACK (cb_custom_activate), palette);
gtk_widget_show (GTK_WIDGET (palette->priv->custom));
gtk_widget_show (GTK_WIDGET (palette->priv->custom_separator));
}
-
+
GTK_WIDGET_CLASS (go_palette_parent_class)->realize (widget);
}
@@ -152,7 +152,7 @@ go_palette_class_init (GOPaletteClass *class)
{
GObjectClass *object_class = G_OBJECT_CLASS (class);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class);
-
+
object_class->finalize = go_palette_finalize;
widget_class->realize = go_palette_realize;
@@ -173,7 +173,7 @@ go_palette_class_init (GOPaletteClass *class)
NULL, NULL,
g_cclosure_marshal_VOID__INT,
G_TYPE_NONE, 1, G_TYPE_INT);
-
+
go_palette_signals[GO_PALETTE_CUSTOM_ACTIVATE] =
g_signal_new ("custom-activate",
G_OBJECT_CLASS_TYPE (class),
@@ -182,7 +182,7 @@ go_palette_class_init (GOPaletteClass *class)
NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
-
+
g_type_class_add_private (object_class, sizeof (GOPalettePrivate));
}
@@ -251,7 +251,7 @@ cb_swatch_expose (GtkWidget *swatch, GdkEventExpose *event, GOPalette *palette)
pixbuf = go_image_get_pixbuf (image);
gdk_draw_pixbuf (GDK_DRAWABLE (swatch->window), NULL, pixbuf,
- 0, 0, 0, 0, area.width, area.height,
+ 0, 0, 0, 0, area.width, area.height,
GDK_RGB_DITHER_NONE, 0, 0);
g_object_unref (image);
@@ -304,7 +304,7 @@ go_palette_menu_item_new (GOPalette *palette, int index)
static void
cb_automatic_activate (GtkWidget *item, GOPalette *palette)
{
- g_signal_emit (palette, go_palette_signals[GO_PALETTE_AUTOMATIC_ACTIVATE], 0,
+ g_signal_emit (palette, go_palette_signals[GO_PALETTE_AUTOMATIC_ACTIVATE], 0,
palette->priv->automatic_index);
}
@@ -322,7 +322,7 @@ cb_custom_activate (GtkWidget *item, GOPalette *palette)
* @swatch_render: a user function used for swatch rendering
* @data: user data for use by swatch render function
* @destroy: a function to destroy user data on widget finalization
- *
+ *
* Returns: a new #GOPalette object.
**/
GtkWidget *
@@ -367,7 +367,7 @@ go_palette_new (int n_swatches,
* Adds an automatic button to @palette.
**/
void
-go_palette_show_automatic (GOPalette *palette,
+go_palette_show_automatic (GOPalette *palette,
int index,
char const *label)
{
@@ -378,7 +378,7 @@ go_palette_show_automatic (GOPalette *palette,
priv = palette->priv;
g_return_if_fail (!priv->show_automatic);
- priv->automatic_label = g_strdup (label == NULL ? _("Automatic"): _(label));
+ priv->automatic_label = g_strdup (label == NULL ? _("Automatic"): _(label));
priv->automatic_index = index;
priv->show_automatic = TRUE;
}
@@ -392,11 +392,11 @@ go_palette_show_automatic (GOPalette *palette,
* of custom button will cause an emition of "custom_activate" signal.
**/
void
-go_palette_show_custom (GOPalette *palette,
+go_palette_show_custom (GOPalette *palette,
char const *label)
{
GOPalettePrivate *priv;
-
+
g_return_if_fail (GO_IS_PALETTE (palette));
priv = palette->priv;
@@ -416,8 +416,8 @@ gpointer
go_palette_get_user_data (GOPalette *palette)
{
g_return_val_if_fail (GO_IS_PALETTE (palette), NULL);
-
- return palette->priv->data;
+
+ return palette->priv->data;
}
/**
@@ -439,8 +439,8 @@ go_palette_swatch_new (GOPalette *palette, int index)
g_object_set_data (G_OBJECT (swatch), "index", GINT_TO_POINTER (index));
g_signal_connect (G_OBJECT (swatch), "expose-event", G_CALLBACK (cb_swatch_expose), palette);
- gtk_widget_set_size_request (swatch,
- palette->priv->swatch_width,
+ gtk_widget_set_size_request (swatch,
+ palette->priv->swatch_width,
palette->priv->swatch_height);
gtk_widget_show (swatch);
diff --git a/goffice/gtk/go-palette.h b/goffice/gtk/go-palette.h
index 6295134..5c31573 100644
--- a/goffice/gtk/go-palette.h
+++ b/goffice/gtk/go-palette.h
@@ -54,7 +54,7 @@ struct _GOPalette
struct _GOPaletteClass
{
- GtkMenuClass parent_class;
+ GtkMenuClass parent_class;
/* signals */
void (*activate) (GtkWidget *palette, int index);
diff --git a/goffice/gtk/go-pattern-selector.c b/goffice/gtk/go-pattern-selector.c
index 656c3b9..77d35e3 100644
--- a/goffice/gtk/go-pattern-selector.c
+++ b/goffice/gtk/go-pattern-selector.c
@@ -82,12 +82,12 @@ go_pattern_selector_new (GOPatternType initial_type,
palette = go_palette_new (GO_PATTERN_MAX, 1.0, 5,
go_pattern_palette_render_func, NULL,
state, g_free);
- go_palette_show_automatic (GO_PALETTE (palette),
+ go_palette_show_automatic (GO_PALETTE (palette),
CLAMP (default_type, 0, GO_PATTERN_MAX - 1),
NULL);
selector = go_selector_new (GO_PALETTE (palette));
- go_selector_set_active (GO_SELECTOR (selector),
+ go_selector_set_active (GO_SELECTOR (selector),
CLAMP (initial_type, 0, GO_PATTERN_MAX -1));
return selector;
@@ -102,8 +102,8 @@ go_pattern_selector_new (GOPatternType initial_type,
* Updates swatch colors of @selector.
**/
void
-go_pattern_selector_set_colors (GOSelector *selector,
- GOColor foreground,
+go_pattern_selector_set_colors (GOSelector *selector,
+ GOColor foreground,
GOColor background)
{
GOPatternSelectorState *state;
diff --git a/goffice/gtk/go-pattern-selector.h b/goffice/gtk/go-pattern-selector.h
index 32a99b8..d33b0e6 100644
--- a/goffice/gtk/go-pattern-selector.h
+++ b/goffice/gtk/go-pattern-selector.h
@@ -1,8 +1,8 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-pattern-selector.h
+ * go-pattern-selector.h
*
- * Copyright (C) 2006-2007 Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
+ * Copyright (C) 2006-2007 Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
diff --git a/goffice/gtk/go-pixbuf.c b/goffice/gtk/go-pixbuf.c
index 7639236..a35bc96 100644
--- a/goffice/gtk/go-pixbuf.c
+++ b/goffice/gtk/go-pixbuf.c
@@ -31,7 +31,7 @@
* @height: new height
*
* Intelligent pixbuf scaling.
- *
+ *
* returns: a new GdkPixbuf reference.
**/
@@ -92,7 +92,7 @@ go_pixbuf_new_from_file (char const *filename)
* go_pixbuf_get_from_cache:
* @filename: pixbuf filename
*
- * Retrieves a pixbuf from the image cache, loading it from the file
+ * Retrieves a pixbuf from the image cache, loading it from the file
* @filename located in goffice_icon_dir if not cached yet.
*
* returns: a GdkPixbuf, NULL on error.
diff --git a/goffice/gtk/go-rotation-sel.c b/goffice/gtk/go-rotation-sel.c
index e8aae47..e6d2292 100644
--- a/goffice/gtk/go-rotation-sel.c
+++ b/goffice/gtk/go-rotation-sel.c
@@ -73,7 +73,7 @@ cb_rotate_changed (GORotationSel *grs)
if (grs->line != NULL) {
double rad = grs->angle * M_PI / 180.;
- goc_item_set (grs->line,
+ goc_item_set (grs->line,
"x0", 15 + cos (rad) * grs->rot_width,
"y0", 100 - sin (rad) * grs->rot_width,
"x1", 15 + cos (rad) * 72.,
diff --git a/goffice/gtk/goffice-gtk.c b/goffice/gtk/goffice-gtk.c
index bcd0d5f..26dc3d6 100644
--- a/goffice/gtk/goffice-gtk.c
+++ b/goffice/gtk/goffice-gtk.c
@@ -73,7 +73,7 @@ go_gtk_button_new_with_stock (char const *text, char const* stock_id)
*
* FROM : gedit
* Creates and adds a button with stock image to the action area of an existing dialog.
- *
+ *
* Returns: newly created button
**/
GtkWidget*
@@ -93,7 +93,7 @@ go_gtk_dialog_add_button (GtkDialog *dialog, char const* text, char const* stock
gtk_widget_show (button);
- gtk_dialog_add_action_widget (dialog, button, response_id);
+ gtk_dialog_add_action_widget (dialog, button, response_id);
return button;
}
@@ -654,7 +654,7 @@ typedef struct {
} SaveInfoState;
static void
-save_info_state_free (SaveInfoState *state)
+save_info_state_free (SaveInfoState *state)
{
g_free (state->uri);
g_free (state);
@@ -666,8 +666,8 @@ cb_format_combo_changed (GtkComboBox *combo, GtkWidget *expander)
GOImageFormatInfo const *format_info;
format_info = go_image_get_format_info (gtk_combo_box_get_active (combo));
- gtk_widget_set_sensitive (expander,
- format_info != NULL &&
+ gtk_widget_set_sensitive (expander,
+ format_info != NULL &&
format_info->is_dpi_useful);
}
@@ -714,7 +714,7 @@ go_gui_get_image_save_info (GtkWindow *toplevel, GSList *supported_formats,
g_object_set (G_OBJECT (fsel), "title", _("Save as"), NULL);
- gui = go_gtk_builder_new ("go-image-save-dialog-extra.ui",
+ gui = go_gtk_builder_new ("go-image-save-dialog-extra.ui",
GETTEXT_PACKAGE, NULL);
if (gui != NULL) {
GtkWidget *widget;
@@ -727,8 +727,8 @@ go_gui_get_image_save_info (GtkWindow *toplevel, GSList *supported_formats,
for (l = supported_formats, i = 0; l != NULL; l = l->next, i++) {
format = GPOINTER_TO_UINT (l->data);
format_info = go_image_get_format_info (format);
- gtk_combo_box_append_text (format_combo, _(format_info->desc));
- if (format == state->format)
+ gtk_combo_box_append_text (format_combo, _(format_info->desc));
+ if (format == state->format)
gtk_combo_box_set_active (format_combo, i);
}
if (gtk_combo_box_get_active (format_combo) < 0)
@@ -749,14 +749,14 @@ go_gui_get_image_save_info (GtkWindow *toplevel, GSList *supported_formats,
gtk_expander_set_expanded (GTK_EXPANDER (expander), state->is_expanded);
resolution_spin = go_gtk_builder_get_widget (gui, "resolution_spin");
gtk_spin_button_set_value (GTK_SPIN_BUTTON (resolution_spin), state->resolution);
- } else
+ } else
gtk_widget_hide (expander);
if (resolution != NULL && supported_formats != NULL && ret_format != NULL) {
resolution_table = go_gtk_builder_get_widget (gui, "resolution_table");
-
- cb_format_combo_changed (format_combo, resolution_table);
- g_signal_connect (GTK_WIDGET (format_combo), "changed",
+
+ cb_format_combo_changed (format_combo, resolution_table);
+ g_signal_connect (GTK_WIDGET (format_combo), "changed",
G_CALLBACK (cb_format_combo_changed), resolution_table);
}
@@ -767,7 +767,7 @@ go_gui_get_image_save_info (GtkWindow *toplevel, GSList *supported_formats,
gtk_file_chooser_set_uri (fsel, state->uri);
gtk_file_chooser_unselect_all (fsel);
}
-
+
/* Show file selector */
loop:
if (!go_gtk_file_sel_dialog (toplevel, GTK_WIDGET (fsel)))
@@ -776,8 +776,8 @@ go_gui_get_image_save_info (GtkWindow *toplevel, GSList *supported_formats,
if (format_combo) {
char *new_uri = NULL;
- format = GPOINTER_TO_UINT (g_slist_nth_data
- (supported_formats,
+ format = GPOINTER_TO_UINT (g_slist_nth_data
+ (supported_formats,
gtk_combo_box_get_active (format_combo)));
format_info = go_image_get_format_info (format);
if (!go_url_check_extension (uri, format_info->ext, &new_uri) &&
diff --git a/goffice/gtk/goffice-gtk.h b/goffice/gtk/goffice-gtk.h
index ba2dbd2..2db2ac2 100644
--- a/goffice/gtk/goffice-gtk.h
+++ b/goffice/gtk/goffice-gtk.h
@@ -82,7 +82,7 @@ int go_pango_measure_string (PangoContext *context,
gint go_gtk_dialog_run (GtkDialog *dialog, GtkWindow *parent);
GtkWidget *go_gtk_dialog_add_button (GtkDialog *dialog, char const *text, char const *stock_id,
gint response_id);
-void go_gtk_notice_dialog (GtkWindow *parent, GtkMessageType type,
+void go_gtk_notice_dialog (GtkWindow *parent, GtkMessageType type,
const gchar *format, ...);
void go_gtk_notice_nonmodal_dialog (GtkWindow *parent, GtkWidget **ref,
GtkMessageType type, const gchar *format, ...);
diff --git a/goffice/math/go-cspline.c b/goffice/math/go-cspline.c
index 9c2abd3..20c661e 100644
--- a/goffice/math/go-cspline.c
+++ b/goffice/math/go-cspline.c
@@ -2,13 +2,13 @@
/*
* go-cspline.c
*
- * The code in this file has been adapted from public domain code by
+ * The code in this file has been adapted from public domain code by
* Sylvain BARTHELEMY (http://www.sylbarth.com/interp.php).
*
* Copyright (C) 2007-2008 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
@@ -96,20 +96,20 @@ SUFFIX(go_cspline_init) (DOUBLE const *x, DOUBLE const *y, int n,
d4 = g_new0 (DOUBLE, n);
/* --- COMPUTE FOR N-2 ROWS --- */
- nm2 = n - 2;
- dx1 = x[1] - x[0];
+ nm2 = n - 2;
+ dx1 = x[1] - x[0];
dy1 = (y[1] - y[0]) / dx1 * 3.0;
- for ( i = 1; i <= nm2; ++i ) {
+ for ( i = 1; i <= nm2; ++i ) {
dx2 = x[i + 1] - x[i];
dy2 = (y[i + 1] - y[i]) / dx2 * 3.0;
d1[i] = dx1;
d2[i] = 2.0 * (dx1 + dx2);
d3[i] = dx2;
d4[i] = dy2 - dy1;
- dx1 = dx2;
+ dx1 = dx2;
dy1 = dy2;
} /* end of for i loop */
- first = 2;
+ first = 2;
last = nm2;
/* --- ADJUST FIRST AND LAST ROWS ACCORDING TO IEND CONDITIONS --- */
@@ -121,29 +121,29 @@ SUFFIX(go_cspline_init) (DOUBLE const *x, DOUBLE const *y, int n,
d2[nm2] = d2[nm2] + x[nm1] - x[nm2];
break;
case GO_CSPLINE_CUBIC : /* cubic ends--s[1], s[n] are extrapolated */
- dx1 = x[1] - x[0];
+ dx1 = x[1] - x[0];
dx2 = x[2] - x[1];
d2[1] = (dx1 + dx2) * (dx1 + 2.0 * dx2) / dx2;
d3[1] = (dx2 * dx2 - dx1 * dx1) / dx2;
- dxn2 = x[nm2] - x[nm2 - 1];
+ dxn2 = x[nm2] - x[nm2 - 1];
dxn1 = x[nm1] - x[nm2];
d1[nm2] = (dxn2 * dxn2 - dxn1 * dxn1) / dxn2;
d2[nm2] = (dxn1 + dxn2) * (dxn1 + 2.0 * dxn2) / dxn2;
break;
case GO_CSPLINE_CLAMPED : /* Derivative end conditions */
- dx1 = x[1] - x[0];
+ dx1 = x[1] - x[0];
dy1 = (y[1] - y[0]) / dx1;
d1[0] = 0.0;
- d2[0] = 2.0 * dx1;
+ d2[0] = 2.0 * dx1;
d3[0] = dx1;
d4[0] = (dy1 - c0) * 3.0;
- dx1 = x[nm1] - x[nm2];
+ dx1 = x[nm1] - x[nm2];
dy1 = (y[nm1] - y[nm2]) / dx1;
- d1[nm1] = dx1;
+ d1[nm1] = dx1;
d2[nm1] = 2.0 * dx1;
d3[nm1] = 0.0;
d4[nm1] = (cn - dy1) * 3.0;
- first = 1; last = n-1;
+ first = 1; last = n-1;
break;
}
@@ -161,15 +161,15 @@ SUFFIX(go_cspline_init) (DOUBLE const *x, DOUBLE const *y, int n,
/* --- TAKE CARE OF SPECIAL END CONDITIONS FOR S VECTOR --- */
switch (limits) {
- case GO_CSPLINE_NATURAL :
- d4[0] = 0.0;
+ case GO_CSPLINE_NATURAL :
+ d4[0] = 0.0;
d4[nm1] = 0.0;
break;
- case GO_CSPLINE_PARABOLIC :
- d4[0] = d4[1];
+ case GO_CSPLINE_PARABOLIC :
+ d4[0] = d4[1];
d4[nm1] = d4[nm2];
break;
- case GO_CSPLINE_CUBIC :
+ case GO_CSPLINE_CUBIC :
d4[0] = ((dx1 + dx2) * d4[1] - dx1 * d4[2]) / dx2;
d4[nm1] = ((dxn2 + dxn1) * d4[nm2] - dxn1 * d4[nm2 - 1]) / dxn2;
break;
@@ -196,7 +196,7 @@ SUFFIX(go_cspline_init) (DOUBLE const *x, DOUBLE const *y, int n,
/**
* go_cspline_destroy:
* @sp: a spline structure returned by go_cspline_init.
- *
+ *
* Frees the spline structure when done.
*/
void SUFFIX(go_cspline_destroy) (struct SUFFIX(GOCSpline) *sp)
diff --git a/goffice/math/go-cspline.h b/goffice/math/go-cspline.h
index 9573ff7..c443884 100644
--- a/goffice/math/go-cspline.h
+++ b/goffice/math/go-cspline.h
@@ -4,8 +4,8 @@
*
* Copyright (C) 2007-2008 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
diff --git a/goffice/math/go-distribution.c b/goffice/math/go-distribution.c
index 72425be..b7ff83f 100644
--- a/goffice/math/go-distribution.c
+++ b/goffice/math/go-distribution.c
@@ -89,7 +89,7 @@ GODistributionType go_distribution_type_from_string (char const *name)
struct _GODistribution {
GObject base;
-
+
double location, scale;
};
@@ -151,20 +151,20 @@ go_distribution_class_init (GObjectClass *klass)
klass->set_property = go_distribution_set_property;
klass->get_property = go_distribution_get_property;
g_object_class_install_property (klass, DIST_PROP_LOCATION,
- g_param_spec_double ("location",
- _("Location"),
+ g_param_spec_double ("location",
+ _("Location"),
_("Location"),
- -G_MAXDOUBLE,
+ -G_MAXDOUBLE,
G_MAXDOUBLE,
- 0.0,
+ 0.0,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (klass, DIST_PROP_SCALE,
- g_param_spec_double ("scale",
- _("Scale"),
+ g_param_spec_double ("scale",
+ _("Scale"),
_("Scale"),
- G_MINDOUBLE,
+ G_MINDOUBLE,
G_MAXDOUBLE,
- 1.0,
+ 1.0,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
}
@@ -400,7 +400,7 @@ SUFFIX (go_distribution_get_inverse_survival) (GODistribution *dist, DOUBLE x)
typedef struct {
GODistribution base;
-
+
} GODistNormal;
#define GO_TYPE_DIST_NORMAL (go_dist_normal_get_type ())
@@ -466,7 +466,7 @@ GSF_CLASS (GODistNormal, go_dist_normal,
typedef struct {
GODistribution base;
-
+
} GODistUniform;
#define GO_TYPE_DIST_UNIFORM (go_dist_uniform_get_type ())
@@ -539,7 +539,7 @@ GSF_CLASS (GODistUniform, go_dist_uniform,
typedef struct {
GODistribution base;
-
+
} GODistCauchy;
#define GO_TYPE_DIST_CAUCHY (go_dist_cauchy_get_type ())
@@ -689,12 +689,12 @@ go_dist_weibull_class_init (GObjectClass *klass)
klass->set_property = go_dist_weibull_set_property;
klass->get_property = go_dist_weibull_get_property;
g_object_class_install_property (klass, WEIBULL_PROP_SHAPE,
- g_param_spec_double ("shape",
- _("Shape"),
+ g_param_spec_double ("shape",
+ _("Shape"),
_("Shape factor"),
- G_MINDOUBLE,
+ G_MINDOUBLE,
G_MAXDOUBLE,
- 1.0,
+ 1.0,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
}
@@ -801,12 +801,12 @@ go_dist_log_normal_class_init (GObjectClass *klass)
klass->set_property = go_dist_log_normal_set_property;
klass->get_property = go_dist_log_normal_get_property;
g_object_class_install_property (klass, LNORM_PROP_SHAPE,
- g_param_spec_double ("shape",
- _("Shape"),
+ g_param_spec_double ("shape",
+ _("Shape"),
_("Shape factor"),
- G_MINDOUBLE,
+ G_MINDOUBLE,
G_MAXDOUBLE,
- 1.0,
+ 1.0,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
}
diff --git a/goffice/math/go-math.c b/goffice/math/go-math.c
index 39dce13..5462135 100644
--- a/goffice/math/go-math.c
+++ b/goffice/math/go-math.c
@@ -759,7 +759,7 @@ modfl (long double x, long double *iptr)
if (x >= 0)
return x - (*iptr = floorl (x));
else
- return x - (*iptr = -floorl (-x));
+ return x - (*iptr = -floorl (-x));
} else {
*iptr = x;
return 0;
diff --git a/goffice/math/go-math.h b/goffice/math/go-math.h
index b95e600..01e0852 100644
--- a/goffice/math/go-math.h
+++ b/goffice/math/go-math.h
@@ -40,7 +40,7 @@ double go_strtod (const char *s, char **end);
double go_ascii_strtod (const char *s, char **end);
/*
* We provide working versions of these functions for doubles.
- */
+ */
#ifdef GOFFICE_SUPPLIED_ASINH
double asinh (double x);
#endif
@@ -81,7 +81,7 @@ long double go_ascii_strtold (const char *s, char **end);
/*
* We provide working versions of these functions for long doubles.
- */
+ */
#ifdef GOFFICE_SUPPLIED_LDEXPL
long double ldexpl (long double x, int exp);
#endif
diff --git a/goffice/math/go-regression.c b/goffice/math/go-regression.c
index 63807d2..913e361 100644
--- a/goffice/math/go-regression.c
+++ b/goffice/math/go-regression.c
@@ -989,8 +989,8 @@ SUFFIX(go_power_regression) (DOUBLE **xss, int dim,
* gnumeric_linest, which is also valid for gnumeric_logreg.
*
* (Errors: less than two points, all points on a vertical line, non-positive x data.)
- *
- * Returns: #GORegressionResult as above.
+ *
+ * Returns: #GORegressionResult as above.
**/
GORegressionResult
SUFFIX(go_logarithmic_regression) (DOUBLE **xss, int dim,
@@ -1062,7 +1062,7 @@ SUFFIX(go_logarithmic_regression) (DOUBLE **xss, int dim,
* best possible). If the shape of the point cloud is to different from
* ``logarithmic'', either sign can not be determined (error returned) or no
* local minimum will be found.
- *
+ *
* (Requires: at least 3 different x values, at least 3 different y values.)
*
* Returns: #GORegressionResult as above.
diff --git a/goffice/ms-compat/go-ms-parser.c b/goffice/ms-compat/go-ms-parser.c
index df6d1f5..2c80b67 100644
--- a/goffice/ms-compat/go-ms-parser.c
+++ b/goffice/ms-compat/go-ms-parser.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-/*
- * ms-escher-types.h -
+/*
+ * ms-escher-types.h -
* Copyright (C) 2003-2004, Christopher James Lahey
*
* Authors:
diff --git a/goffice/ms-compat/god-drawing-ms.c b/goffice/ms-compat/god-drawing-ms.c
index 9586d0d..2adef0e 100644
--- a/goffice/ms-compat/god-drawing-ms.c
+++ b/goffice/ms-compat/god-drawing-ms.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-/*
- * god-drawing-ms.h -
+/*
+ * god-drawing-ms.h -
* Copyright (C) 2003-2004, Christopher James Lahey
*
* Authors:
@@ -299,11 +299,11 @@ typedef enum
/*
typedef enum
{
- msoanchorTop,
- msoanchorMiddle,
- msoanchorBottom,
- msoanchorTopCentered,
- msoanchorMiddleCentered,
+ msoanchorTop,
+ msoanchorMiddle,
+ msoanchorBottom,
+ msoanchorTopCentered,
+ msoanchorMiddleCentered,
msoanchorBottomCentered,
msoanchorTopBaseline,
msoanchorBottomBaseline,
@@ -312,7 +312,7 @@ typedef enum
} MSOANCHOR;
*/
break;
-
+
case 260:
god_property_table_set_int
(parse_state->prop_table,
@@ -575,7 +575,7 @@ end_container (GSList *stack, GsfInput *input, GError **err, gpointer user_data)
ERROR (parse_state->main_shape != NULL, "Children Error");
parse_state->shapes = g_list_reverse (parse_state->shapes);
for (list = parse_state->shapes; list; list = list->next) {
- god_shape_append_child (parse_state->main_shape,
+ god_shape_append_child (parse_state->main_shape,
list->data);
g_object_unref (list->data);
}
diff --git a/goffice/utils/formats.c b/goffice/utils/formats.c
index b17c67f..9bc3a00 100644
--- a/goffice/utils/formats.c
+++ b/goffice/utils/formats.c
@@ -133,7 +133,7 @@ add_dt_format (GHashTable *dt_hash, gboolean timep, guint *N, const char *fmt)
(timep ? fmts_time : fmts_date)[*N] = fmt2;
g_hash_table_insert (dt_hash, fmt2, fmt2);
(*N)++;
- (timep ? fmts_time : fmts_date)[*N] = NULL;
+ (timep ? fmts_time : fmts_date)[*N] = NULL;
}
static void
diff --git a/goffice/utils/go-bezier.c b/goffice/utils/go-bezier.c
index 957d04a..ec87ec7 100644
--- a/goffice/utils/go-bezier.c
+++ b/goffice/utils/go-bezier.c
@@ -4,8 +4,8 @@
*
* Copyright (C) 2008 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
@@ -327,7 +327,7 @@ go_bezier_spline_to_path (struct GOBezierSpline *sp)
int i, j;
GOPath *path = go_path_new ();
go_path_move_to (path, sp->x[0], sp->y[0]);
- for (i = j = 1; i < sp->n; i++, j += 3)
+ for (i = j = 1; i < sp->n; i++, j += 3)
go_path_curve_to (path, sp->x[j], sp->y[j], sp->x[j+1], sp->y[j+1], sp->x[j+2], sp->y[j+2]);
if (sp->closed) {
go_path_curve_to (path, sp->x[j], sp->y[j], sp->x[j+1], sp->y[j+1], sp->x[0], sp->y[0]);
diff --git a/goffice/utils/go-bezier.h b/goffice/utils/go-bezier.h
index 33560fc..b5f96dc 100644
--- a/goffice/utils/go-bezier.h
+++ b/goffice/utils/go-bezier.h
@@ -4,8 +4,8 @@
*
* Copyright (C) 2008 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
diff --git a/goffice/utils/go-cairo.c b/goffice/utils/go-cairo.c
index b1cf181..ddbeb7b 100644
--- a/goffice/utils/go-cairo.c
+++ b/goffice/utils/go-cairo.c
@@ -173,7 +173,7 @@ emit_function_6 (char **path, cairo_t *cr,
* @cr: a cairo context
* @path: a SVG path
*
- * Emits a path described as a SVG path string (d property of path elements) to
+ * Emits a path described as a SVG path string (d property of path elements) to
* a cairo context.
**/
@@ -236,7 +236,7 @@ go_cairo_surface_is_vector (cairo_surface_t const *surface)
* @height: image height
* @rowstride: data rowstride
*
- * Converts the pixel data stored in @src in GDK_COLORSPACE_RGB pixbuf
+ * Converts the pixel data stored in @src in GDK_COLORSPACE_RGB pixbuf
* format to CAIRO_FORMAT_ARGB32 cairo format and move them
* to @dst. If @src == @dst, pixel are converted in place.
**/
@@ -310,7 +310,7 @@ go_cairo_convert_data_from_pixbuf (unsigned char *dst, unsigned char const *src,
* @height: image height
* @rowstride: data rowstride
*
- * Converts the pixel data stored in @src in CAIRO_FORMAT_ARGB32 cairo format
+ * Converts the pixel data stored in @src in CAIRO_FORMAT_ARGB32 cairo format
* to GDK_COLORSPACE_RGB pixbuf format and move them
* to @dst. If @src == @dst, pixel are converted in place.
**/
diff --git a/goffice/utils/go-color.c b/goffice/utils/go-color.c
index b1395db..378c234 100644
--- a/goffice/utils/go-color.c
+++ b/goffice/utils/go-color.c
@@ -28,7 +28,7 @@
* go_color_from_str :
* @str :
* @res :
- *
+ *
* Returns: TRUE if @str can be parsed as a color of the form R:G:B:A and the
* result is stored in @res.
**/
diff --git a/goffice/utils/go-editor.c b/goffice/utils/go-editor.c
index fbbdc68..d8172d1 100644
--- a/goffice/utils/go-editor.c
+++ b/goffice/utils/go-editor.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-editor.c :
+ * go-editor.c :
*
* Copyright (C) 2003-2009 Jody Goldberg (jody gnome org)
*
@@ -112,9 +112,9 @@ go_editor_set_store_page (GOEditor *editor, unsigned *store_page)
* go_editor_register_widget:
* @editor: a #GOEditor
* @widget: a #GtkWidget
- *
- * Registers a widget that then can be retrieved later using
- * @go_editor_get_registered_widget. The main use of this function is to
+ *
+ * Registers a widget that then can be retrieved later using
+ * @go_editor_get_registered_widget. The main use of this function is to
* provide the ability to extend a page.
**/
void
diff --git a/goffice/utils/go-editor.h b/goffice/utils/go-editor.h
index 6617008..2f623fd 100644
--- a/goffice/utils/go-editor.h
+++ b/goffice/utils/go-editor.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-editor.h :
+ * go-editor.h :
*
* Copyright (C) 2003-2009 Jody Goldberg (jody gnome org)
*
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
* USA
*/
-
+
#ifndef GO_EDITOR_H
#define GO_EDITOR_H
@@ -28,7 +28,7 @@ G_BEGIN_DECLS
typedef struct {
char const *label; /* label for notebook page */
- gpointer widget; /* GtkWidget* */
+ gpointer widget; /* GtkWidget* */
} GOEditorPage;
struct _GOEditor {
diff --git a/goffice/utils/go-file.c b/goffice/utils/go-file.c
index ba8586b..c928c31 100644
--- a/goffice/utils/go-file.c
+++ b/goffice/utils/go-file.c
@@ -749,7 +749,7 @@ go_get_file_permissions (char const *uri)
file_permissions->others_execute = FALSE;
#endif /* G_OS_WIN32 */
}
-
+
if (info)
g_object_unref (info);
g_object_unref (file);
@@ -864,7 +864,7 @@ go_file_get_date (char const *uri, GOFileDateType type)
tm = (time_t) g_file_info_get_attribute_uint64 (info, G_FILE_ATTRIBUTE_TIME_CHANGED);
break;
}
-
+
if (info)
g_object_unref (info);
g_object_unref (file);
@@ -1211,8 +1211,8 @@ go_file_access (char const *uri, gint mode)
#else
ret = access (filename, mode);
#endif
-
+
g_free (filename);
-
+
return ret;
}
diff --git a/goffice/utils/go-file.h b/goffice/utils/go-file.h
index 8926c38..b834518 100644
--- a/goffice/utils/go-file.h
+++ b/goffice/utils/go-file.h
@@ -1,5 +1,5 @@
/*
- * go-file.h :
+ * go-file.h :
*
* Copyright (C) 2004 Morten Welinder (terra gnome org)
*
diff --git a/goffice/utils/go-font.c b/goffice/utils/go-font.c
index 7529cfe..04f4717 100644
--- a/goffice/utils/go-font.c
+++ b/goffice/utils/go-font.c
@@ -121,9 +121,9 @@ go_font_unref (GOFont const *font)
for (ptr = font_watchers; ptr != NULL ; ptr = ptr->next) {
GClosure *watcher = ptr->data;
- gpointer data = watcher->is_invalid ?
+ gpointer data = watcher->is_invalid ?
NULL : watcher->data;
-
+
instance_and_params[0].g_type = 0;
g_value_init (&instance_and_params[0], G_TYPE_POINTER);
g_value_set_pointer (&instance_and_params[0], (gpointer)font);
diff --git a/goffice/utils/go-font.h b/goffice/utils/go-font.h
index 2b7cde7..c00665f 100644
--- a/goffice/utils/go-font.h
+++ b/goffice/utils/go-font.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-font.h :
+ * go-font.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/utils/go-format.c b/goffice/utils/go-format.c
index c4563ba..5c8121a 100644
--- a/goffice/utils/go-format.c
+++ b/goffice/utils/go-format.c
@@ -3979,7 +3979,7 @@ go_format_inc_precision (GOFormat const *fmt)
break;
}
- case 'E':
+ case 'E':
if (last_zero != -2) {
if (last_zero>=0)
g_string_insert_len (res, last_zero + 1, ".0",2);
@@ -3989,7 +3989,7 @@ go_format_inc_precision (GOFormat const *fmt)
}
g_string_append_c (res, t);
break;
-
+
case '0':
if (last_zero != -2)
last_zero = res->len;
@@ -5405,7 +5405,7 @@ go_format_get_details (GOFormat const *fmt,
dst->simplify_mantissa = mend != str && mend[-1] == '#';
if (dst->simplify_mantissa)
dst->min_digits = 0;
- }
+ }
if (exact != NULL) {
newstr = g_string_new (NULL);
@@ -5509,9 +5509,9 @@ go_format_odf_style_map (GOFormat const *fmt, int cond_part)
default:
return NULL;
}
- return g_strdup_printf (format_string,
+ return g_strdup_printf (format_string,
fmt->u.cond.conditions[cond_part].val);
-
+
}
#endif
@@ -5537,7 +5537,7 @@ odf_add_bool (GsfXMLOut *xout, char const *id, gboolean val)
static void
go_format_output_date_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
- char const *name,
+ char const *name,
GOFormatFamily family,
gboolean with_extension)
{
@@ -5562,7 +5562,7 @@ go_format_output_date_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
GOFormatMagic magic = go_format_get_magic (fmt);
gboolean color_completed = FALSE;
- gsf_xml_out_start_element (xout, time_only ?
+ gsf_xml_out_start_element (xout, time_only ?
NUMBER "time-style" : NUMBER "date-style");
gsf_xml_out_add_cstr (xout, STYLE "name", name);
if (magic == GO_FORMAT_MAGIC_NONE)
@@ -5592,25 +5592,25 @@ go_format_output_date_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
int n = 1;
while (*xl == 'd' || *xl == 'D')
xl++, n++;
- if (time_only) break;
+ if (time_only) break;
switch (n) {
- case 1:
+ case 1:
case 2: if (seen_day) break;
seen_day = TRUE;
ODF_CLOSE_STRING;
element_written = TRUE;
gsf_xml_out_start_element (xout, NUMBER "day");
- gsf_xml_out_add_cstr (xout, NUMBER "style",
+ gsf_xml_out_add_cstr (xout, NUMBER "style",
(n==1) ? "short" : "long");
gsf_xml_out_end_element (xout); /* </number:day> */
break;
- case 3:
+ case 3:
default: if (seen_weekday) break;
seen_weekday = TRUE;
ODF_CLOSE_STRING;
element_written = TRUE;
gsf_xml_out_start_element (xout, NUMBER "day-of-week");
- gsf_xml_out_add_cstr (xout, NUMBER "style",
+ gsf_xml_out_add_cstr (xout, NUMBER "style",
(n==3) ? "short" : "long");
gsf_xml_out_end_element (xout); /* </number:day-of-week> */
break;
@@ -5622,12 +5622,12 @@ go_format_output_date_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
int n = 1;
while (*xl == 'y' || *xl == 'Y')
xl++, n++;
- if (time_only || seen_year) break;
+ if (time_only || seen_year) break;
seen_year = TRUE;
ODF_CLOSE_STRING;
element_written = TRUE;
gsf_xml_out_start_element (xout, NUMBER "year");
- gsf_xml_out_add_cstr (xout, NUMBER "style",
+ gsf_xml_out_add_cstr (xout, NUMBER "style",
(n <= 2) ? "short" : "long");
gsf_xml_out_add_cstr (xout, NUMBER "calendar", "gregorian");
gsf_xml_out_end_element (xout); /* </number:year> */
@@ -5638,12 +5638,12 @@ go_format_output_date_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
int n = 1;
while (*xl == 'b' || *xl == 'B')
xl++, n++;
- if (time_only || seen_year) break;
+ if (time_only || seen_year) break;
seen_year = TRUE;
ODF_CLOSE_STRING;
element_written = TRUE;
gsf_xml_out_start_element (xout, NUMBER "year");
- gsf_xml_out_add_cstr (xout, NUMBER "style",
+ gsf_xml_out_add_cstr (xout, NUMBER "style",
(n <= 2) ? "short" : "long");
gsf_xml_out_add_cstr (xout, NUMBER "calendar", "buddhist");
gsf_xml_out_end_element (xout); /* </number:year> */
@@ -5652,7 +5652,7 @@ go_format_output_date_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
case 'e': { /* What is 'e' really? */
while (*xl == 'e') xl++;
- if (time_only || seen_year) break;
+ if (time_only || seen_year) break;
seen_year = TRUE;
ODF_CLOSE_STRING;
gsf_xml_out_start_element (xout, NUMBER "year");
@@ -5661,7 +5661,7 @@ go_format_output_date_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
gsf_xml_out_end_element (xout); /* </number:year> */
break;
}
-
+
case 'g': case 'G':
/* Something with Japanese eras. Blank for me. */
break;
@@ -5675,7 +5675,7 @@ go_format_output_date_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
ODF_CLOSE_STRING;
element_written = TRUE;
gsf_xml_out_start_element (xout, NUMBER "hours");
- gsf_xml_out_add_cstr (xout, NUMBER "style",
+ gsf_xml_out_add_cstr (xout, NUMBER "style",
(n == 1) ? "short" : "long");
if (with_extension)
gsf_xml_out_add_cstr (xout, GNMSTYLE "truncate-on-overflow", "true");
@@ -5698,7 +5698,7 @@ go_format_output_date_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
seconds_trigger_minutes = FALSE;
ODF_CLOSE_STRING;
gsf_xml_out_start_element (xout, NUMBER "minutes");
- gsf_xml_out_add_cstr (xout, NUMBER "style",
+ gsf_xml_out_add_cstr (xout, NUMBER "style",
(n == 1) ? "short" : "long");
if (with_extension)
gsf_xml_out_add_cstr (xout, GNMSTYLE "truncate-on-overflow", "true");
@@ -5710,20 +5710,20 @@ go_format_output_date_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
gsf_xml_out_start_element (xout, NUMBER "month");
gsf_xml_out_add_cstr (xout, NUMBER "possessive-form", "false");
switch (n) {
- case 1:
+ case 1:
gsf_xml_out_add_cstr (xout, NUMBER "textual", "false");
gsf_xml_out_add_cstr (xout, NUMBER "style", "short");
break;
- case 2:
+ case 2:
gsf_xml_out_add_cstr (xout, NUMBER "textual", "false");
gsf_xml_out_add_cstr (xout, NUMBER "style", "long");
break;
case 3: /* ODF does not support single letter abbreviation */
- case 5:
+ case 5:
gsf_xml_out_add_cstr (xout, NUMBER "textual", "true");
gsf_xml_out_add_cstr (xout, NUMBER "style", "short");
break;
- default:
+ default:
gsf_xml_out_add_cstr (xout, NUMBER "textual", "true");
gsf_xml_out_add_cstr (xout, NUMBER "style", "long");
break;
@@ -5752,7 +5752,7 @@ go_format_output_date_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
ODF_CLOSE_STRING;
element_written = TRUE;
gsf_xml_out_start_element (xout, NUMBER "seconds");
- gsf_xml_out_add_cstr (xout, NUMBER "style",
+ gsf_xml_out_add_cstr (xout, NUMBER "style",
(n == 1) ? "short" : "long");
gsf_xml_out_add_int (xout, NUMBER "decimal-places", d);
if (with_extension)
@@ -5831,7 +5831,7 @@ go_format_output_date_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
}
break;
}
-
+
case TOK_CHAR: {
size_t len = g_utf8_next_char(token) - (token);
if (len > 0) {
@@ -5868,8 +5868,8 @@ go_format_output_date_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
if (go_format_parse_color (token, &color, NULL, NULL, FALSE)) {
ODF_CLOSE_STRING;
gsf_xml_out_start_element (xout, STYLE "text-properties");
- str = g_strdup_printf ("#%.2X%.2X%.2X",
- GO_COLOR_UINT_R (color), GO_COLOR_UINT_G (color),
+ str = g_strdup_printf ("#%.2X%.2X%.2X",
+ GO_COLOR_UINT_R (color), GO_COLOR_UINT_G (color),
GO_COLOR_UINT_B (color));
gsf_xml_out_add_cstr_unchecked (xout, FOSTYLE "color", str);
g_free (str);
@@ -5913,7 +5913,7 @@ go_format_output_date_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
static void
go_format_output_fraction_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
- char const *name,
+ char const *name,
gboolean with_extension)
{
char const *xl = go_format_as_XL (fmt);
@@ -5945,7 +5945,7 @@ go_format_output_fraction_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
gsf_xml_out_start_element (xout, NUMBER "fraction");
odf_add_bool (xout, NUMBER "grouping", FALSE);
gsf_xml_out_add_int (xout, NUMBER "min-denominator-digits", 3);
- gsf_xml_out_add_int (xout, NUMBER "min-integer-digits",
+ gsf_xml_out_add_int (xout, NUMBER "min-integer-digits",
int_digits > 0 ? int_digits : 0);
gsf_xml_out_add_int (xout, NUMBER "min-numerator-digits", 1);
gsf_xml_out_end_element (xout); /* </number:fraction> */
@@ -5953,8 +5953,8 @@ go_format_output_fraction_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
gsf_xml_out_end_element (xout); /* </number:number-style> */
g_string_free (accum, TRUE);
return;
-
- case '0':
+
+ case '0':
zeroes = 1;
/* fall through */
case '#': case '?': {
@@ -5962,7 +5962,7 @@ go_format_output_fraction_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
if (fraction_completed) {
zeroes = 0;
break;
- }
+ }
ODF_CLOSE_STRING;
/* ODF allows only for a single fraction specification */
fraction_in_progress = TRUE;
@@ -6000,23 +6000,23 @@ go_format_output_fraction_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
gsf_xml_out_start_element (xout, NUMBER "fraction");
odf_add_bool (xout, NUMBER "grouping", FALSE);
if ((fixed_denominator > 0) && (digits == i)) {
- gsf_xml_out_add_int (xout, NUMBER "denominator-value",
+ gsf_xml_out_add_int (xout, NUMBER "denominator-value",
fixed_denominator);
gsf_xml_out_add_int (xout, NUMBER "min-denominator-digits", digits);
- } else
+ } else
gsf_xml_out_add_int (xout, NUMBER "min-denominator-digits", zeroes);
if (with_extension)
gsf_xml_out_add_int (xout, GNMSTYLE "max-denominator-digits", i);
-
+
if (int_digits >= 0)
gsf_xml_out_add_int (xout, NUMBER "min-integer-digits", int_digits);
else {
gsf_xml_out_add_int (xout, NUMBER "min-integer-digits", 0);
if (with_extension)
- gsf_xml_out_add_cstr_unchecked
+ gsf_xml_out_add_cstr_unchecked
(xout, GNMSTYLE "no-integer-part", "true");
}
- gsf_xml_out_add_int (xout, NUMBER "min-numerator-digits",
+ gsf_xml_out_add_int (xout, NUMBER "min-numerator-digits",
min_numerator_digits);
gsf_xml_out_end_element (xout); /* </number:fraction> */
fraction_completed = TRUE;
@@ -6032,8 +6032,8 @@ go_format_output_fraction_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
if (go_format_parse_color (token, &color, NULL, NULL, FALSE)) {
ODF_CLOSE_STRING;
gsf_xml_out_start_element (xout, STYLE "text-properties");
- str = g_strdup_printf ("#%.2X%.2X%.2X",
- GO_COLOR_UINT_R (color), GO_COLOR_UINT_G (color),
+ str = g_strdup_printf ("#%.2X%.2X%.2X",
+ GO_COLOR_UINT_R (color), GO_COLOR_UINT_G (color),
GO_COLOR_UINT_B (color));
gsf_xml_out_add_cstr_unchecked (xout, FOSTYLE "color", str);
g_free (str);
@@ -6045,7 +6045,7 @@ go_format_output_fraction_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
case 'd': case 'D':
case 'y': case 'Y':
case 'b': case 'B':
- case 'e':
+ case 'e':
case 'g': case 'G':
case 'h': case 'H':
case 'm': case 'M':
@@ -6071,7 +6071,7 @@ go_format_output_fraction_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
}
break;
}
-
+
case TOK_CHAR: {
size_t len = g_utf8_next_char(token) - (token);
if (len > 0) {
@@ -6144,7 +6144,7 @@ go_format_output_number_element_to_odf (GsfXMLOut *xout,
}
static void
-go_format_output_number_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
+go_format_output_number_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
GOFormatFamily family,
char const *name, int cond_part)
{
@@ -6189,7 +6189,7 @@ go_format_output_number_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
gsf_xml_out_end_element (xout); /* </number:number-style> */
g_string_free (accum, TRUE);
return;
-
+
case TOK_DECIMAL:
if (number_completed) break;
/* ODF allows only for a single number specification */
@@ -6217,7 +6217,7 @@ go_format_output_number_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
min_integer_digits++;
break;
- case '#':
+ case '#':
case '?':
if (number_completed) break;
/* ODF allows only for a single number specification */
@@ -6234,8 +6234,8 @@ go_format_output_number_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
ODF_CLOSE_STRING;
ODF_WRITE_NUMBER;
gsf_xml_out_start_element (xout, STYLE "text-properties");
- str = g_strdup_printf ("#%.2X%.2X%.2X",
- GO_COLOR_UINT_R (color), GO_COLOR_UINT_G (color),
+ str = g_strdup_printf ("#%.2X%.2X%.2X",
+ GO_COLOR_UINT_R (color), GO_COLOR_UINT_G (color),
GO_COLOR_UINT_B (color));
gsf_xml_out_add_cstr_unchecked (xout, FOSTYLE "color", str);
g_free (str);
@@ -6244,7 +6244,7 @@ go_format_output_number_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
}
} break;
- case '$':
+ case '$':
ODF_WRITE_NUMBER;
if (family == GO_FORMAT_CURRENCY) {
ODF_CLOSE_STRING;
@@ -6283,19 +6283,19 @@ go_format_output_number_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
}
break;
}
-
+
case TOK_CHAR: {
size_t len = g_utf8_next_char(token) - (token);
if (len > 0) {
gunichar uc;
ODF_WRITE_NUMBER;
- if ((family == GO_FORMAT_CURRENCY) &&
- ((uc = g_utf8_get_char (token)) == UNICODE_POUNDS1
- || uc == UNICODE_POUNDS2 || uc == UNICODE_YEN
+ if ((family == GO_FORMAT_CURRENCY) &&
+ ((uc = g_utf8_get_char (token)) == UNICODE_POUNDS1
+ || uc == UNICODE_POUNDS2 || uc == UNICODE_YEN
|| uc == UNICODE_YEN_WIDE || uc == UNICODE_EURO)) {
char *str;
ODF_CLOSE_STRING;
- str = g_strndup (token, len);
+ str = g_strndup (token, len);
gsf_xml_out_simple_element(xout, NUMBER "currency-symbol", str);
g_free (str);
} else {
@@ -6318,7 +6318,7 @@ go_format_output_number_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
if (len > 0) {
char *str;
ODF_CLOSE_STRING;
- str = g_strndup (token, len);
+ str = g_strndup (token, len);
gsf_xml_out_simple_element(xout, NUMBER "currency-symbol", str);
g_free (str);
}
@@ -6382,8 +6382,8 @@ go_format_output_scientific_number_element_to_odf (GsfXMLOut *xout,
}
static void
-go_format_output_scientific_number_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
- char const *name,
+go_format_output_scientific_number_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
+ char const *name,
gboolean with_extension)
{
char const *xl = go_format_as_XL (fmt);
@@ -6415,7 +6415,7 @@ go_format_output_scientific_number_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
gsf_xml_out_end_element (xout); /* </number:number-style> */
g_string_free (accum, TRUE);
return;
-
+
case TOK_DECIMAL:
if (number_completed) break;
/* ODF allows only for a single number specification */
@@ -6450,7 +6450,7 @@ go_format_output_scientific_number_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
number_seen = TRUE;
break;
- case '#':
+ case '#':
if (number_completed) break;
/* ODF allows only for a single number specification */
ODF_CLOSE_STRING;
@@ -6468,7 +6468,7 @@ go_format_output_scientific_number_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
min_exponent_digits++;
go_format_output_scientific_number_element_to_odf
(xout, min_integer_digits, min_decimal_digits,
- min_exponent_digits, comma_seen,
+ min_exponent_digits, comma_seen,
with_extension && hashes > 0 && (hashes + min_integer_digits == 3));
number_completed = TRUE;
break;
@@ -6481,8 +6481,8 @@ go_format_output_scientific_number_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
if (go_format_parse_color (token, &color, NULL, NULL, FALSE)) {
ODF_CLOSE_STRING;
gsf_xml_out_start_element (xout, STYLE "text-properties");
- str = g_strdup_printf ("#%.2X%.2X%.2X",
- GO_COLOR_UINT_R (color), GO_COLOR_UINT_G (color),
+ str = g_strdup_printf ("#%.2X%.2X%.2X",
+ GO_COLOR_UINT_R (color), GO_COLOR_UINT_G (color),
GO_COLOR_UINT_B (color));
gsf_xml_out_add_cstr_unchecked (xout, FOSTYLE "color", str);
g_free (str);
@@ -6520,7 +6520,7 @@ go_format_output_scientific_number_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
}
break;
}
-
+
case TOK_CHAR: {
size_t len = g_utf8_next_char(token) - (token);
if (len > 0) {
@@ -6575,7 +6575,7 @@ go_format_output_general_to_odf (GsfXMLOut *xout, char const *name, int cond_par
#ifdef DEFINE_COMMON
gboolean
go_format_output_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
- int cond_part, char const *name,
+ int cond_part, char const *name,
gboolean with_extension)
{
gboolean pp = TRUE, result = TRUE;
@@ -6652,7 +6652,7 @@ go_format_output_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
str++;
}
if (digit < date)
- go_format_output_date_to_odf (xout, act_fmt, name,
+ go_format_output_date_to_odf (xout, act_fmt, name,
GO_FORMAT_DATE, with_extension);
else
go_format_output_general_to_odf (xout, name, cond_part);
diff --git a/goffice/utils/go-format.h b/goffice/utils/go-format.h
index 9f93e5e..37d27e6 100644
--- a/goffice/utils/go-format.h
+++ b/goffice/utils/go-format.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-format.h :
+ * go-format.h :
*
* Copyright (C) 2003-2005 Jody Goldberg (jody gnome org)
*
@@ -220,7 +220,7 @@ GOFormat *go_format_toggle_1000sep (GOFormat const *fmt);
/******************* GOFormat ODF Support ********************************/
char *go_format_odf_style_map (GOFormat const *fmt, int cond_part);
-gboolean go_format_output_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
+gboolean go_format_output_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
int cond_part, char const *name,
gboolean with_extension);
diff --git a/goffice/utils/go-geometry.c b/goffice/utils/go-geometry.c
index 784b7f5..1f1239a 100644
--- a/goffice/utils/go-geometry.c
+++ b/goffice/utils/go-geometry.c
@@ -34,7 +34,7 @@
* @theta: polar coordinate
*
* Converts cartesion coordinates to polar coordinates.
- *
+ *
**/
void
go_geometry_cartesian_to_polar (double x, double y, double *rho, double *theta)
@@ -49,7 +49,7 @@ go_geometry_cartesian_to_polar (double x, double y, double *rho, double *theta)
* @yp: point coordinate
* @xs: segment start coordinate
* @ys: segment start coordinate
- * @w: extent of segment
+ * @w: extent of segment
* @h: extent of segment
*
* Returns: the distance between a point and a segment.
@@ -78,7 +78,7 @@ go_geometry_point_to_segment (double xp, double yp, double xs, double ys, double
*
* Computes the Axis Aligned Bounding Rectangle of aabr0 and aabr1,
* and stores result in aabr0.
- *
+ *
**/
void
go_geometry_AABR_add (GOGeometryAABR *aabr0, GOGeometryAABR const *aabr1)
@@ -89,7 +89,7 @@ go_geometry_AABR_add (GOGeometryAABR *aabr0, GOGeometryAABR const *aabr1)
max = MAX (aabr0->x + aabr0->w, aabr1->x + aabr1->w);
aabr0->x = min;
aabr0->w = max - min;
-
+
min = MIN (aabr0->y, aabr1->y);
max = MAX (aabr0->y + aabr0->h, aabr1->y + aabr1->h);
aabr0->y = min;
@@ -100,9 +100,9 @@ go_geometry_AABR_add (GOGeometryAABR *aabr0, GOGeometryAABR const *aabr1)
* go_geometry_OBR_to_AABR:
* @obr: a #GOGeometryOBR
* @aabr: a #GOGeometryAABR
- *
+ *
* Stores Axis Aligned Bouding Rectangle of @obr in @aabr.
- *
+ *
**/
void
go_geometry_OBR_to_AABR (GOGeometryOBR const *obr, GOGeometryAABR *aabr)
@@ -116,13 +116,13 @@ go_geometry_OBR_to_AABR (GOGeometryOBR const *obr, GOGeometryAABR *aabr)
aabr->y = obr->y - aabr->h / 2.0 ;
}
-/**
+/**
* go_geometry_test_OBR_overlap:
* @obr0: a #GOGeometryOBR
* @obr1: a #GOGeometryOBR
- *
+ *
* Overlap test of Oriented Bounding Rectangles by the separating axis method.
- *
+ *
* return value: %TRUE if OOBRs overlap
**/
gboolean
@@ -136,7 +136,7 @@ go_geometry_test_OBR_overlap (GOGeometryOBR const *obr0, GOGeometryOBR const *ob
cos_delta = fabs (cos (obr1->alpha - obr0->alpha));
sin_delta = fabs (sin (obr1->alpha - obr0->alpha));
- go_geometry_cartesian_to_polar (obr1->x - obr0->x,
+ go_geometry_cartesian_to_polar (obr1->x - obr0->x,
obr1->y - obr0->y,
&delta, &alpha);
@@ -150,7 +150,7 @@ go_geometry_test_OBR_overlap (GOGeometryOBR const *obr0, GOGeometryOBR const *ob
pa = a00;
pb = a10 * cos_delta + a11 * sin_delta;
if (TL > pa + pb) return FALSE;
-
+
/* Separating axis parallel to obr->h */
TL = fabs (delta * sin (alpha - obr0->alpha));
pa = a01;
@@ -168,11 +168,11 @@ go_geometry_test_OBR_overlap (GOGeometryOBR const *obr0, GOGeometryOBR const *ob
pa = a00 * sin_delta + a01 * cos_delta;
pb = a11;
if (TL > pa + pb) return FALSE;
-
+
return TRUE;
}
-/**
+/**
* go_geometry_get_rotation_type:
* @alpha: angle in radians
*
@@ -180,14 +180,14 @@ go_geometry_test_OBR_overlap (GOGeometryOBR const *obr0, GOGeometryOBR const *ob
*
* Returns: a #GOGeometryRotationType
**/
-GOGeometryRotationType
-go_geometry_get_rotation_type (double alpha)
+GOGeometryRotationType
+go_geometry_get_rotation_type (double alpha)
{
unsigned index;
if (alpha < 0 || alpha > 2 * M_PI)
alpha = alpha - 2 * M_PI * floor (alpha / (2 * M_PI));
-
+
if (fmod(alpha + GO_GEOMETRY_ANGLE_TOLERANCE, M_PI / 2.0) > 2 * GO_GEOMETRY_ANGLE_TOLERANCE)
return GO_ROTATE_FREE;
index = go_rint (2.0 * alpha / M_PI);
@@ -220,12 +220,12 @@ go_geometry_calc_label_anchor (GOGeometryOBR *obr, double alpha)
* @side: side of label with respect to axis
* @anchor: where to anchor the label
*
- * Convenience routine that computes position of a label relative to an axis.
+ * Convenience routine that computes position of a label relative to an axis.
*
- * Returns: the computed anchor if @anchor == GO_SIDE_AUTO, or @anchor value.
+ * Returns: the computed anchor if @anchor == GO_SIDE_AUTO, or @anchor value.
**/
GOGeometrySide
-go_geometry_calc_label_position (GOGeometryOBR *obr, double alpha, double offset,
+go_geometry_calc_label_position (GOGeometryOBR *obr, double alpha, double offset,
GOGeometrySide side, GOGeometrySide anchor)
{
double dt, ds;
@@ -261,10 +261,10 @@ go_geometry_calc_label_position (GOGeometryOBR *obr, double alpha, double offset
}
}
obr->x += offset * sin (alpha);
- obr->y += offset * -cos (alpha);
+ obr->y += offset * -cos (alpha);
return anchor;
-}
+}
/**
* go_direction_is_horizontal :
diff --git a/goffice/utils/go-geometry.h b/goffice/utils/go-geometry.h
index 425805a..3a44490 100644
--- a/goffice/utils/go-geometry.h
+++ b/goffice/utils/go-geometry.h
@@ -39,7 +39,7 @@ typedef enum {
} GOGeometrySide;
typedef enum {
- GO_DIRECTION_UP = 0,
+ GO_DIRECTION_UP = 0,
GO_DIRECTION_DOWN = 1,
GO_DIRECTION_LEFT = 2,
GO_DIRECTION_RIGHT = 3,
@@ -50,7 +50,7 @@ typedef enum {
GO_ROTATE_NONE = 0,
GO_ROTATE_COUNTERCLOCKWISE = 1,
GO_ROTATE_UPSIDEDOWN = 2,
- GO_ROTATE_CLOCKWISE = 3,
+ GO_ROTATE_CLOCKWISE = 3,
GO_ROTATE_FREE = 4
} GOGeometryRotationType;
diff --git a/goffice/utils/go-glib-extras.c b/goffice/utils/go-glib-extras.c
index 3ba2edc..c06f0d3 100644
--- a/goffice/utils/go-glib-extras.c
+++ b/goffice/utils/go-glib-extras.c
@@ -994,7 +994,7 @@ go_parse_key_value (const char *options,
g_unichar_isalnum (g_utf8_get_char (options)))
options = g_utf8_next_char (options);
g_string_append_len (sname, p, options - p);
- if (p == options)
+ if (p == options)
goto syntax;
}
diff --git a/goffice/utils/go-gradient.h b/goffice/utils/go-gradient.h
index 355b43a..f996f5b 100644
--- a/goffice/utils/go-gradient.h
+++ b/goffice/utils/go-gradient.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-gradient.h :
+ * go-gradient.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/utils/go-image.c b/goffice/utils/go-image.c
index 187d1a7..11f5398 100644
--- a/goffice/utils/go-image.c
+++ b/goffice/utils/go-image.c
@@ -98,7 +98,7 @@ go_image_format_to_mime (char const *format)
"eps", "image/x-eps",
#endif
};
-
+
if (format == NULL)
return NULL;
@@ -129,25 +129,25 @@ go_image_format_to_mime (char const *format)
}
static GOImageFormatInfo const image_format_infos[GO_IMAGE_FORMAT_UNKNOWN] = {
- {GO_IMAGE_FORMAT_SVG, (char *) "svg", (char *) N_("SVG (vector graphics)"),
+ {GO_IMAGE_FORMAT_SVG, (char *) "svg", (char *) N_("SVG (vector graphics)"),
(char *) "svg", FALSE, FALSE, TRUE},
- {GO_IMAGE_FORMAT_PNG, (char *) "png", (char *) N_("PNG (raster graphics)"),
+ {GO_IMAGE_FORMAT_PNG, (char *) "png", (char *) N_("PNG (raster graphics)"),
(char *) "png", TRUE, TRUE, TRUE},
- {GO_IMAGE_FORMAT_JPG, (char *) "jpeg", (char *) N_("JPEG (photograph)"),
+ {GO_IMAGE_FORMAT_JPG, (char *) "jpeg", (char *) N_("JPEG (photograph)"),
(char *) "jpg", TRUE, TRUE, FALSE},
- {GO_IMAGE_FORMAT_PDF, (char *) "pdf", (char *) N_("PDF (portable document format)"),
+ {GO_IMAGE_FORMAT_PDF, (char *) "pdf", (char *) N_("PDF (portable document format)"),
(char *) "pdf", FALSE, FALSE, TRUE},
- {GO_IMAGE_FORMAT_PS, (char *) "ps", (char *) N_("PS (postscript)"),
+ {GO_IMAGE_FORMAT_PS, (char *) "ps", (char *) N_("PS (postscript)"),
(char *) "ps", FALSE, TRUE, TRUE},
{GO_IMAGE_FORMAT_EMF, (char *) "emf", (char *) N_("EMF (extended metafile)"),
(char *) "emf", FALSE, FALSE, TRUE},
- {GO_IMAGE_FORMAT_WMF, (char *) "wmf", (char *) N_("WMF (windows metafile)"),
+ {GO_IMAGE_FORMAT_WMF, (char *) "wmf", (char *) N_("WMF (windows metafile)"),
(char *) "wmf", FALSE, FALSE, TRUE},
#ifdef HAVE_CAIRO_PS_SURFACE_SET_EPS
- {GO_IMAGE_FORMAT_EPS, (char *) "eps", (char *) N_("EPS (encapsulated postscript)"),
+ {GO_IMAGE_FORMAT_EPS, (char *) "eps", (char *) N_("EPS (encapsulated postscript)"),
(char *) "eps", FALSE, TRUE, TRUE},
#else
- {GO_IMAGE_FORMAT_EPS, (char *) "", (char *) "",
+ {GO_IMAGE_FORMAT_EPS, (char *) "", (char *) "",
(char *) "", FALSE, FALSE, FALSE},
#endif
};
@@ -164,17 +164,17 @@ go_image_build_pixbuf_format_infos (void)
if (pixbuf_format_done)
return;
-
+
pixbuf_fmts = gdk_pixbuf_get_formats ();
pixbuf_format_nbr = g_slist_length (pixbuf_fmts);
-
+
if (pixbuf_format_nbr > 0) {
pixbuf_image_format_infos = g_new (GOImageFormatInfo, pixbuf_format_nbr);
- pixbuf_mimes = g_hash_table_new_full
+ pixbuf_mimes = g_hash_table_new_full
(g_str_hash, g_str_equal, g_free, g_free);
- for (l = pixbuf_fmts, i = 1, format_info = pixbuf_image_format_infos;
- l != NULL;
+ for (l = pixbuf_fmts, i = 1, format_info = pixbuf_image_format_infos;
+ l != NULL;
l = l->next, i++, format_info++) {
fmt = (GdkPixbufFormat *)l->data;
@@ -193,7 +193,7 @@ go_image_build_pixbuf_format_infos (void)
mimes = gdk_pixbuf_format_get_mime_types (fmt);
for (j = 0; mimes[j]; j++) {
g_hash_table_insert
- (pixbuf_mimes,
+ (pixbuf_mimes,
g_strdup((gpointer) mimes[j]),
g_strdup((gpointer) format_info->name));
}
@@ -211,7 +211,7 @@ go_image_build_pixbuf_format_infos (void)
* @format: a #GOImageFormat
*
* Retrieves infromation associated to @format.
- *
+ *
* returns: a #GOImageFormatInfo struct.
**/
@@ -220,11 +220,11 @@ go_image_get_format_info (GOImageFormat format)
{
if (format > GO_IMAGE_FORMAT_UNKNOWN)
go_image_build_pixbuf_format_infos ();
-
- g_return_val_if_fail (format >= 0 &&
+
+ g_return_val_if_fail (format >= 0 &&
format != GO_IMAGE_FORMAT_UNKNOWN &&
format <= GO_IMAGE_FORMAT_UNKNOWN + pixbuf_format_nbr, NULL);
- if (format < GO_IMAGE_FORMAT_UNKNOWN)
+ if (format < GO_IMAGE_FORMAT_UNKNOWN)
return &image_format_infos[format];
return &pixbuf_image_format_infos[format - PIXBUF_IMAGE_FORMAT_OFFSET];
@@ -237,13 +237,13 @@ go_image_get_format_info (GOImageFormat format)
* returns: corresponding #GOImageFormat.
**/
-GOImageFormat
+GOImageFormat
go_image_get_format_from_name (char const *name)
{
unsigned i;
go_image_build_pixbuf_format_infos ();
-
+
for (i = 0; i < GO_IMAGE_FORMAT_UNKNOWN; i++) {
if (strcmp (name, image_format_infos[i].name) == 0)
return image_format_infos[i].format;
@@ -270,12 +270,12 @@ go_image_get_formats_with_pixbuf_saver (void)
GSList *list = NULL;
unsigned i;
- for (i = 0; i < GO_IMAGE_FORMAT_UNKNOWN; i++)
+ for (i = 0; i < GO_IMAGE_FORMAT_UNKNOWN; i++)
if (image_format_infos[i].has_pixbuf_saver)
list = g_slist_prepend (list, GUINT_TO_POINTER (i));
/* TODO: before enabling this code, we must remove duplicate in pixbuf_image_format_infos */
-#if 0
+#if 0
go_image_build_pixbuf_format_infos ();
for (i = 0; i < pixbuf_format_nbr; i++) {
@@ -508,7 +508,7 @@ go_image_get_cairo (GOImage *image)
surface = cairo_image_surface_create_for_data (
image->data,
CAIRO_FORMAT_ARGB32,
- image->width, image->height,
+ image->width, image->height,
image->rowstride);
cairo = cairo_create (surface);
cairo_surface_destroy (surface);
@@ -535,7 +535,7 @@ cairo_pattern_t *go_image_create_cairo_pattern (GOImage *image)
surface = cairo_image_surface_create_for_data (
image->data,
CAIRO_FORMAT_ARGB32,
- image->width, image->height,
+ image->width, image->height,
image->rowstride);
pat = cairo_pattern_create_for_surface (surface);
cairo_surface_destroy (surface);
diff --git a/goffice/utils/go-image.h b/goffice/utils/go-image.h
index 8e17c2a..466109b 100644
--- a/goffice/utils/go-image.h
+++ b/goffice/utils/go-image.h
@@ -47,7 +47,7 @@ typedef struct {
char *desc;
char *ext;
gboolean has_pixbuf_saver;
- gboolean is_dpi_useful;
+ gboolean is_dpi_useful;
gboolean alpha_support;
} GOImageFormatInfo;
diff --git a/goffice/utils/go-libxml-extras.c b/goffice/utils/go-libxml-extras.c
index d881b71..74cbbc0 100644
--- a/goffice/utils/go-libxml-extras.c
+++ b/goffice/utils/go-libxml-extras.c
@@ -298,7 +298,7 @@ go_xml_get_child_by_name_by_lang (xmlNode const *parent, gchar const *name)
} else if (best_node == NULL)
best_node = node;
- if (best_lang_score == 0)
+ if (best_lang_score == 0)
return best_node;
}
diff --git a/goffice/utils/go-libxml-extras.h b/goffice/utils/go-libxml-extras.h
index c7a29af..fb1b4c7 100644
--- a/goffice/utils/go-libxml-extras.h
+++ b/goffice/utils/go-libxml-extras.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-libxml-extras.h :
+ * go-libxml-extras.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/utils/go-line.c b/goffice/utils/go-line.c
index 36d3632..9652af5 100644
--- a/goffice/utils/go-line.c
+++ b/goffice/utils/go-line.c
@@ -135,7 +135,7 @@ go_line_dash_from_str (char const *name)
* go_line_dash_as_str:
* @type: a #GOLineDashType
*
- * Returns: a pointer to the nickname of the dash type, or "none" if
+ * Returns: a pointer to the nickname of the dash type, or "none" if
* type is invalid. The returning string should not be freed.
**/
char const *
@@ -244,7 +244,7 @@ go_line_dash_sequence_free (GOLineDashSequence *sequence)
* go_line_interpolation_from_str:
* @name: an interpolation type nickname
*
- * Returns: a #GOLineInterpolation corresponding to @name, or
+ * Returns: a #GOLineInterpolation corresponding to @name, or
* %GO_LINE_INTERPOLATION_LINEAR if not found.
**/
GOLineInterpolation
diff --git a/goffice/utils/go-line.h b/goffice/utils/go-line.h
index 0a55a14..ac3aac1 100644
--- a/goffice/utils/go-line.h
+++ b/goffice/utils/go-line.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-line.h :
+ * go-line.h :
*
* Copyright (C) 2004-2006 Emmanuel Pacaud (emmanuel pacaud univ-poitiers fr)
*
diff --git a/goffice/utils/go-pango-extras.c b/goffice/utils/go-pango-extras.c
index 486fdda..9b6e677 100644
--- a/goffice/utils/go-pango-extras.c
+++ b/goffice/utils/go-pango-extras.c
@@ -134,7 +134,7 @@ go_pango_attr_list_erase (PangoAttrList *attrs, guint pos, guint len)
data.end_pos = pos + len;
data.len = len;
- gunk = pango_attr_list_filter (attrs,
+ gunk = pango_attr_list_filter (attrs,
(PangoAttrFilterFunc)cb_delete_filter,
&data);
if (gunk != NULL)
diff --git a/goffice/utils/go-path.c b/goffice/utils/go-path.c
index 99525d3..2e13fd0 100644
--- a/goffice/utils/go-path.c
+++ b/goffice/utils/go-path.c
@@ -5,7 +5,7 @@
* Copyright © 2002 University of Southern California
* Copyright © 2005 Red Hat, Inc.
* Copyright © 2006 Emmanuel Pacaud (emmanuel pacaud lapp in2p3 fr)
- *
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
* License as published by the Free Software Foundation.
@@ -21,7 +21,7 @@
* USA
*
* This code is an adaptation of the path code which can be found in
- * the cairo library (http://cairographics.org).
+ * the cairo library (http://cairographics.org).
*
* Contributor(s):
* Carl D. Worth <cworth cworth org>
diff --git a/goffice/utils/go-path.h b/goffice/utils/go-path.h
index f1661f4..ac676d9 100644
--- a/goffice/utils/go-path.h
+++ b/goffice/utils/go-path.h
@@ -5,7 +5,7 @@
* Copyright © 2002 University of Southern California
* Copyright © 2005 Red Hat, Inc.
* Copyright © 2006 Emmanuel Pacaud (emmanuel pacaud lapp in2p3 fr)
- *
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
* License as published by the Free Software Foundation.
@@ -21,7 +21,7 @@
* USA
*
* This code is an adaptation of the path code which can be found in
- * the cairo library (http://cairographics.org).
+ * the cairo library (http://cairographics.org).
*
* Contributor(s):
* Carl D. Worth <cworth cworth org>
@@ -69,12 +69,12 @@ GOPathOptions go_path_get_options (GOPath const *path);
void go_path_move_to (GOPath *path, double x, double y);
void go_path_line_to (GOPath *path, double x, double y);
-void go_path_curve_to (GOPath *path, double x0, double y0,
- double x1, double y1,
+void go_path_curve_to (GOPath *path, double x0, double y0,
+ double x1, double y1,
double x2, double y2);
void go_path_close (GOPath *path);
-void go_path_ring_wedge (GOPath *path, double cx, double cy,
+void go_path_ring_wedge (GOPath *path, double cx, double cy,
double rx_out, double ry_out,
double rx_in, double ry_in,
double th0, double th1);
@@ -102,4 +102,4 @@ void go_path_interpret (GOPath const *path,
G_END_DECLS
-#endif
+#endif
diff --git a/goffice/utils/go-pattern.c b/goffice/utils/go-pattern.c
index 3876b16..a6e5b54 100644
--- a/goffice/utils/go-pattern.c
+++ b/goffice/utils/go-pattern.c
@@ -93,7 +93,7 @@ go_pattern_as_str (GOPatternType pattern)
* go_pattern_is_solid :
* @pat : #GOPattern
* @color : #GOColor
- *
+ *
* Returns: if @pat is solid, and stores the color in @color.
* If @pat is not solid @color is not touched.
**/
@@ -179,7 +179,7 @@ go_pattern_get_svg_path (GOPattern const *pattern, double *width, double *height
name = xmlGetProp (ptr, CC2XML ("name"));
if (name != NULL) {
if (strcmp ((char *)name, go_patterns [pattern->pattern].str) == 0) {
- if (width != NULL &&
+ if (width != NULL &&
go_xml_node_get_double (ptr, "width", &value))
*width = value;
if (height != NULL &&
diff --git a/goffice/utils/go-pattern.h b/goffice/utils/go-pattern.h
index 567bdc1..1b85da2 100644
--- a/goffice/utils/go-pattern.h
+++ b/goffice/utils/go-pattern.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-pattern.h :
+ * go-pattern.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/utils/go-persist.h b/goffice/utils/go-persist.h
index 40d70dc..556d260 100644
--- a/goffice/utils/go-persist.h
+++ b/goffice/utils/go-persist.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-persist.h :
+ * go-persist.h :
*
* Copyright (C) 2003-2008 Jody Goldberg (jody gnome org)
*
@@ -48,7 +48,7 @@ GType go_persist_get_type (void);
gboolean go_persist_dom_load (GOPersist *gp, xmlNode *node);
void go_persist_sax_save (GOPersist const *gp, GsfXMLOut *output);
-void go_persist_prep_sax (GOPersist *gp,
+void go_persist_prep_sax (GOPersist *gp,
GsfXMLIn *xin, xmlChar const **attrs);
#define GO_PARAM_PERSISTENT (1 << (G_PARAM_USER_SHIFT+0))
diff --git a/goffice/utils/go-string.c b/goffice/utils/go-string.c
index 23af5b1..37b9d18 100644
--- a/goffice/utils/go-string.c
+++ b/goffice/utils/go-string.c
@@ -559,7 +559,7 @@ go_string_get_type (void)
/**
* go_string_get_len
**/
-guint32
+guint32
go_string_get_len (GOString const *gstr)
{
return GO_STRING_LEN(gstr);
@@ -600,7 +600,7 @@ go_string_get_phonetic (GOString const *gstr)
/**
* go_string_equal_ignorecase
**/
-gboolean
+gboolean
go_string_equal_ignorecase (gconstpointer gstr_a, gconstpointer gstr_b)
{
return (0 == go_string_cmp_ignorecase (gstr_a, gstr_b));
@@ -610,7 +610,7 @@ go_string_equal_ignorecase (gconstpointer gstr_a, gconstpointer gstr_b)
/**
* go_string_equal_ignorecase
**/
-gboolean
+gboolean
go_string_equal_rich (gconstpointer gstr_a, gconstpointer gstr_b)
{
/* TODO */
diff --git a/goffice/utils/go-style.c b/goffice/utils/go-style.c
index 88c7647..b1c6670 100644
--- a/goffice/utils/go-style.c
+++ b/goffice/utils/go-style.c
@@ -184,7 +184,7 @@ cb_outline_color_changed (GOSelector *selector,
g_return_if_fail (style != NULL);
- style->line.color = go_color_selector_get_color (selector,
+ style->line.color = go_color_selector_get_color (selector,
&style->line.auto_color);
set_style (state);
}
@@ -210,7 +210,7 @@ outline_init (StylePrefState *state, gboolean enable, GOEditor *editor)
w = go_line_dash_selector_new (style->line.dash_type,
default_style->line.dash_type);
gtk_table_attach (GTK_TABLE (table), w, 1, 3, 0, 1, GTK_FILL, GTK_FILL, 0, 0);
- g_signal_connect (G_OBJECT (w), "activate",
+ g_signal_connect (G_OBJECT (w), "activate",
G_CALLBACK (cb_outline_dash_type_changed), state);
/* Size */
w = go_gtk_builder_get_widget (state->gui, "outline_size_spin");
@@ -315,23 +315,23 @@ fill_update_selectors (StylePrefState const *state)
go_pattern_selector_set_colors (GO_SELECTOR (state->fill.pattern.selector),
style->fill.pattern.fore,
style->fill.pattern.back);
- go_gradient_selector_set_colors (GO_SELECTOR (state->fill.gradient.selector),
+ go_gradient_selector_set_colors (GO_SELECTOR (state->fill.gradient.selector),
style->fill.pattern.back,
style->fill.pattern.fore);
- g_signal_handlers_block_by_func (state->fill.background, cb_fill_background_color,
+ g_signal_handlers_block_by_func (state->fill.background, cb_fill_background_color,
(gpointer) state);
- g_signal_handlers_block_by_func (state->fill.foreground, cb_fill_background_color,
+ g_signal_handlers_block_by_func (state->fill.foreground, cb_fill_background_color,
(gpointer) state);
-
+
go_color_selector_set_color (GO_SELECTOR (state->fill.background),
style->fill.pattern.back);
go_color_selector_set_color (GO_SELECTOR (state->fill.foreground),
style->fill.pattern.fore);
-
- g_signal_handlers_unblock_by_func (state->fill.background, cb_fill_background_color,
+
+ g_signal_handlers_unblock_by_func (state->fill.background, cb_fill_background_color,
(gpointer) state);
- g_signal_handlers_unblock_by_func (state->fill.foreground, cb_fill_background_color,
+ g_signal_handlers_unblock_by_func (state->fill.foreground, cb_fill_background_color,
(gpointer) state);
}
@@ -354,8 +354,8 @@ fill_pattern_init (StylePrefState *state)
GOStyle *default_style = state->default_style;
GtkWidget *selector;
GtkWidget *label;
-
- state->fill.pattern.selector = selector =
+
+ state->fill.pattern.selector = selector =
go_pattern_selector_new (style->fill.pattern.pattern,
default_style->fill.pattern.pattern);
go_pattern_selector_set_colors (GO_SELECTOR (selector), style->fill.pattern.fore,
@@ -400,10 +400,10 @@ fill_gradient_init (StylePrefState *state)
GtkWidget *brightness;
GtkWidget *label;
- state->fill.gradient.selector = selector =
+ state->fill.gradient.selector = selector =
go_gradient_selector_new (style->fill.gradient.dir,
style->fill.gradient.dir);
- go_gradient_selector_set_colors (GO_SELECTOR (selector),
+ go_gradient_selector_set_colors (GO_SELECTOR (selector),
style->fill.pattern.back,
style->fill.pattern.fore);
label = go_gtk_builder_get_widget (state->gui, "fill_gradient_label");
@@ -418,7 +418,7 @@ fill_gradient_init (StylePrefState *state)
gtk_size_group_add_widget (state->fill.size_group, label);
gtk_label_set_mnemonic_widget (GTK_LABEL (label), brightness);
state->fill.gradient.brightness_box = go_gtk_builder_get_widget (state->gui, "fill_brightness_box");
-
+
g_signal_connect (selector, "activate",
G_CALLBACK (cb_gradient_type_changed), state);
g_signal_connect (brightness, "value_changed",
@@ -434,7 +434,7 @@ cb_fill_background_color (GOSelector *selector, StylePrefState *state)
{
GOStyle *style = state->style;
- style->fill.pattern.back = go_color_selector_get_color (selector,
+ style->fill.pattern.back = go_color_selector_get_color (selector,
&style->fill.auto_back);
set_style (state);
fill_update_selectors (state);
@@ -689,8 +689,8 @@ cb_marker_outline_color_changed (GOSelector *selector,
go_marker_set_outline_color (style->marker.mark, color);
style->marker.auto_outline_color = is_auto;
set_style (state);
-
- go_marker_selector_set_colors (GO_SELECTOR (state->marker.selector),
+
+ go_marker_selector_set_colors (GO_SELECTOR (state->marker.selector),
color,
go_marker_get_fill_color (style->marker.mark));
}
@@ -708,7 +708,7 @@ cb_marker_fill_color_changed (GOSelector *selector,
style->marker.auto_fill_color = is_auto;
set_style (state);
- go_marker_selector_set_colors (GO_SELECTOR (state->marker.selector),
+ go_marker_selector_set_colors (GO_SELECTOR (state->marker.selector),
go_marker_get_outline_color (style->marker.mark),
color);
}
@@ -740,20 +740,20 @@ marker_init (StylePrefState *state, gboolean enable, GOEditor *editor, GOCmdCont
table = go_gtk_builder_get_widget (gui, "marker_table");
- state->marker.selector = selector =
+ state->marker.selector = selector =
go_marker_selector_new (go_marker_get_shape (style->marker.mark),
go_marker_get_shape (state->default_style->marker.mark));
if ((style->interesting_fields & GO_STYLE_MARKER_NO_COLOR )== 0)
- go_marker_selector_set_colors (GO_SELECTOR (selector),
+ go_marker_selector_set_colors (GO_SELECTOR (selector),
go_marker_get_outline_color (style->marker.mark),
go_marker_get_fill_color (style->marker.mark));
else
- go_marker_selector_set_colors (GO_SELECTOR (selector),
+ go_marker_selector_set_colors (GO_SELECTOR (selector),
GO_COLOR_BLUE, GO_COLOR_BLUE);
w = go_gtk_builder_get_widget (gui, "marker_shape_label");
gtk_label_set_mnemonic_widget (GTK_LABEL (w), selector);
gtk_table_attach (GTK_TABLE (table), selector, 1, 2, 0, 1, GTK_FILL, GTK_FILL, 0, 0);
- g_signal_connect (G_OBJECT (selector), "activate",
+ g_signal_connect (G_OBJECT (selector), "activate",
G_CALLBACK (cb_marker_shape_changed), state);
gtk_widget_show (selector);
@@ -771,7 +771,7 @@ marker_init (StylePrefState *state, gboolean enable, GOEditor *editor, GOCmdCont
gtk_widget_set_sensitive (w, FALSE);
}
gtk_table_attach (GTK_TABLE (table), w, 1, 2, 1, 2, GTK_FILL, GTK_FILL, 0, 0);
-
+
if ((style->interesting_fields & GO_STYLE_MARKER_NO_COLOR ) == 0)
w = create_go_combo_color (state,
go_marker_get_outline_color (style->marker.mark),
@@ -831,7 +831,7 @@ cb_font_color_changed (GOSelector *selector,
StylePrefState *state)
{
GOStyle *style = state->style;
-
+
style->font.color = go_color_selector_get_color (selector, NULL);
set_style (state);
}
@@ -860,16 +860,16 @@ font_init (StylePrefState *state, guint32 enable, GOEditor *editor, GOCmdContext
box = go_gtk_builder_get_widget (gui, "color_box");
gtk_box_pack_start (GTK_BOX (box), w, TRUE, TRUE, 0);
gtk_widget_show (w);
-
+
w = go_font_sel_new ();
go_font_sel_set_font (GO_FONT_SEL (w), style->font.font);
- g_signal_connect (G_OBJECT (w), "font_changed",
+ g_signal_connect (G_OBJECT (w), "font_changed",
G_CALLBACK (cb_font_changed), state);
gtk_widget_show (w);
box = go_gtk_builder_get_widget (gui, "go_style_font_prefs");
gtk_box_pack_end (GTK_BOX (box), w, TRUE, TRUE, 0);
-
+
go_editor_add_page (editor, box, _("Font"));
}
@@ -1005,7 +1005,7 @@ go_style_get_editor (GOStyle *style,
GtkWidget *notebook;
GOEditor *editor = go_editor_new ();
- go_style_populate_editor (style, editor, default_style, cc,
+ go_style_populate_editor (style, editor, default_style, cc,
object_with_style, FALSE);
notebook = go_editor_get_notebook (editor);
@@ -1334,7 +1334,7 @@ go_style_gradient_sax_save (GsfXMLOut *output, GOStyle const *style)
if (style->fill.gradient.brightness >= 0.)
gsf_xml_out_add_float (output, "brightness",
style->fill.gradient.brightness, 6);
- else
+ else
go_xml_out_add_color (output, "end-color",
style->fill.pattern.fore);
gsf_xml_out_end_element (output);
@@ -1543,7 +1543,7 @@ go_style_marker_sax_save (GsfXMLOut *output, GOStyle const *style)
gsf_xml_out_add_bool (output, "auto-shape", style->marker.auto_shape);
gsf_xml_out_add_cstr (output, "shape",
go_marker_shape_as_str (go_marker_get_shape (style->marker.mark)));
- gsf_xml_out_add_bool (output, "auto-outline",
+ gsf_xml_out_add_bool (output, "auto-outline",
style->marker.auto_outline_color);
go_xml_out_add_color (output, "outline-color",
go_marker_get_outline_color (style->marker.mark));
@@ -1804,49 +1804,49 @@ static void
go_style_persist_prep_sax (GOPersist *gp, GsfXMLIn *xin, xmlChar const **attrs)
{
static GsfXMLInNode const dtd[] = {
- GSF_XML_IN_NODE (STYLE, STYLE,
- -1, "GogObject",
+ GSF_XML_IN_NODE (STYLE, STYLE,
+ -1, "GogObject",
FALSE, NULL, NULL),
- GSF_XML_IN_NODE_FULL (STYLE, STYLE_LINE,
- -1, "line",
- GSF_XML_NO_CONTENT, FALSE, FALSE,
+ GSF_XML_IN_NODE_FULL (STYLE, STYLE_LINE,
+ -1, "line",
+ GSF_XML_NO_CONTENT, FALSE, FALSE,
&go_style_sax_load_line, NULL, 0),
- GSF_XML_IN_NODE_FULL (STYLE, STYLE_OUTLINE,
- -1, "outline",
- GSF_XML_NO_CONTENT, FALSE, FALSE,
+ GSF_XML_IN_NODE_FULL (STYLE, STYLE_OUTLINE,
+ -1, "outline",
+ GSF_XML_NO_CONTENT, FALSE, FALSE,
&go_style_sax_load_line, NULL, 1),
- GSF_XML_IN_NODE (STYLE, STYLE_FILL,
- -1, "fill",
- GSF_XML_NO_CONTENT,
+ GSF_XML_IN_NODE (STYLE, STYLE_FILL,
+ -1, "fill",
+ GSF_XML_NO_CONTENT,
&go_style_sax_load_fill, NULL),
- GSF_XML_IN_NODE (STYLE_FILL, FILL_PATTERN,
- -1, "pattern",
- GSF_XML_NO_CONTENT,
+ GSF_XML_IN_NODE (STYLE_FILL, FILL_PATTERN,
+ -1, "pattern",
+ GSF_XML_NO_CONTENT,
&go_style_sax_load_fill_pattern, NULL),
- GSF_XML_IN_NODE (STYLE_FILL, FILL_GRADIENT,
- -1, "gradient",
- GSF_XML_NO_CONTENT,
+ GSF_XML_IN_NODE (STYLE_FILL, FILL_GRADIENT,
+ -1, "gradient",
+ GSF_XML_NO_CONTENT,
&go_style_sax_load_fill_gradient, NULL),
- GSF_XML_IN_NODE (STYLE_FILL, FILL_IMAGE,
- -1, "image",
- GSF_XML_NO_CONTENT,
+ GSF_XML_IN_NODE (STYLE_FILL, FILL_IMAGE,
+ -1, "image",
+ GSF_XML_NO_CONTENT,
&go_style_sax_load_fill_image, NULL),
- GSF_XML_IN_NODE (STYLE, STYLE_MARKER,
- -1, "marker",
- GSF_XML_NO_CONTENT,
+ GSF_XML_IN_NODE (STYLE, STYLE_MARKER,
+ -1, "marker",
+ GSF_XML_NO_CONTENT,
&go_style_sax_load_marker, NULL),
GSF_XML_IN_NODE (STYLE, STYLE_FONT,
- -1, "font",
- GSF_XML_NO_CONTENT,
+ -1, "font",
+ GSF_XML_NO_CONTENT,
&go_style_sax_load_font, NULL),
- GSF_XML_IN_NODE (STYLE, STYLE_ALIGNMENT,
- -1, "text_layout",
- GSF_XML_NO_CONTENT,
+ GSF_XML_IN_NODE (STYLE, STYLE_ALIGNMENT,
+ -1, "text_layout",
+ GSF_XML_NO_CONTENT,
&go_style_sax_load_text_layout, NULL),
GSF_XML_IN_NODE_END
};
static GsfXMLInDoc *doc = NULL;
-
+
if (NULL == doc)
doc = gsf_xml_in_doc_new (dtd, NULL);
gsf_xml_in_push_state (xin, doc, gp, NULL, attrs);
@@ -1893,7 +1893,7 @@ go_style_is_outline_visible (GOStyle const *style)
g_return_val_if_fail (GO_IS_STYLE (style), FALSE);
/* FIXME FIXME FIXME make this smarter */
- return GO_COLOR_UINT_A (style->line.color) > 0 &&
+ return GO_COLOR_UINT_A (style->line.color) > 0 &&
style->line.dash_type != GO_LINE_NONE;
}
@@ -1903,11 +1903,11 @@ go_style_is_line_visible (GOStyle const *style)
g_return_val_if_fail (GO_IS_STYLE (style), FALSE);
/* FIXME FIXME FIXME TODO : make this smarter */
- return GO_COLOR_UINT_A (style->line.color) > 0 &&
+ return GO_COLOR_UINT_A (style->line.color) > 0 &&
style->line.dash_type != GO_LINE_NONE;
}
-gboolean
+gboolean
go_style_is_fill_visible (const GOStyle *style)
{
g_return_val_if_fail (GO_IS_STYLE (style), FALSE);
@@ -1959,12 +1959,12 @@ go_style_set_marker (GOStyle *style, GOMarker *marker)
* go_style_get_marker :
* @style : #GOStyle
*
- * Accessor for @style::marker, without referencing it.
+ * Accessor for @style::marker, without referencing it.
*
* return value: the style #GOMarker.
**/
GOMarker const *
-go_style_get_marker (GOStyle *style)
+go_style_get_marker (GOStyle *style)
{
g_return_val_if_fail (GO_IS_STYLE (style), NULL);
diff --git a/goffice/utils/go-style.h b/goffice/utils/go-style.h
index 2166cf7..5a8b151 100644
--- a/goffice/utils/go-style.h
+++ b/goffice/utils/go-style.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-style.h :
+ * go-style.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
@@ -115,7 +115,7 @@ struct _GOStyle {
struct {
double angle;
gboolean auto_angle;
- } text_layout;
+ } text_layout;
};
GOStyle *go_style_new (void);
diff --git a/goffice/utils/go-styled-object.c b/goffice/utils/go-styled-object.c
index 4036c13..62422b6 100644
--- a/goffice/utils/go-styled-object.c
+++ b/goffice/utils/go-styled-object.c
@@ -1,11 +1,11 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-styled-object.c :
+ * go-styled-object.c :
*
* Copyright (C) 2009 JJean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
@@ -51,7 +51,7 @@ go_styled_object_get_type (void)
* does not take ownership of @style.
*
* return value: %TRUE if new style may lead to change of object size, which
- * happens when changing font size for example.
+ * happens when changing font size for example.
**/
gboolean
go_styled_object_set_style (GOStyledObject *gso, GOStyle *style)
@@ -67,7 +67,7 @@ go_styled_object_set_style (GOStyledObject *gso, GOStyle *style)
* @gso: a #GOStyledObject
*
* Simply an accessor function that returns @gso->style, without referencing it.
- *
+ *
* return value: the styled object's #GOStyle
**/
GOStyle*
@@ -118,7 +118,7 @@ go_styled_object_style_changed (GOStyledObject *gso)
* @gso: a #GOStyledObject
* @style: a #GOStyle that will be themed
*
- * Apply appropriate theme @style if meaningful, i.e. properties with
+ * Apply appropriate theme @style if meaningful, i.e. properties with
* auto flag set to %TRUE should be changed to default theme value.
*
**/
diff --git a/goffice/utils/go-styled-object.h b/goffice/utils/go-styled-object.h
index a8b75db..53fb62d 100644
--- a/goffice/utils/go-styled-object.h
+++ b/goffice/utils/go-styled-object.h
@@ -1,11 +1,11 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-styled-object.h :
+ * go-styled-object.h :
*
* Copyright (C) 2009 JJean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
diff --git a/goffice/utils/go-units.h b/goffice/utils/go-units.h
index 3e7ab3b..477bd8a 100644
--- a/goffice/utils/go-units.h
+++ b/goffice/utils/go-units.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-units.h :
+ * go-units.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
diff --git a/goffice/utils/goffice-utils.h b/goffice/utils/goffice-utils.h
index 2c8e00b..7dfcc66 100644
--- a/goffice/utils/goffice-utils.h
+++ b/goffice/utils/goffice-utils.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * goffice-utils.h:
+ * goffice-utils.h:
*
* Copyright (C) 2003-2004 Jody Goldberg (jody gnome org)
*
diff --git a/plugins/plot_barcol/gog-1.5d.c b/plugins/plot_barcol/gog-1.5d.c
index 5ecf6ca..88d0fab 100644
--- a/plugins/plot_barcol/gog-1.5d.c
+++ b/plugins/plot_barcol/gog-1.5d.c
@@ -124,7 +124,7 @@ gog_plot1_5d_get_property (GObject *obj, guint param_id,
case GOG_1_5D_PROP_IN_3D :
g_value_set_boolean (value, gog_1_5d->in_3d);
break;
-
+
default: G_OBJECT_WARN_INVALID_PROPERTY_ID (obj, param_id, pspec);
break;
}
@@ -214,8 +214,8 @@ gog_plot1_5d_update (GogObject *obj)
model->num_elements = num_elements;
model->implicit_index = (index_dim == NULL);
gog_axis_bound_changed (axis, GOG_OBJECT (model));
- } else {
- if (index_changed)
+ } else {
+ if (index_changed)
gog_axis_bound_changed (axis, GOG_OBJECT (model));
}
@@ -328,16 +328,16 @@ gog_plot1_5d_class_init (GogPlotClass *plot_klass)
gobject_klass->finalize = gog_plot1_5d_finalize;
g_object_class_install_property (gobject_klass, GOG_1_5D_PROP_TYPE,
- g_param_spec_string ("type",
+ g_param_spec_string ("type",
_("Type"),
_("How to group multiple series, normal, stacked, as_percentage"),
- "normal",
+ "normal",
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, GOG_1_5D_PROP_IN_3D,
- g_param_spec_boolean ("in-3d",
+ g_param_spec_boolean ("in-3d",
_("In 3d"),
_("Placeholder to allow us to round trip pseudo 3d state"),
- FALSE,
+ FALSE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
gog_klass->update = gog_plot1_5d_update;
@@ -555,7 +555,7 @@ gog_series1_5d_get_property (GObject *obj, guint param_id,
#ifdef GOFFICE_WITH_GTK
#include <gtk/gtk.h>
-static void
+static void
gog_series1_5d_populate_editor (GogObject *obj,
GOEditor *editor,
GogDataAllocator *dalloc,
@@ -637,10 +637,10 @@ gog_series1_5d_class_init (GogObjectClass *obj_klass)
gog_object_register_roles (obj_klass, roles, G_N_ELEMENTS (roles));
g_object_class_install_property (gobject_klass, SERIES_PROP_ERRORS,
- g_param_spec_object ("errors",
+ g_param_spec_object ("errors",
_("Error bars"),
_("GogErrorBar *"),
- GOG_TYPE_ERROR_BAR,
+ GOG_TYPE_ERROR_BAR,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
}
diff --git a/plugins/plot_barcol/gog-1.5d.h b/plugins/plot_barcol/gog-1.5d.h
index d6982a5..754ed4e 100644
--- a/plugins/plot_barcol/gog-1.5d.h
+++ b/plugins/plot_barcol/gog-1.5d.h
@@ -76,7 +76,7 @@ GogAxis * gog_plot1_5d_get_index_axis (GogPlot1_5d *model);
typedef struct {
GogSeries base;
GogErrorBar *errors;
- gboolean index_changed;
+ gboolean index_changed;
unsigned int has_series_lines : 1;
unsigned int has_drop_lines : 1;
unsigned int has_lines : 1;
diff --git a/plugins/plot_barcol/gog-barcol.c b/plugins/plot_barcol/gog-barcol.c
index f5626c3..7e385c9 100644
--- a/plugins/plot_barcol/gog-barcol.c
+++ b/plugins/plot_barcol/gog-barcol.c
@@ -214,8 +214,8 @@ gog_barcol_axis_get_bounds (GogPlot *plot, GogAxisType axis,
GogPlot1_5dClass *plot1_5d_klass = GOG_PLOT1_5D_CLASS (gog_barcol_parent_klass);
GOData *data;
- data = (plot1_5d_klass->base.axis_get_bounds) (plot, axis, bounds);
-
+ data = (plot1_5d_klass->base.axis_get_bounds) (plot, axis, bounds);
+
if (axis == gog_axis_get_atype (gog_plot1_5d_get_index_axis (model))) {
bounds->val.minima -= .5;
bounds->val.maxima += .5;
@@ -238,19 +238,19 @@ gog_barcol_plot_class_init (GogPlot1_5dClass *gog_plot_1_5d_klass)
gobject_klass->get_property = gog_barcol_plot_get_property;
g_object_class_install_property (gobject_klass, BARCOL_PROP_GAP_PERCENTAGE,
- g_param_spec_int ("gap-percentage",
+ g_param_spec_int ("gap-percentage",
_("Gap percentage"),
_("The padding around each group as a percentage of their width"),
- 0, 500, 150,
+ 0, 500, 150,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, BARCOL_PROP_OVERLAP_PERCENTAGE,
- g_param_spec_int ("overlap-percentage",
+ g_param_spec_int ("overlap-percentage",
_("Overlap percentage"),
_("The distance between series as a percentage of their width"),
- -100, 100, 0,
+ -100, 100, 0,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, BARCOL_PROP_HORIZONTAL,
- g_param_spec_boolean ("horizontal",
+ g_param_spec_boolean ("horizontal",
_("horizontal"),
_("horizontal bars or vertical columns"),
FALSE,
@@ -385,15 +385,15 @@ gog_barcol_view_render (GogView *view, GogViewAllocation const *bbox)
return;
area = gog_chart_view_get_plot_area (view->parent);
- chart_map = gog_chart_map_new (chart, area,
- GOG_PLOT (model)->axis[GOG_AXIS_X],
+ chart_map = gog_chart_map_new (chart, area,
+ GOG_PLOT (model)->axis[GOG_AXIS_X],
GOG_PLOT (model)->axis[GOG_AXIS_Y],
NULL, FALSE);
if (!gog_chart_map_is_valid (chart_map)) {
gog_chart_map_free (chart_map);
return;
}
-
+
x_map = gog_chart_map_get_axis_map (chart_map, 0);
y_map = gog_chart_map_get_axis_map (chart_map, 1);
@@ -439,7 +439,7 @@ gog_barcol_view_render (GogView *view, GogViewAllocation const *bbox)
group_step = model->gap_percentage / 100.;
work.h = 1.0 / (1. + ((num_series - 1.0) * col_step) + group_step);
col_step *= work.h;
- offset = (col_step * (num_series - 1.0) + work.h) / 2.0;
+ offset = (col_step * (num_series - 1.0) + work.h) / 2.0;
data_scale = 1.0;
for (i = 0 ; i < num_elements ; i++) {
@@ -464,7 +464,7 @@ gog_barcol_view_render (GogView *view, GogViewAllocation const *bbox)
ptr = gog_1_5d_model->base.series;
for (j = 0 ; j < num_series ; j++) {
work.y = (double) j * col_step + (double) i - offset + 1.0;
-
+
if (i >= lengths[j])
continue;
tmp = vals[j][i];
@@ -500,7 +500,7 @@ gog_barcol_view_render (GogView *view, GogViewAllocation const *bbox)
gog_renderer_push_style (view->renderer, styles[j]);
barcol_draw_rect (rend, is_vertical, x_map, y_map, &work);
gog_renderer_pop_style (view->renderer);
-
+
if (valid && gog_error_bar_is_visible (errors[j])) {
x = tmp > 0 ? work.x + work.w: work.x;
error_data[j][i].plus = plus * data_scale;
diff --git a/plugins/plot_barcol/gog-dropbar.c b/plugins/plot_barcol/gog-dropbar.c
index 72c4fcf..d92822f 100644
--- a/plugins/plot_barcol/gog-dropbar.c
+++ b/plugins/plot_barcol/gog-dropbar.c
@@ -187,11 +187,11 @@ gog_dropbar_view_render (GogView *view, GogViewAllocation const *bbox)
if (num_elements <= 0 || num_series <= 0)
return;
- x_map = gog_axis_map_new (GOG_PLOT (model)->axis[0],
+ x_map = gog_axis_map_new (GOG_PLOT (model)->axis[0],
view->allocation.x, view->allocation.w);
- y_map = gog_axis_map_new (GOG_PLOT (model)->axis[1], view->allocation.y + view->allocation.h,
+ y_map = gog_axis_map_new (GOG_PLOT (model)->axis[1], view->allocation.y + view->allocation.h,
-view->allocation.h);
-
+
if (!(gog_axis_map_is_valid (x_map) &&
gog_axis_map_is_valid (y_map))) {
gog_axis_map_free (x_map);
@@ -209,7 +209,7 @@ gog_dropbar_view_render (GogView *view, GogViewAllocation const *bbox)
group_step = model->gap_percentage / 100.;
work.w = 1.0 / (1. + ((num_series - 1.0) * step) + group_step);
step *= work.w;
- offset = - (step * (num_series - 1.0) + work.w) / 2.0;
+ offset = - (step * (num_series - 1.0) + work.w) / 2.0;
for (ptr = gog_1_5d_model->base.series ; ptr != NULL ; ptr = ptr->next) {
diff --git a/plugins/plot_barcol/gog-line.c b/plugins/plot_barcol/gog-line.c
index 4d37749..de830c6 100644
--- a/plugins/plot_barcol/gog-line.c
+++ b/plugins/plot_barcol/gog-line.c
@@ -322,10 +322,10 @@ gog_line_plot_class_init (GogPlot1_5dClass *gog_plot_1_5d_klass)
gobject_klass->get_property = gog_line_get_property;
g_object_class_install_property (gobject_klass, GOG_LINE_PROP_DEFAULT_STYLE_HAS_MARKERS,
- g_param_spec_boolean ("default-style-has-markers",
+ g_param_spec_boolean ("default-style-has-markers",
_("Default markers"),
_("Should the default style of a series include markers"),
- TRUE,
+ TRUE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
gog_klass->type_name = gog_line_plot_type_name;
@@ -443,28 +443,28 @@ gog_line_view_render (GogView *view, GogViewAllocation const *bbox)
return;
area = gog_chart_view_get_plot_area (view->parent);
- chart_map = gog_chart_map_new (chart, area,
- GOG_PLOT (model)->axis[GOG_AXIS_X],
+ chart_map = gog_chart_map_new (chart, area,
+ GOG_PLOT (model)->axis[GOG_AXIS_X],
GOG_PLOT (model)->axis[GOG_AXIS_Y],
NULL, FALSE);
if (!gog_chart_map_is_valid (chart_map)) {
gog_chart_map_free (chart_map);
return;
}
-
+
x_map = gog_chart_map_get_axis_map (chart_map, 0);
y_map = gog_chart_map_get_axis_map (chart_map, 1);
-
+
/* Draw drop lines from point to axis start. See comment in
* GogXYPlotView::render */
- gog_axis_map_get_extents (y_map, &drop_lines_y_min, &drop_lines_y_max);
+ gog_axis_map_get_extents (y_map, &drop_lines_y_min, &drop_lines_y_max);
drop_lines_y_min = gog_axis_map_to_view (y_map, drop_lines_y_min);
drop_lines_y_max = gog_axis_map_to_view (y_map, drop_lines_y_max);
gog_axis_map_get_extents (y_map, &y_bottom, &y_top);
y_bottom = gog_axis_map_to_view (y_map, y_bottom);
y_top = gog_axis_map_to_view (y_map, y_top);
- y_zero = gog_axis_map_get_baseline (y_map);
+ y_zero = gog_axis_map_get_baseline (y_map);
vals = g_alloca (num_series * sizeof (double *));
error_data = g_alloca (num_series * sizeof (ErrorBarData *));
@@ -496,7 +496,7 @@ gog_line_view_render (GogView *view, GogViewAllocation const *bbox)
points[i] = g_malloc (sizeof (Point) * (lengths[i]));
errors[i] = series->errors;
- if (gog_error_bar_is_visible (series->errors))
+ if (gog_error_bar_is_visible (series->errors))
error_data[i] = g_malloc (sizeof (ErrorBarData) * lengths[i]);
else
error_data[i] = NULL;
@@ -544,7 +544,7 @@ gog_line_view_render (GogView *view, GogViewAllocation const *bbox)
x = gog_axis_map_to_view (x_map, j + 1);
sum += value;
- if (gog_error_bar_is_visible (errors[i]))
+ if (gog_error_bar_is_visible (errors[i]))
error_data[i][j].x = j + 1;
switch (type) {
@@ -581,7 +581,7 @@ gog_line_view_render (GogView *view, GogViewAllocation const *bbox)
break;
case GOG_1_5D_AS_PERCENTAGE :
- y = is_null ?
+ y = is_null ?
y_zero :
(gog_axis_map_finite (y_map, sum) ?
gog_axis_map_to_view (y_map, sum / abs_sum) :
@@ -597,7 +597,7 @@ gog_line_view_render (GogView *view, GogViewAllocation const *bbox)
go_path_line_to (paths[i], x, y);
break;
}
- if (!is_area_plot){
+ if (!is_area_plot){
points[i][j].x = x;
points[i][j].y = y;
}
@@ -679,13 +679,13 @@ gog_line_view_render (GogView *view, GogViewAllocation const *bbox)
for (j = 0; j < lengths[i]; j++)
gog_error_bar_render (errors[i], view->renderer, x_map, y_map,
error_data[i][j].x, error_data[i][j].y,
- error_data[i][j].minus, error_data[i][j].plus,
+ error_data[i][j].minus, error_data[i][j].plus,
FALSE);
gog_renderer_pop_clip (view->renderer);
/*Now draw markers*/
- if (!is_area_plot) {
+ if (!is_area_plot) {
double x_margin_min, x_margin_max, y_margin_min, y_margin_max, margin;
margin = gog_renderer_line_size (view->renderer, 1.0);
@@ -717,7 +717,7 @@ gog_line_view_render (GogView *view, GogViewAllocation const *bbox)
GO_STYLED_OBJECT (gse)));
}
if (x_margin_min <= x && x <= x_margin_max &&
- y_margin_min <= y && y <= y_margin_max)
+ y_margin_min <= y && y <= y_margin_max)
gog_renderer_draw_marker (view->renderer, x, y);
if (gse)
gog_renderer_pop_style (view->renderer);
diff --git a/plugins/plot_barcol/gog-minmax.c b/plugins/plot_barcol/gog-minmax.c
index b915932..7c33454 100644
--- a/plugins/plot_barcol/gog-minmax.c
+++ b/plugins/plot_barcol/gog-minmax.c
@@ -151,8 +151,8 @@ gog_minmax_axis_get_bounds (GogPlot *plot, GogAxisType axis,
GogPlot1_5dClass *plot1_5d_klass = GOG_PLOT1_5D_CLASS (gog_minmax_parent_klass);
GOData *data;
- data = (plot1_5d_klass->base.axis_get_bounds) (plot, axis, bounds);
-
+ data = (plot1_5d_klass->base.axis_get_bounds) (plot, axis, bounds);
+
if (axis == gog_axis_get_atype (gog_plot1_5d_get_index_axis (model))) {
bounds->val.minima -= .5;
bounds->val.maxima += .5;
@@ -219,22 +219,22 @@ gog_minmax_plot_class_init (GogPlot1_5dClass *gog_plot_1_5d_klass)
gobject_klass->get_property = gog_minmax_plot_get_property;
g_object_class_install_property (gobject_klass, MINMAX_PROP_GAP_PERCENTAGE,
- g_param_spec_int ("gap-percentage",
+ g_param_spec_int ("gap-percentage",
_("Gap percentage"),
_("The padding around each group as a percentage of their width"),
- 0, 500, 150,
+ 0, 500, 150,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, MINMAX_PROP_HORIZONTAL,
- g_param_spec_boolean ("horizontal",
+ g_param_spec_boolean ("horizontal",
_("Horizontal"),
_("Horizontal or vertical lines"),
FALSE,
G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, MINMAX_PROP_DEFAULT_STYLE_HAS_MARKERS,
- g_param_spec_boolean ("default-style-has-markers",
+ g_param_spec_boolean ("default-style-has-markers",
_("Default markers"),
_("Should the default style of a series include markers"),
- FALSE,
+ FALSE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
gog_object_klass->type_name = gog_minmax_plot_type_name;
@@ -325,11 +325,11 @@ gog_minmax_view_render (GogView *view, GogViewAllocation const *bbox)
if (num_elements <= 0 || num_series <= 0)
return;
- x_map = gog_axis_map_new (GOG_PLOT (model)->axis[0],
+ x_map = gog_axis_map_new (GOG_PLOT (model)->axis[0],
view->allocation.x, view->allocation.w);
- y_map = gog_axis_map_new (GOG_PLOT (model)->axis[1], view->allocation.y + view->allocation.h,
+ y_map = gog_axis_map_new (GOG_PLOT (model)->axis[1], view->allocation.y + view->allocation.h,
-view->allocation.h);
-
+
if (!(gog_axis_map_is_valid (x_map) &&
gog_axis_map_is_valid (y_map))) {
gog_axis_map_free (x_map);
diff --git a/plugins/plot_distrib/gog-boxplot.c b/plugins/plot_distrib/gog-boxplot.c
index e1d47cc..a779452 100644
--- a/plugins/plot_distrib/gog-boxplot.c
+++ b/plugins/plot_distrib/gog-boxplot.c
@@ -160,7 +160,7 @@ gog_box_plot_populate_editor (GogObject *item,
GtkWidget *w = gog_box_plot_pref (item, dalloc, cc);
go_editor_add_page (editor,w, _("Properties"));
g_object_unref (w);
-
+
(GOG_OBJECT_CLASS(gog_box_plot_parent_klass)->populate_editor) (item, editor, dalloc, cc);
}
#endif
@@ -356,28 +356,28 @@ gog_box_plot_class_init (GogPlotClass *gog_plot_klass)
gobject_klass->get_property = gog_box_plot_get_property;
gobject_klass->finalize = gog_box_plot_finalize;
g_object_class_install_property (gobject_klass, BOX_PLOT_PROP_GAP_PERCENTAGE,
- g_param_spec_int ("gap-percentage",
+ g_param_spec_int ("gap-percentage",
_("Gap percentage"),
_("The padding around each group as a percentage of their width"),
- 0, 500, 150,
+ 0, 500, 150,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, BOX_PLOT_PROP_VERTICAL,
- g_param_spec_boolean ("vertical",
+ g_param_spec_boolean ("vertical",
_("Vertical"),
_("Whether the box-plot should be vertical instead of horizontal"),
- FALSE,
+ FALSE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, BOX_PLOT_PROP_OUTLIERS,
- g_param_spec_boolean ("outliers",
+ g_param_spec_boolean ("outliers",
_("Outliers"),
_("Whether outliers should be taken into account and displayed"),
- FALSE,
+ FALSE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, BOX_PLOT_PROP_RADIUS_RATIO,
- g_param_spec_double ("radius-ratio",
+ g_param_spec_double ("radius-ratio",
_("Radius ratio"),
_("The ratio between the radius of the circles representing outliers and the rectangle width"),
- 0., 0.5, 0.125,
+ 0., 0.5, 0.125,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
gog_object_klass->type_name = gog_box_plot_type_name;
@@ -434,15 +434,15 @@ gog_box_plot_view_render (GogView *view, GogViewAllocation const *bbox)
int num_ser = 1;
area = gog_chart_view_get_plot_area (view->parent);
- chart_map = gog_chart_map_new (chart, area,
- GOG_PLOT (model)->axis[GOG_AXIS_X],
+ chart_map = gog_chart_map_new (chart, area,
+ GOG_PLOT (model)->axis[GOG_AXIS_X],
GOG_PLOT (model)->axis[GOG_AXIS_Y],
NULL, FALSE);
if (!gog_chart_map_is_valid (chart_map)) {
gog_chart_map_free (chart_map);
return;
}
-
+
if (model->vertical) {
map = gog_chart_map_get_axis_map (chart_map, 1);
ser_map = gog_chart_map_get_axis_map (chart_map, 0);
diff --git a/plugins/plot_distrib/gog-histogram.c b/plugins/plot_distrib/gog-histogram.c
index 823ad4e..1ab1c5f 100644
--- a/plugins/plot_distrib/gog-histogram.c
+++ b/plugins/plot_distrib/gog-histogram.c
@@ -80,7 +80,7 @@ gog_histogram_plot_update (GogObject *obj)
if (!gog_series_is_valid (GOG_SERIES (series)) || series->base.num_elements == 0)
return;
-
+
g_free (series->x);
series->x = g_new (double, series->base.num_elements);
if (series->base.values[0].data != NULL) {
@@ -174,7 +174,7 @@ gog_histogram_plot_class_init (GogPlotClass *gog_plot_klass)
GObjectClass *gobject_klass = (GObjectClass *) gog_plot_klass;
GogObjectClass *gog_object_klass = (GogObjectClass *) gog_plot_klass;
GogPlotClass *plot_klass = (GogPlotClass *) gog_plot_klass;
-
+
histogram_plot_parent_klass = g_type_class_peek_parent (gog_plot_klass);
gobject_klass->finalize = gog_histogram_plot_finalize;
@@ -239,8 +239,8 @@ gog_histogram_plot_view_render (GogView *view, GogViewAllocation const *bbox)
if (series->base.num_elements < 1)
return;
area = gog_chart_view_get_plot_area (view->parent);
- chart_map = gog_chart_map_new (chart, area,
- GOG_PLOT (model)->axis[GOG_AXIS_X],
+ chart_map = gog_chart_map_new (chart, area,
+ GOG_PLOT (model)->axis[GOG_AXIS_X],
GOG_PLOT (model)->axis[GOG_AXIS_Y],
NULL, FALSE);
if (!gog_chart_map_is_valid (chart_map)) {
@@ -285,7 +285,7 @@ gog_histogram_plot_view_render (GogView *view, GogViewAllocation const *bbox)
else
cury = gog_axis_map_to_view (y_map,
MAX (y_vals[i-1], y_vals[i]));
-
+
} else {
go_path_move_to (drop_path, curx, cury);
cury = gog_axis_map_to_view (y_map, y_vals[i]);
diff --git a/plugins/plot_distrib/gog-probability-plot.c b/plugins/plot_distrib/gog-probability-plot.c
index 63f4bc2..82ba74c 100644
--- a/plugins/plot_distrib/gog-probability-plot.c
+++ b/plugins/plot_distrib/gog-probability-plot.c
@@ -62,7 +62,7 @@ gog_probability_plot_populate_editor (GogObject *item,
GtkWidget *w = go_distribution_pref_new (G_OBJECT (item), dalloc, cc);
go_editor_add_page (editor, w, _("Distribution"));
g_object_unref (w);
-
+
(GOG_OBJECT_CLASS(probability_plot_parent_klass)->populate_editor) (item, editor, dalloc, cc);
}
#endif
@@ -236,22 +236,22 @@ gog_probability_plot_class_init (GogPlotClass *gog_plot_klass)
gobject_klass->finalize = gog_probability_plot_finalize;
g_object_class_install_property (gobject_klass, PROBABILITY_PLOT_PROP_DISTRIBUTION,
- g_param_spec_object ("distribution",
+ g_param_spec_object ("distribution",
_("Distribution"),
_("A pointer to the GODistribution used by this plot"),
- GO_TYPE_DISTRIBUTION,
+ GO_TYPE_DISTRIBUTION,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, PROBABILITY_PLOT_PROP_SHAPE_PARAM1,
- g_param_spec_string ("param1",
+ g_param_spec_string ("param1",
_("Shape parameter"),
_("Name of the first shape parameter if any"),
- "none",
+ "none",
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, PROBABILITY_PLOT_PROP_SHAPE_PARAM2,
- g_param_spec_string ("param2",
+ g_param_spec_string ("param2",
_("Second shape parameter"),
_("Name of the second shape parameter if any"),
- "none",
+ "none",
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
gog_object_klass->type_name = gog_probability_plot_type_name;
@@ -375,8 +375,8 @@ gog_probability_plot_view_render (GogView *view, GogViewAllocation const *bbox)
if (nb == 0 || series->x == NULL || series->y == NULL)
return;
area = gog_chart_view_get_plot_area (view->parent);
- chart_map = gog_chart_map_new (chart, area,
- GOG_PLOT (model)->axis[GOG_AXIS_X],
+ chart_map = gog_chart_map_new (chart, area,
+ GOG_PLOT (model)->axis[GOG_AXIS_X],
GOG_PLOT (model)->axis[GOG_AXIS_Y],
NULL, FALSE);
if (!gog_chart_map_is_valid (chart_map)) {
@@ -534,7 +534,7 @@ gog_probability_plot_series_update (GogObject *obj)
static unsigned
gog_probability_plot_series_get_xy_data (GogSeries const *series,
- double const **x,
+ double const **x,
double const **y)
{
GogProbabilityPlotSeries *ppseries = GOG_PROBABILITY_PLOT_SERIES (series);
diff --git a/plugins/plot_distrib/plugin.c b/plugins/plot_distrib/plugin.c
index 829d3b5..edf3332 100644
--- a/plugins/plot_distrib/plugin.c
+++ b/plugins/plot_distrib/plugin.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * plot_distrib/plugin.c :
+ * plot_distrib/plugin.c :
*
* Copyright (C) 2005-2008 Jean Brefort (jean brefort normalesup org)
*
diff --git a/plugins/plot_pie/gog-pie-prefs.c b/plugins/plot_pie/gog-pie-prefs.c
index 2239f2f..9451eae 100644
--- a/plugins/plot_pie/gog-pie-prefs.c
+++ b/plugins/plot_pie/gog-pie-prefs.c
@@ -45,7 +45,7 @@ gog_pie_series_element_pref (GogPieSeriesElement *element, GOCmdContext *cc)
g_free (path);
if (gui == NULL)
return NULL;
-
+
w = go_gtk_builder_get_widget (gui, "separation_spinner");
gtk_spin_button_set_value (GTK_SPIN_BUTTON (w), element->separation * 100.);
g_signal_connect (G_OBJECT (gtk_spin_button_get_adjustment (GTK_SPIN_BUTTON (w))),
@@ -100,7 +100,7 @@ static void
gog_pie_plot_pref_signal_connect (GogPiePlot *pie, GtkBuilder *gui)
{
GtkWidget *w;
-
+
w = go_gtk_builder_get_widget (gui, "rotation_spinner");
gtk_spin_button_set_value (GTK_SPIN_BUTTON (w), pie->initial_angle);
g_signal_connect (G_OBJECT (gtk_spin_button_get_adjustment (GTK_SPIN_BUTTON (w))),
@@ -124,7 +124,7 @@ static void
cb_update_editor (GogPiePlot *pie, PiePrefState *state)
{
gfloat value;
-
+
if (state->separation_spinner != NULL) {
g_object_get (G_OBJECT (pie), "default-separation", &value, NULL);
gtk_spin_button_set_value (GTK_SPIN_BUTTON (state->separation_spinner), value * 100.0);
@@ -153,14 +153,14 @@ gog_pie_plot_pref (GogPiePlot *pie, GOCmdContext *cc)
gog_pie_plot_pref_signal_connect (pie, gui);
- state->update_editor_handler = g_signal_connect (G_OBJECT (pie),
- "update-editor",
+ state->update_editor_handler = g_signal_connect (G_OBJECT (pie),
+ "update-editor",
G_CALLBACK (cb_update_editor), state);
-
+
w = GTK_WIDGET (g_object_ref (gtk_builder_get_object (gui, "gog_pie_prefs")));
g_object_set_data_full (G_OBJECT (w), "state", state, (GDestroyNotify) pie_pref_state_free);
g_object_unref (gui);
-
+
return w;
}
@@ -188,7 +188,7 @@ gog_ring_plot_pref (GogRingPlot *ring, GOCmdContext *cc)
g_free (path);
if (gui == NULL)
return NULL;
-
+
state = g_new0 (PiePrefState, 1);
state->gobj = GOG_OBJECT (ring);
state->separation_spinner = go_gtk_builder_get_widget (gui, "separation_spinner");
@@ -202,10 +202,10 @@ gog_ring_plot_pref (GogRingPlot *ring, GOCmdContext *cc)
"value_changed",
G_CALLBACK (cb_center_size_changed), ring);
- state->update_editor_handler = g_signal_connect (G_OBJECT (ring),
- "update-editor",
+ state->update_editor_handler = g_signal_connect (G_OBJECT (ring),
+ "update-editor",
G_CALLBACK (cb_update_editor), state);
-
+
w = GTK_WIDGET (g_object_ref (gtk_builder_get_object (gui, "gog_ring_prefs")));
g_object_set_data_full (G_OBJECT (w), "state", state, (GDestroyNotify) pie_pref_state_free);
g_object_unref (gui);
diff --git a/plugins/plot_pie/gog-pie.c b/plugins/plot_pie/gog-pie.c
index dffbea3..3132023 100644
--- a/plugins/plot_pie/gog-pie.c
+++ b/plugins/plot_pie/gog-pie.c
@@ -98,14 +98,14 @@ gog_pie_series_element_class_init (GogPieSeriesElementClass *klass)
gobject_klass->set_property = gog_pie_series_element_set_property;
gobject_klass->get_property = gog_pie_series_element_get_property;
-
+
ppe_parent_klass = g_type_class_peek_parent (klass);
#ifdef GOFFICE_WITH_GTK
klass->gse_populate_editor = gog_pie_series_element_populate_editor;
#endif
g_object_class_install_property (gobject_klass, ELEMENT_SEPARATION,
- g_param_spec_float ("separation",
+ g_param_spec_float ("separation",
_("Separation"),
_("Amount a slice is extended as a percentage of the radius"),
0, 1000, 0.,
@@ -198,13 +198,13 @@ gog_pie_plot_type_name (G_GNUC_UNUSED GogObject const *item)
extern gpointer gog_pie_plot_pref (GogPiePlot *pie, GOCmdContext *cc);
static void
-gog_pie_plot_populate_editor (GogObject *item,
+gog_pie_plot_populate_editor (GogObject *item,
GOEditor *editor,
G_GNUC_UNUSED GogDataAllocator *dalloc,
GOCmdContext *cc)
{
GtkWidget *widget = gog_pie_plot_pref (GOG_PIE_PLOT (item), cc);
- go_editor_add_page (editor,
+ go_editor_add_page (editor,
widget,
_("Properties"));
g_object_unref (G_OBJECT (widget));
@@ -234,25 +234,25 @@ gog_pie_plot_class_init (GogPlotClass *plot_klass)
gog_klass->view_type = gog_pie_view_get_type ();
g_object_class_install_property (gobject_klass, PLOT_PROP_INITIAL_ANGLE,
- g_param_spec_float ("initial-angle",
+ g_param_spec_float ("initial-angle",
_("Initial angle"),
_("Degrees clockwise from 12 O'Clock."),
0, G_MAXFLOAT, 0.,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, PLOT_PROP_DEFAULT_SEPARATION,
- g_param_spec_float ("default-separation",
+ g_param_spec_float ("default-separation",
_("Default separation"),
_("Default amount a slice is extended as a percentage of the radius"),
0, G_MAXFLOAT, 0.,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, PLOT_PROP_IN_3D,
- g_param_spec_boolean ("in-3d",
+ g_param_spec_boolean ("in-3d",
_("In 3d"),
_("Draw 3d wedges"),
FALSE,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_klass, PLOT_PROP_SPAN,
- g_param_spec_float ("span",
+ g_param_spec_float ("span",
_("Span"),
_("Total angle used as a percentage of the full circle"),
10., 100., 100.,
@@ -289,7 +289,7 @@ gog_pie_plot_set_default_separation (GogPiePlot *pie, double separation)
{
g_return_if_fail (GOG_PIE_PLOT (pie) != NULL);
- pie->default_separation = CLAMP (separation, 0.0, 5.0);
+ pie->default_separation = CLAMP (separation, 0.0, 5.0);
gog_object_emit_changed (GOG_OBJECT (pie), FALSE);
}
@@ -373,7 +373,7 @@ gog_ring_plot_class_init (GogPiePlotClass *pie_plot_klass)
gog_klass->populate_editor = gog_ring_plot_populate_editor;
g_object_class_install_property (gobject_klass, RING_PLOT_PROP_CENTER_SIZE,
- g_param_spec_float ("center-size",
+ g_param_spec_float ("center-size",
_("Center-size"),
_("Size of the center hole as a percentage of the radius"),
0, 100., 0.,
@@ -403,7 +403,7 @@ typedef struct {
} MovePieData;
static gboolean
-find_element (GogView *view, double cx, double cy, double x, double y,
+find_element (GogView *view, double cx, double cy, double x, double y,
unsigned int *index, GogPieSeries **series)
{
GogPiePlot *pie = GOG_PIE_PLOT (view->model);
@@ -419,7 +419,7 @@ find_element (GogView *view, double cx, double cy, double x, double y,
if (ptr == NULL)
return FALSE;
- theta = (atan2 (y - cy, x - cx)
+ theta = (atan2 (y - cy, x - cx)
* 180 / M_PI - pie->initial_angle + 90.) / pie->span / 3.6;
if (theta < 0)
theta += 1.;
@@ -443,7 +443,7 @@ gog_tool_move_pie_point (GogView *view, double x, double y, GogObject **gobj)
GogPieSeries *series;
double r = view->allocation.h, cx, cy;
unsigned int index;
-
+
if (r > view->allocation.w)
r = view->allocation.w;
r /= 2.;
@@ -452,8 +452,8 @@ gog_tool_move_pie_point (GogView *view, double x, double y, GogObject **gobj)
if (hypot (x - cx, y - cy) > fabs (r))
return FALSE;
-
- if (find_element (view, cx, cy, x, y, &index, &series))
+
+ if (find_element (view, cx, cy, x, y, &index, &series))
*gobj = GOG_OBJECT (gog_series_get_element (GOG_SERIES (series), index));
return TRUE;
@@ -502,12 +502,12 @@ gog_tool_move_pie_move (GogToolAction *action, double x, double y)
MovePieData *data = action->data;
double pos, separation;
- pos = data->start_pos -
+ pos = data->start_pos -
((x - action->start_x) * (data->x - action->start_x) +
- (y - action->start_y) * (data->y - action->start_y)) /
- data->start_distance;
+ (y - action->start_y) * (data->y - action->start_y)) /
+ data->start_distance;
separation = (pos - 0.5 * data->r) / (data->r - pos);
-
+
gog_pie_plot_set_default_separation (pie, separation);
}
@@ -519,11 +519,11 @@ gog_tool_move_pie_double_click (GogToolAction *action)
GogObject *obj;
unsigned int index;
- if (!find_element (action->view, data->x, data->y,
+ if (!find_element (action->view, data->x, data->y,
action->start_x, action->start_y,
&index, &series))
return;
-
+
obj = GOG_OBJECT (gog_series_get_element (GOG_SERIES (series), index));
if (obj == NULL) {
obj = g_object_new (gog_pie_series_element_get_type (),
@@ -535,10 +535,10 @@ gog_tool_move_pie_double_click (GogToolAction *action)
static GogTool gog_tool_move_pie = {
N_("Move pie"),
GDK_FLEUR,
- gog_tool_move_pie_point,
+ gog_tool_move_pie_point,
gog_tool_move_pie_render,
- gog_tool_move_pie_init,
- gog_tool_move_pie_move,
+ gog_tool_move_pie_init,
+ gog_tool_move_pie_move,
gog_tool_move_pie_double_click,
NULL /*destroy*/
};
@@ -690,7 +690,7 @@ gog_pie_view_render (GogView *view, GogViewAllocation const *bbox)
/* centre things */
cx = view->allocation.x + view->allocation.w/2.;
cy = view->allocation.y + view->allocation.h/2.;
-
+
r_tot = view->allocation.h;
if (r_tot > view->allocation.w)
r_tot = view->allocation.w;
@@ -712,10 +712,10 @@ gog_pie_view_render (GogView *view, GogViewAllocation const *bbox)
continue;
if (index > num_series) /* people snuck extra series into a pie */
break;
-
- if (num_series == index)
+
+ if (num_series == index)
r -= outline_width_max / 2.0;
-
+
has_hole = center_radius > 0. || index > 1;
r_int = center_radius + r * ((double)index - 1.0) / (double)num_series;
r_ext = center_radius + r * (double)index / (double)num_series;
@@ -793,7 +793,7 @@ gog_pie_view_render (GogView *view, GogViewAllocation const *bbox)
static void
gog_pie_view_build_toolkit (GogView *view)
{
- (GOG_VIEW_CLASS (pie_view_parent_klass)->build_toolkit) (view);
+ (GOG_VIEW_CLASS (pie_view_parent_klass)->build_toolkit) (view);
#ifdef GOFFICE_WITH_GTK
view->toolkit = g_slist_prepend (view->toolkit, &gog_tool_move_pie);
#endif
@@ -903,13 +903,13 @@ gog_pie_series_class_init (GObjectClass *gobject_klass)
gobject_klass->get_property = gog_pie_series_get_property;
g_object_class_install_property (gobject_klass, SERIES_PROP_INITIAL_ANGLE,
- g_param_spec_float ("initial-angle",
+ g_param_spec_float ("initial-angle",
_("Initial-angle"),
_("Degrees clockwise from 12 O'Clock"),
0, G_MAXFLOAT, 0.,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_klass, SERIES_PROP_SEPARATION,
- g_param_spec_float ("separation",
+ g_param_spec_float ("separation",
_("Separation"),
_("Default amount a slice is extended as a percentage of the radius"),
0, G_MAXFLOAT, 0.,
diff --git a/plugins/plot_radar/gog-radar.c b/plugins/plot_radar/gog-radar.c
index a43bc3d..9b1a53e 100644
--- a/plugins/plot_radar/gog-radar.c
+++ b/plugins/plot_radar/gog-radar.c
@@ -253,7 +253,7 @@ gog_radar_plot_type_name (G_GNUC_UNUSED GogObject const *item)
}
static GOData *
-gog_radar_plot_axis_get_bounds (GogPlot *plot, GogAxisType axis,
+gog_radar_plot_axis_get_bounds (GogPlot *plot, GogAxisType axis,
GogPlotBoundInfo * bounds)
{
GSList *ptr;
@@ -281,8 +281,8 @@ gog_radar_plot_axis_get_bounds (GogPlot *plot, GogAxisType axis,
default:
g_warning("[GogRadarPlot::axis_set_bounds] bad axis (%i)", axis);
break;
- }
-
+ }
+
return NULL;
}
@@ -368,7 +368,7 @@ gog_polar_plot_type_name (G_GNUC_UNUSED GogObject const *item)
}
static GOData *
-gog_polar_plot_axis_get_bounds (GogPlot *plot, GogAxisType axis,
+gog_polar_plot_axis_get_bounds (GogPlot *plot, GogAxisType axis,
GogPlotBoundInfo * bounds)
{
GogRTPlot *rt = GOG_RT_PLOT (plot);
@@ -410,8 +410,8 @@ gog_polar_plot_class_init (GogPlotClass *gog_plot_klass)
};
gog_plot_klass->desc.series.dim = dimensions;
gog_plot_klass->desc.series.num_dim = G_N_ELEMENTS (dimensions);
- gog_plot_klass->desc.series.style_fields = GO_STYLE_LINE
- | GO_STYLE_FILL
+ gog_plot_klass->desc.series.style_fields = GO_STYLE_LINE
+ | GO_STYLE_FILL
| GO_STYLE_MARKER
| GO_STYLE_INTERPOLATION;
}
@@ -443,7 +443,7 @@ hide_outliers_toggled_cb (GtkToggleButton *btn, GObject *obj)
}
#endif
-static void
+static void
gog_color_polar_plot_populate_editor (GogObject *obj,
GOEditor *editor,
GogDataAllocator *dalloc,
@@ -544,7 +544,7 @@ gog_color_polar_plot_update (GogObject *obj)
}
static GOData *
-gog_color_polar_plot_axis_get_bounds (GogPlot *plot, GogAxisType axis,
+gog_color_polar_plot_axis_get_bounds (GogPlot *plot, GogAxisType axis,
GogPlotBoundInfo * bounds)
{
GogRTPlot *rt = GOG_RT_PLOT (plot);
@@ -592,10 +592,10 @@ gog_color_polar_plot_class_init (GogPlotClass *gog_plot_klass)
gobject_klass->set_property = gog_color_polar_plot_set_property;
gobject_klass->get_property = gog_color_polar_plot_get_property;
g_object_class_install_property (gobject_klass, GOG_COLOR_POLAR_PROP_HIDE_OUTLIERS,
- g_param_spec_boolean ("hide-outliers",
+ g_param_spec_boolean ("hide-outliers",
_("hide-outliers"),
_("Hide data outside of the color axis bounds"),
- TRUE,
+ TRUE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
/* Fill in GOGObject superclass values */
gog_object_klass->type_name = gog_color_polar_plot_type_name;
@@ -611,7 +611,7 @@ gog_color_polar_plot_class_init (GogPlotClass *gog_plot_klass)
};
gog_plot_klass->desc.series.dim = dimensions;
gog_plot_klass->desc.series.num_dim = G_N_ELEMENTS (dimensions);
- gog_plot_klass->desc.series.style_fields = GO_STYLE_LINE
+ gog_plot_klass->desc.series.style_fields = GO_STYLE_LINE
| GO_STYLE_MARKER
| GO_STYLE_INTERPOLATION
| GO_STYLE_MARKER_NO_COLOR;
@@ -801,8 +801,8 @@ gog_rt_view_render (GogView *view, GogViewAllocation const *bbox)
for (i = 0; i < series->base.num_elements; i++) {
gog_chart_map_2D_to_view (chart_map, ((c_vals != NULL) ? c_vals[i] : i+1),
r_vals[i], &theta, &rho);
- if ( go_finite (theta)
- && go_finite (rho)
+ if ( go_finite (theta)
+ && go_finite (rho)
&& rho > rho_min) {
go_path_move_to (drop_path, parms->cx, parms->cy);
go_path_line_to (drop_path, theta, rho);
@@ -830,18 +830,18 @@ gog_rt_view_render (GogView *view, GogViewAllocation const *bbox)
if (isnan (z) || !go_finite (z))
continue;
}
- gog_chart_map_2D_to_view (chart_map,
+ gog_chart_map_2D_to_view (chart_map,
is_polar ? c_vals[count] : count + 1, rho,
&x, &y);
if (is_polar) theta = gog_axis_map_to_view (c_map, c_vals[count]);
- if ( !is_polar ||
- (go_add_epsilon (r_vals[count] - rho_min) >= 0.0 &&
+ if ( !is_polar ||
+ (go_add_epsilon (r_vals[count] - rho_min) >= 0.0 &&
go_add_epsilon (rho_max - r_vals[count]) >= 0.0 &&
- go_add_epsilon ((theta_max - theta_min)
+ go_add_epsilon ((theta_max - theta_min)
- fmod (theta_max - theta, 2 * M_PI)) >= 0.0 &&
- go_add_epsilon ((theta_max - theta_min)
+ go_add_epsilon ((theta_max - theta_min)
- fmod (theta - theta_min, 2 * M_PI)) >= 0.0)) {
if (is_map) {
GOColor color = (gog_axis_map_finite (z_map, z))?
@@ -887,7 +887,7 @@ static gboolean
radial_drop_lines_can_add (GogObject const *parent)
{
GogRTSeries *series = GOG_RT_SERIES (parent);
- return ( series->radial_drop_lines == NULL
+ return ( series->radial_drop_lines == NULL
&& GOG_IS_PLOT_POLAR (gog_series_get_plot (GOG_SERIES (parent))));
}
@@ -1037,7 +1037,7 @@ gog_color_polar_series_update (GogObject *obj)
GogRTSeries *series = GOG_RT_SERIES (obj);
unsigned old_num = series->base.num_elements;
- series->base.num_elements = gog_series_get_xyz_data (GOG_SERIES (series),
+ series->base.num_elements = gog_series_get_xyz_data (GOG_SERIES (series),
&a_vals, &r_vals, &z_vals);
/* queue plot for redraw */
diff --git a/plugins/plot_surface/gog-contour.c b/plugins/plot_surface/gog-contour.c
index b801a47..1ce6915 100644
--- a/plugins/plot_surface/gog-contour.c
+++ b/plugins/plot_surface/gog-contour.c
@@ -128,7 +128,7 @@ gog_contour_plot_type_name (G_GNUC_UNUSED GogObject const *item)
return N_("PlotContour");
}
-static void
+static void
gog_contour_plot_foreach_elem (GogPlot *plot, gboolean only_visible,
GogEnumFunc func, gpointer data)
{
@@ -290,10 +290,10 @@ gog_contour_view_render (GogView *view, GogViewAllocation const *bbox)
if (data == NULL)
return;
- x_map = gog_axis_map_new (plot->base.axis[0],
+ x_map = gog_axis_map_new (plot->base.axis[0],
view->residual.x , view->residual.w);
- y_map = gog_axis_map_new (plot->base.axis[1],
- view->residual.y + view->residual.h,
+ y_map = gog_axis_map_new (plot->base.axis[1],
+ view->residual.y + view->residual.h,
-view->residual.h);
if (!(gog_axis_map_is_valid (x_map) &&
@@ -939,7 +939,7 @@ gog_contour_view_render (GogView *view, GogViewAllocation const *bbox)
lasty = y[k];
go_path_line_to (path, lastx, lasty);
} else
- k++;
+ k++;
}
while (z[r] <= zmin && r > 0)
r--;
diff --git a/plugins/plot_surface/gog-surface.h b/plugins/plot_surface/gog-surface.h
index e045399..068e819 100644
--- a/plugins/plot_surface/gog-surface.h
+++ b/plugins/plot_surface/gog-surface.h
@@ -35,7 +35,7 @@ G_BEGIN_DECLS
typedef GogXYZPlot GogSurfacePlot;
typedef GogXYZPlotClass GogSurfacePlotClass;
-
+
#define GOG_TYPE_SURFACE_PLOT (gog_surface_plot_get_type ())
#define GOG_SURFACE_PLOT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOG_TYPE_SURFACE_PLOT, GogSurfacePlot))
#define GOG_IS_SURFACE_PLOT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOG_TYPE_SURFACE_PLOT))
diff --git a/plugins/plot_surface/gog-xyz-surface.c b/plugins/plot_surface/gog-xyz-surface.c
index b0e5f28..06fd957 100644
--- a/plugins/plot_surface/gog-xyz-surface.c
+++ b/plugins/plot_surface/gog-xyz-surface.c
@@ -55,7 +55,7 @@ gog_xyz_surface_plot_build_matrix (GogXYZPlot const *plot, gboolean *cardinality
double *data;
unsigned *grid;
unsigned n = plot->rows * plot->columns;
- unsigned kmax = gog_series_get_xyz_data (GOG_SERIES (series),
+ unsigned kmax = gog_series_get_xyz_data (GOG_SERIES (series),
&x_vals, &y_vals, &z_vals);
unsigned imax = plot->rows;
unsigned jmax = plot->columns;
@@ -66,7 +66,7 @@ gog_xyz_surface_plot_build_matrix (GogXYZPlot const *plot, gboolean *cardinality
data = g_new0 (double, n);
grid = g_new0 (unsigned, n);
-
+
for (k = 0; k < kmax; ++k) {
j = (int) floor ((x_vals[k] - xmin) / xinc + 0.5);
i = (int) floor ((y_vals[k] - ymin) / yinc + 0.5);
@@ -200,7 +200,7 @@ gog_xyz_surface_plot_update (GogObject *obj)
series = GOG_XYZ_SERIES (model->base.series->data);
if (!gog_series_is_valid (GOG_SERIES (series)))
return;
-
+
go_data_get_bounds (series->base.values[0].data, &tmp_min, &tmp_max);
if (!go_finite (tmp_min) || !go_finite (tmp_max) ||
tmp_min > tmp_max) {
@@ -307,16 +307,16 @@ common_init_class (GogXYZPlotClass *klass)
gobject_klass->set_property = gog_xyz_surface_plot_set_property;
gobject_klass->get_property = gog_xyz_surface_plot_get_property;
g_object_class_install_property (gobject_klass, XYZ_SURFACE_PROP_ROWS,
- g_param_spec_uint ("rows",
+ g_param_spec_uint ("rows",
_("Rows"),
_("Number of rows"),
- 2, 1000, 10,
+ 2, 1000, 10,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, XYZ_SURFACE_PROP_COLUMNS,
- g_param_spec_uint ("columns",
+ g_param_spec_uint ("columns",
_("Columns"),
_("Number of columns"),
- 2, 1000, 10,
+ 2, 1000, 10,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
gog_object_klass->update = gog_xyz_surface_plot_update;
diff --git a/plugins/plot_surface/gog-xyz.c b/plugins/plot_surface/gog-xyz.c
index 1c4c5bb..4c9ab4b 100644
--- a/plugins/plot_surface/gog-xyz.c
+++ b/plugins/plot_surface/gog-xyz.c
@@ -242,14 +242,14 @@ gog_xyz_plot_update (GogObject *obj)
GOG_OBJECT (model));
} else
gog_xyz_plot_update_3d (GOG_PLOT (model));
-
+
gog_object_emit_changed (GOG_OBJECT (obj), FALSE);
if (plot_xyz_parent_klass->update)
plot_xyz_parent_klass->update (obj);
}
static GOData *
-gog_xyz_plot_axis_get_bounds (GogPlot *plot, GogAxisType axis,
+gog_xyz_plot_axis_get_bounds (GogPlot *plot, GogAxisType axis,
GogPlotBoundInfo * bounds)
{
GogXYZSeries *series;
@@ -377,10 +377,10 @@ gog_xyz_plot_class_init (GogXYZPlotClass *klass)
gobject_klass->set_property = gog_xyz_plot_set_property;
gobject_klass->get_property = gog_xyz_plot_get_property;
g_object_class_install_property (gobject_klass, XYZ_PROP_TRANSPOSED,
- g_param_spec_boolean ("transposed",
+ g_param_spec_boolean ("transposed",
_("Transposed"),
_("Transpose the plot"),
- FALSE,
+ FALSE,
GSF_PARAM_STATIC | G_PARAM_READWRITE|GO_PARAM_PERSISTENT));
/* Fill in GOGObject superclass values */
diff --git a/plugins/plot_surface/xl-surface.c b/plugins/plot_surface/xl-surface.c
index 1baa432..9bcb8a9 100644
--- a/plugins/plot_surface/xl-surface.c
+++ b/plugins/plot_surface/xl-surface.c
@@ -197,8 +197,8 @@ xl_xyz_plot_axis_get_bounds (GogPlot *plot, GogAxisType axis,
bounds->logical.maxima = go_nan;
bounds->is_discrete = TRUE;
bounds->center_on_ticks = TRUE;
- bounds->val.maxima = (axis == GOG_AXIS_X)?
- xyz->columns:
+ bounds->val.maxima = (axis == GOG_AXIS_X)?
+ xyz->columns:
xyz->rows;
return (GOData*) vec;
}
diff --git a/plugins/plot_xy/gog-bubble-prefs.c b/plugins/plot_xy/gog-bubble-prefs.c
index 852342c..b72c8dd 100644
--- a/plugins/plot_xy/gog-bubble-prefs.c
+++ b/plugins/plot_xy/gog-bubble-prefs.c
@@ -81,7 +81,7 @@ gog_bubble_plot_pref (GogBubblePlot *bubble, GOCmdContext *cc)
g_signal_connect (G_OBJECT (w),
"toggled",
G_CALLBACK (cb_type_changed), bubble);
-
+
w = go_gtk_builder_get_widget (gui, "diameter");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w), !bubble->size_as_area);
g_signal_connect (G_OBJECT (w),
diff --git a/plugins/plot_xy/gog-xy.c b/plugins/plot_xy/gog-xy.c
index 53e9b75..576e361 100644
--- a/plugins/plot_xy/gog-xy.c
+++ b/plugins/plot_xy/gog-xy.c
@@ -340,22 +340,22 @@ gog_xy_plot_class_init (GogPlotClass *plot_klass)
gobject_klass->get_property = gog_xy_get_property;
g_object_class_install_property (gobject_klass, GOG_XY_PROP_DEFAULT_STYLE_HAS_MARKERS,
- g_param_spec_boolean ("default-style-has-markers",
+ g_param_spec_boolean ("default-style-has-markers",
_("Has markers by default"),
_("Should the default style of a series include markers"),
- TRUE,
+ TRUE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, GOG_XY_PROP_DEFAULT_STYLE_HAS_LINES,
- g_param_spec_boolean ("default-style-has-lines",
+ g_param_spec_boolean ("default-style-has-lines",
_("Has lines by default"),
_("Should the default style of a series include lines"),
- TRUE,
+ TRUE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, GOG_XY_PROP_DEFAULT_STYLE_HAS_FILL,
- g_param_spec_boolean ("default-style-has-fill",
+ g_param_spec_boolean ("default-style-has-fill",
_("Has fill by default"),
_("Should the default style of a series include fill"),
- TRUE,
+ TRUE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, GOG_XY_PROP_USE_SPLINES,
g_param_spec_boolean ("use-splines",
@@ -383,9 +383,9 @@ gog_xy_plot_class_init (GogPlotClass *plot_klass)
};
plot_klass->desc.series.dim = dimensions;
plot_klass->desc.series.num_dim = G_N_ELEMENTS (dimensions);
- plot_klass->desc.series.style_fields = GO_STYLE_LINE
- | GO_STYLE_FILL
- | GO_STYLE_MARKER
+ plot_klass->desc.series.style_fields = GO_STYLE_LINE
+ | GO_STYLE_FILL
+ | GO_STYLE_MARKER
| GO_STYLE_INTERPOLATION;
}
}
@@ -418,7 +418,7 @@ gog_bubble_plot_type_name (G_GNUC_UNUSED GogObject const *item)
extern gpointer gog_bubble_plot_pref (GogBubblePlot *bubble, GOCmdContext *cc);
static void
-gog_bubble_plot_populate_editor (GogObject *obj,
+gog_bubble_plot_populate_editor (GogObject *obj,
GOEditor *editor,
G_GNUC_UNUSED GogDataAllocator *dalloc,
GOCmdContext *cc)
@@ -509,25 +509,25 @@ gog_bubble_plot_class_init (GogPlotClass *plot_klass)
gog_2d_plot_klass->adjust_bounds = gog_bubble_plot_adjust_bounds;
g_object_class_install_property (gobject_klass, GOG_BUBBLE_PROP_AS_AREA,
- g_param_spec_boolean ("size-as-area",
+ g_param_spec_boolean ("size-as-area",
_("Size as area"),
_("Display size as area instead of diameter"),
TRUE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, GOG_BUBBLE_PROP_SHOW_NEGATIVES,
- g_param_spec_boolean ("show-negatives",
+ g_param_spec_boolean ("show-negatives",
_("Show negatives"),
_("Draw bubbles for negative values"),
FALSE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, GOG_BUBBLE_PROP_IN_3D,
- g_param_spec_boolean ("in-3d",
+ g_param_spec_boolean ("in-3d",
_("In 3d"),
_("Draw 3d bubbles"),
FALSE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, GOG_BUBBLE_PROP_SCALE,
- g_param_spec_float ("bubble-scale",
+ g_param_spec_float ("bubble-scale",
_("Bubble scale"),
_("Fraction of default radius used for display"),
0., 3., 1.,
@@ -674,7 +674,7 @@ hide_outliers_toggled_cb (GtkToggleButton *btn, GObject *obj)
}
#endif
-static void
+static void
gog_xy_color_plot_populate_editor (GogObject *obj,
GOEditor *editor,
GogDataAllocator *dalloc,
@@ -770,22 +770,22 @@ gog_xy_color_plot_class_init (GogPlotClass *plot_klass)
gobject_klass->finalize = gog_xy_color_plot_finalize;
g_object_class_install_property (gobject_klass, GOG_XY_COLOR_PROP_DEFAULT_STYLE_HAS_LINES,
- g_param_spec_boolean ("default-style-has-lines",
+ g_param_spec_boolean ("default-style-has-lines",
_("Has lines by default"),
_("Should the default style of a series include lines"),
- TRUE,
+ TRUE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, GOG_XY_COLOR_PROP_DEFAULT_STYLE_HAS_FILL,
- g_param_spec_boolean ("default-style-has-fill",
+ g_param_spec_boolean ("default-style-has-fill",
_("Has fill by default"),
_("Should the default style of a series include fill"),
- TRUE,
+ TRUE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, GOG_XY_COLOR_PROP_HIDE_OUTLIERS,
- g_param_spec_boolean ("hide-outliers",
+ g_param_spec_boolean ("hide-outliers",
_("hide-outliers"),
_("Hide data outside of the color axis bounds"),
- TRUE,
+ TRUE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
gog_klass->type_name = gog_xy_color_plot_type_name;
gog_klass->update = gog_xy_color_plot_update;
@@ -1156,8 +1156,8 @@ gog_xy_view_render (GogView *view, GogViewAllocation const *bbox)
if (z < 0) {
if (GOG_BUBBLE_PLOT(model)->show_negatives) {
gog_renderer_push_style (view->renderer, neg_style);
- gog_renderer_draw_circle (view->renderer, x_canvas, y_canvas,
- ((size_as_area) ?
+ gog_renderer_draw_circle (view->renderer, x_canvas, y_canvas,
+ ((size_as_area) ?
sqrt (- z / zmax) :
- z / zmax) * rmax);
gog_renderer_pop_style (view->renderer);
@@ -1174,7 +1174,7 @@ gog_xy_view_render (GogView *view, GogViewAllocation const *bbox)
} else if (model->base.vary_style_by_element)
gog_theme_fillin_style (theme, style, GOG_OBJECT (series),
model->base.index_num + i - 1, style->interesting_fields);
- gog_renderer_draw_circle (view->renderer, x_canvas, y_canvas,
+ gog_renderer_draw_circle (view->renderer, x_canvas, y_canvas,
((size_as_area) ?
sqrt (z / zmax) :
z / zmax) * rmax);
@@ -1187,9 +1187,9 @@ gog_xy_view_render (GogView *view, GogViewAllocation const *bbox)
if (gog_error_bar_is_visible (series->x_errors)) {
GogErrorBar const *bar = series->x_errors;
if (gog_error_bar_get_bounds (bar, i - 1, &xerrmin, &xerrmax)) {
- gog_error_bar_render (bar, view->renderer,
- x_map, y_map,
- x, y,
+ gog_error_bar_render (bar, view->renderer,
+ x_map, y_map,
+ x, y,
xerrmin, xerrmax, TRUE);
}
}
@@ -1197,8 +1197,8 @@ gog_xy_view_render (GogView *view, GogViewAllocation const *bbox)
if (gog_error_bar_is_visible (series->y_errors)) {
GogErrorBar const *bar = series->y_errors;
if (gog_error_bar_get_bounds (bar, i - 1, &yerrmin, &yerrmax)) {
- gog_error_bar_render (bar, view->renderer,
- x_map, y_map, x, y,
+ gog_error_bar_render (bar, view->renderer,
+ x_map, y_map, x, y,
yerrmin, yerrmax, FALSE);
}
}
@@ -1257,7 +1257,7 @@ gog_xy_view_render (GogView *view, GogViewAllocation const *bbox)
(style->marker.mark,markers[j][k].color);
gog_renderer_push_style (view->renderer, style);
}
- gog_renderer_draw_marker (view->renderer,
+ gog_renderer_draw_marker (view->renderer,
markers[j][k].x,
markers[j][k].y);
if (is_map)
@@ -1540,11 +1540,11 @@ gog_xy_series_update (GogObject *obj)
unsigned old_num = series->base.num_elements;
GSList *ptr;
- if (GOG_IS_BUBBLE_PLOT (series->base.plot) || GOG_IS_XY_COLOR_PLOT (series->base.plot))
- series->base.num_elements = gog_series_get_xyz_data (GOG_SERIES (series),
+ if (GOG_IS_BUBBLE_PLOT (series->base.plot) || GOG_IS_XY_COLOR_PLOT (series->base.plot))
+ series->base.num_elements = gog_series_get_xyz_data (GOG_SERIES (series),
&x_vals, &y_vals, &z_vals);
else
- series->base.num_elements = gog_series_get_xy_data (GOG_SERIES (series),
+ series->base.num_elements = gog_series_get_xy_data (GOG_SERIES (series),
&x_vals, &y_vals);
/* update children */
@@ -1582,12 +1582,12 @@ gog_xy_series_finalize (GObject *obj)
GogXYSeries *series = GOG_XY_SERIES (obj);
if (series->x_errors != NULL) {
- g_object_unref (series->x_errors);
+ g_object_unref (series->x_errors);
series->x_errors = NULL;
}
if (series->y_errors != NULL) {
- g_object_unref (series->y_errors);
+ g_object_unref (series->y_errors);
series->y_errors = NULL;
}
@@ -1827,31 +1827,31 @@ gog_xy_series_class_init (GogStyledObjectClass *gso_klass)
gog_object_register_roles (gog_klass, roles, G_N_ELEMENTS (roles));
g_object_class_install_property (gobject_klass, SERIES_PROP_XERRORS,
- g_param_spec_object ("x-errors",
+ g_param_spec_object ("x-errors",
_("X error bars"),
_("GogErrorBar *"),
- GOG_TYPE_ERROR_BAR,
+ GOG_TYPE_ERROR_BAR,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, SERIES_PROP_YERRORS,
- g_param_spec_object ("y-errors",
+ g_param_spec_object ("y-errors",
_("Y error bars"),
_("GogErrorBar *"),
- GOG_TYPE_ERROR_BAR,
+ GOG_TYPE_ERROR_BAR,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, SERIES_PROP_INVALID_AS_ZERO,
- g_param_spec_boolean ("invalid-as-zero",
+ g_param_spec_boolean ("invalid-as-zero",
_("Invalid as zero"),
_("Replace invalid values by 0 when drawing markers or bubbles"),
- FALSE,
+ FALSE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, SERIES_PROP_CLAMP0,
- g_param_spec_double ("clamp0",
+ g_param_spec_double ("clamp0",
_("Clamp at start"),
_("Slope at start of the interpolated curve when using clamped spline interpolation"),
-G_MAXDOUBLE, G_MAXDOUBLE, 0.,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, SERIES_PROP_CLAMP1,
- g_param_spec_double ("clamp1",
+ g_param_spec_double ("clamp1",
_("Clamp at end"),
_("Slope at end of the interpolated curve when using clamped spline interpolation"),
-G_MAXDOUBLE, G_MAXDOUBLE, 0.,
diff --git a/plugins/reg_linear/gog-exp-reg.c b/plugins/reg_linear/gog-exp-reg.c
index 0ba331f..1227037 100644
--- a/plugins/reg_linear/gog-exp-reg.c
+++ b/plugins/reg_linear/gog-exp-reg.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-log-reg.c :
+ * gog-log-reg.c :
*
* Copyright (C) 2005 Jean Brefort (jean brefort normalesup org)
*
diff --git a/plugins/reg_linear/gog-exp-reg.h b/plugins/reg_linear/gog-exp-reg.h
index 8d44a82..7a6c93a 100644
--- a/plugins/reg_linear/gog-exp-reg.h
+++ b/plugins/reg_linear/gog-exp-reg.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-exp-reg.h :
+ * gog-exp-reg.h :
*
* Copyright (C) 2005 Jean Brefort (jean brefort normalesup org)
*
diff --git a/plugins/reg_linear/gog-lin-reg.c b/plugins/reg_linear/gog-lin-reg.c
index 612ec43..e84eb65 100644
--- a/plugins/reg_linear/gog-lin-reg.c
+++ b/plugins/reg_linear/gog-lin-reg.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-lin-reg.c :
+ * gog-lin-reg.c :
*
* Copyright (C) 2005-2006 Jean Brefort (jean brefort normalesup org)
*
@@ -261,16 +261,16 @@ gog_lin_reg_curve_class_init (GogRegCurveClass *reg_curve_klass)
lin_klass->build_values = gog_lin_reg_curve_build_values;
g_object_class_install_property (gobject_klass, REG_LIN_REG_CURVE_PROP_AFFINE,
- g_param_spec_boolean ("affine",
+ g_param_spec_boolean ("affine",
_("Affine"),
_("If true, a non-zero constant is allowed"),
- TRUE,
+ TRUE,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, REG_LIN_REG_CURVE_PROP_DIMS,
- g_param_spec_uint ("dims",
+ g_param_spec_uint ("dims",
_("Dims"),
_("Number of x-vectors"),
- 1, 10, 1,
+ 1, 10, 1,
GSF_PARAM_STATIC | G_PARAM_READWRITE|GO_PARAM_PERSISTENT));
}
diff --git a/plugins/reg_linear/gog-lin-reg.h b/plugins/reg_linear/gog-lin-reg.h
index 53368d3..e8fc2ed 100644
--- a/plugins/reg_linear/gog-lin-reg.h
+++ b/plugins/reg_linear/gog-lin-reg.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-lin-reg.h :
+ * gog-lin-reg.h :
*
* Copyright (C) 2005 Jean Brefort (jean brefort normalesup org)
*
diff --git a/plugins/reg_linear/gog-log-reg.c b/plugins/reg_linear/gog-log-reg.c
index 2841a0e..88fd6ff 100644
--- a/plugins/reg_linear/gog-log-reg.c
+++ b/plugins/reg_linear/gog-log-reg.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-log-reg.c :
+ * gog-log-reg.c :
*
* Copyright (C) 2005 Jean Brefort (jean brefort normalesup org)
*
diff --git a/plugins/reg_linear/gog-log-reg.h b/plugins/reg_linear/gog-log-reg.h
index 49e92be..6eec746 100644
--- a/plugins/reg_linear/gog-log-reg.h
+++ b/plugins/reg_linear/gog-log-reg.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-log-reg.h :
+ * gog-log-reg.h :
*
* Copyright (C) 2005 Jean Brefort (jean brefort normalesup org)
*
diff --git a/plugins/reg_linear/gog-polynom-reg.c b/plugins/reg_linear/gog-polynom-reg.c
index d443f18..6209832 100644
--- a/plugins/reg_linear/gog-polynom-reg.c
+++ b/plugins/reg_linear/gog-polynom-reg.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-polynom-reg.c :
+ * gog-polynom-reg.c :
*
* Copyright (C) 2005 Jean Brefort (jean brefort normalesup org)
*
@@ -160,7 +160,7 @@ gog_polynom_reg_curve_get_equation (GogRegCurve *curve)
else {
g_string_append_len (str, minus_utf8, minus_utf8_len);
c_i = -c_i;
- }
+ }
g_string_append_c (str, ' ');
}
diff --git a/plugins/reg_linear/gog-polynom-reg.h b/plugins/reg_linear/gog-polynom-reg.h
index f6a841b..eac66cb 100644
--- a/plugins/reg_linear/gog-polynom-reg.h
+++ b/plugins/reg_linear/gog-polynom-reg.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-polynom-reg.h :
+ * gog-polynom-reg.h :
*
* Copyright (C) 2005 Jean Brefort (jean brefort normalesup org)
*
diff --git a/plugins/reg_linear/gog-power-reg.c b/plugins/reg_linear/gog-power-reg.c
index 6472afb..c809eb5 100644
--- a/plugins/reg_linear/gog-power-reg.c
+++ b/plugins/reg_linear/gog-power-reg.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-power-reg.c :
+ * gog-power-reg.c :
*
* Copyright (C) 2006 Jean Brefort (jean brefort normalesup org)
*
diff --git a/plugins/reg_linear/gog-power-reg.h b/plugins/reg_linear/gog-power-reg.h
index 2f71c89..3e4fcef 100644
--- a/plugins/reg_linear/gog-power-reg.h
+++ b/plugins/reg_linear/gog-power-reg.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-power-reg.h :
+ * gog-power-reg.h :
*
* Copyright (C) 2006 Jean Brefort (jean brefort normalesup org)
*
diff --git a/plugins/reg_logfit/gog-logfit.c b/plugins/reg_logfit/gog-logfit.c
index 12cd6f2..1a37d9a 100644
--- a/plugins/reg_logfit/gog-logfit.c
+++ b/plugins/reg_logfit/gog-logfit.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-logfit.c :
+ * gog-logfit.c :
*
* Copyright (C) 2005-2006 Jean Brefort (jean brefort normalesup org)
*
diff --git a/plugins/reg_logfit/gog-logfit.h b/plugins/reg_logfit/gog-logfit.h
index ab859da..3f5fc01 100644
--- a/plugins/reg_logfit/gog-logfit.h
+++ b/plugins/reg_logfit/gog-logfit.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * gog-logfit.h :
+ * gog-logfit.h :
*
* Copyright (C) 2005 Jean Brefort (jean brefort normalesup org)
*
diff --git a/plugins/smoothing/gog-exp-smooth.c b/plugins/smoothing/gog-exp-smooth.c
index dd88f16..03dae59 100644
--- a/plugins/smoothing/gog-exp-smooth.c
+++ b/plugins/smoothing/gog-exp-smooth.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * smoothing/gog-exp-smooth.c :
+ * smoothing/gog-exp-smooth.c :
*
* Copyright (C) 2006 Jean Brefort (jean brefort normalesup org)
*
@@ -48,7 +48,7 @@ steps_changed_cb (GtkSpinButton *button, GObject *es)
}
static void
-gog_exp_smooth_populate_editor (GogObject *obj,
+gog_exp_smooth_populate_editor (GogObject *obj,
GOEditor *editor,
GogDataAllocator *dalloc,
GOCmdContext *cc)
@@ -227,9 +227,9 @@ gog_exp_smooth_class_init (GogSmoothedCurveClass *curve_klass)
gog_object_klass->type_name = gog_exp_smooth_type_name;
g_object_class_install_property (gobject_klass, EXP_SMOOTH_PROP_STEPS,
- g_param_spec_int ("steps",
+ g_param_spec_int ("steps",
_("Steps"),
- _("Number of interpolation steps"),
+ _("Number of interpolation steps"),
10, G_MAXINT, 100,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
}
diff --git a/plugins/smoothing/gog-exp-smooth.h b/plugins/smoothing/gog-exp-smooth.h
index 5c9b26c..a7a6b04 100644
--- a/plugins/smoothing/gog-exp-smooth.h
+++ b/plugins/smoothing/gog-exp-smooth.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * smoothing/gog-exp-smooth.h :
+ * smoothing/gog-exp-smooth.h :
*
* Copyright (C) 2006 Jean Brefort (jean brefort normalesup org)
*
diff --git a/plugins/smoothing/gog-moving-avg.c b/plugins/smoothing/gog-moving-avg.c
index d2875b9..6da357f 100644
--- a/plugins/smoothing/gog-moving-avg.c
+++ b/plugins/smoothing/gog-moving-avg.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * smoothing/gog-moving-avg.c :
+ * smoothing/gog-moving-avg.c :
*
* Copyright (C) 2006 Jean Brefort (jean brefort normalesup org)
*
@@ -90,7 +90,7 @@ xavg_toggled_cb (GtkToggleButton *button, GObject *ma)
}
static void
-gog_moving_avg_populate_editor (GogObject *obj,
+gog_moving_avg_populate_editor (GogObject *obj,
GOEditor *editor,
GogDataAllocator *dalloc,
GOCmdContext *cc)
@@ -192,13 +192,13 @@ gog_moving_avg_class_init (GogSmoothedCurveClass *curve_klass)
gog_object_klass->type_name = gog_moving_avg_type_name;
g_object_class_install_property (gobject_klass, MOVING_AVG_PROP_SPAN,
- g_param_spec_int ("span",
+ g_param_spec_int ("span",
_("Span"),
- _("Number of averaged values"),
+ _("Number of averaged values"),
2, G_MAXINT, 3,
GSF_PARAM_STATIC | G_PARAM_READWRITE | GO_PARAM_PERSISTENT));
g_object_class_install_property (gobject_klass, MOVING_AVG_PROP_XAVG,
- g_param_spec_boolean ("xavg",
+ g_param_spec_boolean ("xavg",
_("Average X"),
_("Use averaged x values"),
TRUE,
diff --git a/plugins/smoothing/gog-moving-avg.h b/plugins/smoothing/gog-moving-avg.h
index 3669b06..8e36987 100644
--- a/plugins/smoothing/gog-moving-avg.h
+++ b/plugins/smoothing/gog-moving-avg.h
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * smoothing/gog-moving-avg.h :
+ * smoothing/gog-moving-avg.h :
*
* Copyright (C) 2006 Jean Brefort (jean brefort normalesup org)
*
diff --git a/plugins/smoothing/plugin.c b/plugins/smoothing/plugin.c
index 5a766a2..bcc64d5 100644
--- a/plugins/smoothing/plugin.c
+++ b/plugins/smoothing/plugin.c
@@ -1,11 +1,11 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * smoothing/plugin.c :
+ * smoothing/plugin.c :
*
* Copyright (C) 2006-2008 Jean Brefort (jean brefort normalesup org)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
diff --git a/tests/go-demo.c b/tests/go-demo.c
index 4050f25..5da8b7b 100644
--- a/tests/go-demo.c
+++ b/tests/go-demo.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * go-demo.c :
+ * go-demo.c :
*
* Copyright (C) 2003-2005 Jean Brefort (jean brefort normalesup org)
* Copyright (C) 2008 Sun Microsystems, Inc. All rights reserved.
@@ -41,7 +41,7 @@ typedef struct _GoDemoPrivate GODemoPrivate;
struct _GoDemoPrivate {
GtkWidget *toplevel;
GtkBuilder *xml;
-
+
GtkAction *menu_item_quit;
GtkWidget *btn_regen;
GtkWidget *notebook_charts;
@@ -312,7 +312,7 @@ init_data_widgets (GODemoPrivate *priv)
{
int i;
char *wname = NULL;
-
+
for (i =0; i< 6; i++) {
/* init legend widgets */
g_free (wname);
diff --git a/tests/pie-demo.c b/tests/pie-demo.c
index 06f40e8..2177a0f 100644
--- a/tests/pie-demo.c
+++ b/tests/pie-demo.c
@@ -1,6 +1,6 @@
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * pie-demo.c :
+ * pie-demo.c :
*
* Copyright (C) 2003-2005 Jean Brefort (jean brefort normalesup org)
* This program is free software; you can redistribute it and/or modify
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]