[goffice] locale: free stuff on shutdown.



commit 5008e4aa916405b59a7938109874d893ef619913
Author: Morten Welinder <terra gnome org>
Date:   Mon Aug 23 16:24:15 2010 -0400

    locale: free stuff on shutdown.

 ChangeLog                 |  457 +++++++++++++++++++++++----------------------
 goffice/goffice.c         |    1 +
 goffice/utils/go-locale.c |   17 ++
 goffice/utils/go-locale.h |    2 +
 4 files changed, 251 insertions(+), 226 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a53029b..ac570b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-08-23  Morten Welinder  <terra gnome org>
+
+	* goffice/goffice.c (libgoffice_shutdown): Free locale vars too.
+	* goffice/utils/go-locale.c (_go_locale_shutdown): New function.
+
 2010-08-20  Morten Welinder  <terra gnome org>
 
 	* goffice/utils/go-glib-extras.c (go_string_replace): pos==len is
@@ -434,7 +439,7 @@
 	(go_component_type_service_read_xml),
 	(go_component_type_service_activate),
 	(go_component_type_service_deactivate),
-	(go_component_type_service_class_init): implement components plugins 
+	(go_component_type_service_class_init): implement components plugins
 	activation/deactivation.
 	* goffice/component/goffice-component.h: add missing headers.
 
@@ -1406,7 +1411,7 @@
 
 2009-09-29  Jean Brefort  <jean brefort normalesup org>
 
-	* plugins/plot_xy/gog-xy.c (gog_xy_view_render): fix point custom 
+	* plugins/plot_xy/gog-xy.c (gog_xy_view_render): fix point custom
 	marker rendering. [#596585]
 
 2009-09-27  Jean Brefort  <jean brefort normalesup org>
@@ -1905,7 +1910,7 @@
 2009-08-02  Andreas J. Guelzow  <aguelzow pyrshep ca>
 
 	* plugins/plot_distrib/plugin.xml.in: fix spelling
-	
+
 2009-07-24  Jean Brefort  <jean brefort normalesup org>
 
 	* plugins/plot_surface/gog-contour.c (gog_contour_view_render): don't
@@ -1982,33 +1987,33 @@
 
 2009-06-24  Andreas J. Guelzow  <aguelzow pyrshep ca>
 
-	* goffice/utils/go-format.c 
+	* goffice/utils/go-format.c
 	(go_format_output_scientific_number_element_to_odf): only add
 	  gnm:engineering when asked to do so
 
 2009-06-23  Andreas J. Guelzow  <aguelzow pyrshep ca>
 
-	* utils/go-format.c (go_format_output_date_to_odf): be as explicit 
+	* utils/go-format.c (go_format_output_date_to_odf): be as explicit
 	  as possible with respect to elapsed time and avoid it when we
 	  are outputting a date-style.
-	
+
 2009-06-23  Andreas J. Guelzow  <aguelzow pyrshep ca>
 
-	* utils/go-format.c (go_format_output_date_to_odf): also consider 
+	* utils/go-format.c (go_format_output_date_to_odf): also consider
 	  elapsed seconds
 
 2009-06-22  Andreas J. Guelzow  <aguelzow pyrshep ca>
 
-	* utils/go-format.c (go_format_output_date_to_odf): handle elapsed 
+	* utils/go-format.c (go_format_output_date_to_odf): handle elapsed
 	  times better
 	(go_format_output_number_to_odf): also handle currencies and accounting
 	(go_format_output_currency_to_odf): deleted
-	(go_format_output_to_odf): use go_format_output_number_to_odf for 
+	(go_format_output_to_odf): use go_format_output_number_to_odf for
 	  currencies too
 
 2009-06-22  Andreas J. Guelzow  <aguelzow pyrshep ca>
 
-	* utils/go-format.c (go_format_output_date_to_odf): use family rather 
+	* utils/go-format.c (go_format_output_date_to_odf): use family rather
 	  than details, add color
 	(go_format_output_fraction_to_odf): add color
 	(go_format_output_number_to_odf): use unichar minus
@@ -2028,7 +2033,7 @@
 	(go_format_output_scientific_number_to_odf): ditto
 	(go_format_output_general_to_odf): ditto
 	(go_format_output_to_odf): adjust the calls to the above functions
-	
+
 2009-06-21  Andreas J. Guelzow  <aguelzow pyrshep ca>
 
 	* utils/go-format.c (go_format_output_number_to_odf): add missed
@@ -2061,9 +2066,9 @@
 
 2009-06-17  Andreas J. Guelzow  <aguelzow pyrshep ca>
 
-	* utils/go-format.c (go_format_output_general_to_odf): we need to 
+	* utils/go-format.c (go_format_output_general_to_odf): we need to
 	output something
-	(go_format_output_to_odf): if we don't know what kind of format 
+	(go_format_output_to_odf): if we don't know what kind of format
 	it is, make a guess
 
 2009-06-14  Morten Welinder  <terra gnome org>
@@ -2087,7 +2092,7 @@
 
 	* goffice/utils/go-format.c (go_format_output_currency_to_odf):
 	  account for the possibility of NULL currency
-	
+
 2009-06-02  Andreas J. Guelzow  <aguelzow pyrshep ca>
 
 	* goffice/utils/go-format.c (go_format_output_number_to_odf):
@@ -2122,12 +2127,12 @@
 	  and pass to go_format_output_*_to_odf
 	(go_format_output_*_to_odf): add argument determining whether to use
 	  foreign elements
-	
+
 2009-06-01  Andreas J. Guelzow  <aguelzow pyrshep ca>
 
 	* goffice/utils/go-format.c (go_format_output_fraction_to_odf):
 	  fix min-denominator-digits
-	
+
 2009-06-01  Andreas J. Guelzow  <aguelzow pyrshep ca>
 
 	* goffice/utils/go-format.c (go_format_output_fraction_to_odf):
@@ -2137,7 +2142,7 @@
 
 	* goffice/utils/go-format.c (go_format_output_date_to_odf):
 	  mark elaspsed time with gnm: attribute
-	
+
 2009-05-31  Morten Welinder  <terra gnome org>
 
 	* goffice/utils/go-format.c (go_format_inc_precision,
@@ -2149,12 +2154,12 @@
 
 	* goffice/utils/go-format.c (go_format_output_date_to_odf):
 	  mark elaspsed time with gnm: attribute
-	
+
 2009-05-31  Andreas J. Guelzow  <aguelzow pyrshep ca>
 
 	* goffice/utils/go-format.c (go_format_output_fraction_to_odf):
 	  rewrite to export the true format
-	
+
 2009-05-31  Andreas J. Guelzow  <aguelzow pyrshep ca>
 
 	* goffice/utils/go-format.c (go_format_output_date_to_odf): store
@@ -2163,7 +2168,7 @@
 2009-05-31  Andreas J. Guelzow  <aguelzow pyrshep ca>
 
 	* goffice/utils/go-format.c (fill_accumulator): delete
-	(go_format_output_date_to_odf): rewrite without reference to the 
+	(go_format_output_date_to_odf): rewrite without reference to the
 	  style program
 
 2009-05-30  Andreas J. Guelzow  <aguelzow pyrshep ca>
@@ -2226,7 +2231,7 @@
 	* goffice/gtk/go-format-sel.c (struct _GOFormatSel): Use a
 	GOFormatDetails instead of individual members.
 	(generate_format): Eliminate in favour of go_format_generate_str.
-	(study_format): Simplify using go_format_get_details.	
+	(study_format): Simplify using go_format_get_details.
 	(find_symbol): Remove.
 
 	* goffice/utils/go-format.c (go_format_generate_accounting_str):
@@ -2285,7 +2290,7 @@
 	(go_format_output_to_odf): new
 	* goffice/utils/go-format.h (go_format_odf_style_map): new
 	(go_format_output_to_odf): new
-	
+
 2009-05-23  Morten Welinder <terra gnome org>
 
 	* Release 0.7.7
@@ -2411,7 +2416,7 @@
 	go_data_as_str.  Add user pointer argument.  All callers changed.
 	(go_data_unserialize): Rename from go_data_from_str.  Add user
 	pointer argument.  All callers changed.
-	
+
 2009-04-28  Morten Welinder  <terra gnome org>
 
 	* goffice/graph/gog-axis.c (map_log_calc_ticks): Handle
@@ -2434,7 +2439,7 @@
 2009-04-26  Jean Brefort  <jean brefort normalesup org>
 
 	* configure.in: Post release bump.
-	
+
 2009-04-25  Morten Welinder <terra gnome org>
 
 	* Release 0.7.5
@@ -3039,7 +3044,7 @@
 	(gog_series_get_property), (cb_line_interpolation_changed),
 	(cb_line_interpolation_skip_changed), (gog_series_populate_editor),
 	(gog_series_class_init): ditto.
-	* goffice/graph/gog-smoothed-curve.c: 
+	* goffice/graph/gog-smoothed-curve.c:
 	(gog_smoothed_curve_view_render): update after gog_chart_map_make_path
 	signature change.
 	* goffice/utils/Makefile.am: add bezier splines evaluation.
@@ -3440,7 +3445,7 @@
 	* plugins/plot_barcol/gog-line.c: (gog_line_view_render): removed some
 	stupid unused code (probably a copy/paste incident).
 
-2008-01-05  J.H.M. Dassen (Ray) <jdassen debian org> 
+2008-01-05  J.H.M. Dassen (Ray) <jdassen debian org>
 
 	* goffice/graph/gog-styled-object.c: Include <string.h> for strlen and
 	<goffice/app/go-doc.h> for go_doc_add_image.
@@ -3752,8 +3757,8 @@
 
 2008-06-13  Rob Staudinger <robert staudinger gmail com>
 
-	* goffice/gtk/go-color-palette.c (make_colored_menu_item): Use plain 
-	menu items for toolbar overflow image menu item proxies, so they are 
+	* goffice/gtk/go-color-palette.c (make_colored_menu_item): Use plain
+	menu items for toolbar overflow image menu item proxies, so they are
 	displayed correctly with gtk-menu-images=0, fixes #537541.
 	* goffice/gtk/go-combo-pixmaps.c (go_menu_pixmaps_add_element): ditto.
 
@@ -4032,7 +4037,7 @@
 	* autogen.sh: Replace last change with a final test for the actual
 	bug in question.
 
-2008-01-05  J.H.M. Dassen (Ray) <jdassen debian org> 
+2008-01-05  J.H.M. Dassen (Ray) <jdassen debian org>
 
 	* autogen.sh (REQUIRED_GTK_DOC_VERSION): Specify a minimum version
 	which has the right shell error handling logic in gtk-doc.make not so
@@ -4057,7 +4062,7 @@
 
 2007-12-13  Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
 
-	Fix pattern with semi-transparent colors. 
+	Fix pattern with semi-transparent colors.
 
 	* goffice/utils/go-pattern (go_pattern_create_cairo_pattern): cairo uses
 	premultiplied color components.
@@ -4160,7 +4165,7 @@
 
 2007-11-29  Andreas J. Guelzow  <aguelzow pyrshep ca>
 
-	* goffice/utils/go-format.c (go_format_inc_precision): Handle 
+	* goffice/utils/go-format.c (go_format_inc_precision): Handle
 	  increase of decimals also for E.
 	  Fixes add-decimals problem from #500365.
 
@@ -4497,10 +4502,10 @@
 	just render directly. The patch uses a temporary image surface, since
 	rendering onto an xlib surface may cause segfault on path with lot of
 	points. Another issue is all path point coordinates are clipped as a
-	workaround to the long line cairo bug, which means the graph content 
+	workaround to the long line cairo bug, which means the graph content
 	won't display beyond the clipping value.
-	The arbitrary limit is set to image with a number of pixels greater 
-	than the number of screen pixels. 
+	The arbitrary limit is set to image with a number of pixels greater
+	than the number of screen pixels.
 
 	* goffice/graph/gog-control-foocanvas.c (gog_control_foocanvas_draw),
 	(gog_control_foocanvas_update): here.
@@ -4658,7 +4663,7 @@
 	gog_renderer_update / gog_renderer_get_cairo_surface, it always redo
 	the size allocation and doesn't cache the rendering result.
 
-	Some API cleanup by removing gog_renderer_new_for_foo functions, 
+	Some API cleanup by removing gog_renderer_new_for_foo functions,
 	replaced by gog_renderer_new. Restore the unused zoom parameter of
 	gog_renderer_update, in order to keep compatibility with goffice 0.4.
 
@@ -4668,7 +4673,7 @@
 	gog_renderer_update_call.
 	* goffice/graph/gog-graph.c (gog_graph_export_image): use
 	gog_renderer_new.
-	(gog_graph_render_to_cairo), 
+	(gog_graph_render_to_cairo),
 	(gog_graph_render_to_cairo_vector): ditto. Use
 	gog_renderer_render_to_cairo.
 	* goffice/graph/gog-renderer.c (gog_renderer_render_to_cairo): new.
@@ -4732,7 +4737,7 @@
 	* goffice/gtk/go-graph-widget (update_image_rect): ditto.
 
 	Use a cairo_surface for graph image cache, instead of pixbuf. Remove
-	"cairo" and "is_vector" properties, they are internal variables. Also 
+	"cairo" and "is_vector" properties, they are internal variables. Also
 	remove "zoom", it's unused.
 
 	* goffice/graph/gog-renderer.c (gog_renderer_update): remove unused
@@ -4844,7 +4849,7 @@
 	* goffice/Makefile.am : use -Wl,-lhtmlhelp to avoid libtool getting
 	  irrate about no matching .dll
 
-	* plugins/plot_radar/gog-radar.c (gog_radar_area_plot_init) : 
+	* plugins/plot_radar/gog-radar.c (gog_radar_area_plot_init) :
 	  RadarArea defaults to having a fill.
 
 2007-09-08  Jean Brefort  <jean acer>
@@ -4914,7 +4919,7 @@
 
 2007-08-25  Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
 
-	Move GOPattern code to cairo. 
+	Move GOPattern code to cairo.
 	Minor tweak of go_marker_create_cairo_surface.
 
 	* goffice/graph/gog-renderer.c (emit_fill): use
@@ -5218,7 +5223,7 @@
 	* goffice/utils/go-path.c (go_path_ring_wedge): always begin with a
 	move_to.
 	* plugins/plot_radar/gog-radar.c: add a default_style_has_fill
-	property, like XY plots. 
+	property, like XY plots.
 	(gog_rt_view_render): disable clipping for now.
 
 2007-08-03  Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
@@ -5420,7 +5425,7 @@
 	selector...
 	* goffice/graph/gog-series-prefs.glade: ...here.
 	* goffice/graph/gog-style.c (line_init): register line_box
-	widget for later extension.						
+	widget for later extension.
 	(cb_line_interpolation_changed): removed.
 	(interp_init): removed.
 	(gog_style_interpolation_load): removed.
@@ -5430,7 +5435,7 @@
 	properties.
 	(gog_xy_view_render): line interpolation is a GogSeries property now.
 
-2007-07-29  J.H.M. Dassen (Ray) <jdassen debian org> 
+2007-07-29  J.H.M. Dassen (Ray) <jdassen debian org>
 
 	* configure.in: Resync ALL_LINGUAS with po files.
 
@@ -5685,7 +5690,7 @@
 	(go_geometry_calc_label_position): add an acnhor parameter.
 
 	* goffice/utils/datetime.c: fix compilation warning.
-			    
+
 2007-03-28  Morten Welinder  <terra gnome org>
 
 	* goffice/gtk/go-format-sel.c (generate_number, generate_format,
@@ -5743,14 +5748,14 @@
 	boxplot rendering (blur at fill edges). Remove commented code.
 	* goffice/graph/gog-renderer-cairo.c (grc_line_size): round and not
 	floor, that more close to vector rendering.
-	(grc_path_raw): fix even width check. 
+	(grc_path_raw): fix even width check.
 	(grc_draw_path): add a kludge in order to completly fix #403403.
 	(gog_renderer_cairo_push_style): fix rectangular clip region.
 	* goffice/graph/gog-legend.c (cb_render_elements): fix line sample
 	rendering.
 	(gog_legend_view_render): sets the clip region to view residual...
 	(gog_legend_view_class_init): ... not view allocation.
-	
+
 2007-03-02  Morten Welinder  <terra gnome org>
 
 	* goffice/graph/gog-axis-line.c (axis_line_render): If we have to
@@ -5759,7 +5764,7 @@
 
 2007-03-02  Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
 
-	* goffice/graph/gog-style.c (gog_style_line_sax_save): increase float 
+	* goffice/graph/gog-style.c (gog_style_line_sax_save): increase float
 	format precision.
 	(gog_style_gradient_sax_save): ditto.
 	(gog_style_text_layout_sax_save): ditto.
@@ -5862,7 +5867,7 @@
 	(cb_swatch_scale): compute the scale used for restricting sample width
 	in order to always shows correctly the dashed lines.
 	(cb_render_elements): apply line width scale.
-	
+
 2007-02-20  Morten Welinder  <terra gnome org>
 
 	* goffice/utils/go-locale.c (go_locale_get_time_format): New
@@ -5884,7 +5889,7 @@
 	* goffice/graph/gog-object.c (gog_object_class_init): sets the
 	GOG_PARAM_POSITION flag for "compass", "alignment" and "anchor".
 	(gog_object_is_default_position_flags): new.
-						
+
 2006-02-17  Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
 
 	Dashed line improvements. More line styles.
@@ -5913,13 +5918,13 @@
 	line sample longer.
 	(cb_render_elements): ditto.
 	* goffice/graph/gog-renderer.c: add a sharp parameter to draw_path,
-	draw_polygon and line_size virtuals. 
+	draw_polygon and line_size virtuals.
 	(line_size): new.
 	* goffice/graph/gog-renderer.h: double the width of the hairline for
-	vector formats. 
+	vector formats.
 	* goffice/graph/gog-renderer-svg.c: stroke with round line cap. Add
-	sharp parameter. 
-	
+	sharp parameter.
+
 2007-02-16  Morten Welinder <terra gnome org>
 
 	* Release 0.3.6
@@ -5981,7 +5986,7 @@
 	(gog_text_view_render): ditto.
 	* goffice/graph/gog-legend.c (cb_size_elements): ditto.
 	(cb_render_elements): ditto.
-	
+
 	* goffice/graph/gog-axis-line..c (axis_line_get_bbox): use pango
 	markup (for exponent of log axes).
 	(axis_line_render): ditto.
@@ -5989,7 +5994,7 @@
 	(axis_circle_render): ditto.
 	* goffice/graph/gog-axis.c (map_discrete_calc_ticks): but escape user
 	text here.
-	
+
 	* goffice/graph/gog-grid.c (gog_grid_view_render): handle new
 	GogAxisSet type.
 
@@ -6085,7 +6090,7 @@
 	(gog_error_bar_prefs): ditto.
 	* goffice/graph/gog-style-prefs.glade: layout fixes.
 	* pixmaps/bar*.png: convert to 16x16 images.
-	
+
 2006-12-27  Morten Welinder  <terra gnome org>
 
 	* goffice/utils/go-math.c (go_continued_fraction): Use integer
@@ -6185,7 +6190,7 @@
 	* goffice/graph/gog-plot.c (gog_plot_get_cardinality): move update and
 	cache...
 	(gog_plot_update_cardinality): here. [#382663]
-							    
+
 2006-12-07  Morten Welinder  <terra gnome org>
 
 	* goffice/utils/regutf8.c (go_regexec): Use g_try_new and require
@@ -6283,7 +6288,7 @@
 
 2006-11-06  Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
 
-	* goffice/gtk/go-color-selector.c (go_color_selector_new): adapt 
+	* goffice/gtk/go-color-selector.c (go_color_selector_new): adapt
 	to new go_palette_new signature.
 	* goffice/gtk/go-gradient-selector.c (go_gradient_selector_new):
 	ditto.
@@ -6391,17 +6396,17 @@
 	checks won't build with GTK+ 2.6.x and Glib >= 2.8. I'll need to
 	come up with a better work-around for this, as it also effects
 	Gnumeric proper.
-	
+
 2006-10-06  Dom Lachowicz <domlachowicz gmail com>
 
-	* goffice/gtk/goffice-gtk.c: Conditionally implement 
+	* goffice/gtk/goffice-gtk.c: Conditionally implement
 	gdk_cairo_set_source_pixbuf(), stolen from GTK+ 2.8. Implement
 	go_cairo_set_source_pixbuf() in terms of it.
 	* goffice/gtk/goffice-gtk.h: Ditto
 	* goffice/gtk/go-market-selector.c: Use go_cairo_set_source_pixbuf()
 	* goffice/gtk/go-pattern-selector.c: Ditto
 	* configure.in: Check for gdk_cairo_set_source_pixbuf()
-	
+
 2006-10-06  Dom Lachowicz <domlachowicz gmail com>
 
 	* libgoffice-0.3.pc.in: Require pangocairo. Not everyone has GTK+ 2.8
@@ -6409,7 +6414,7 @@
 2006-10-06  Dom Lachowicz <domlachowicz gmail com>
 
 	* libgoffice-0.3.pc.in: Require cairo. Not everyone has GTK+ 2.8
-	
+
 2006-10-06  Jon K Hellan  <hellan acm org>
 
 	* goffice/gtk/goffice-gtk.c (gui_get_image_save_info): Don't hide
@@ -6419,7 +6424,7 @@
 
 2006-10-05  Jon K Hellan  <hellan acm org>
 
-	* goffice/utils/go-image.c (go_mime_to_image_format) 
+	* goffice/utils/go-image.c (go_mime_to_image_format)
 	(go_image_build_pixbuf_format_infos): Base mime_to_image_format on
 	info from gdk-pixbuf.
 
@@ -6433,7 +6438,7 @@
 
 	* goffice/gtk/go-palette.h: Include cairo.h. Don't assume that GTK+
 	automatically brings it in.
-	
+
 2006-10-05  Jean Brefort  <jean brefort normalesup org>
 
 	* plugins/plot_boxes/gog-boxplot.c: (gog_box_plot_view_render): fixed
@@ -6503,13 +6508,13 @@
 	* configure.in: lower cairo requirement to 1.0. Use SVG renderer if
 	cairo SVG backend is not available.
 	* goffice/graph/Makefile.am: ditto.
-	* goffice/graph/gog-graph.c (gog_graph_get_supported_image_formats): SVG 
+	* goffice/graph/gog-graph.c (gog_graph_get_supported_image_formats): SVG
 	always supported.
 	* goffice/graph/gog-renderer-cairo.c
 	(gog_renderer_cairo_export_image): move
 	cairo_surface_set_fallback_resolution inside #ifdef statements. This
 	is a new API only available in cairo >= 1.2.0, as PDF and PS backends.
-	
+
 2006-09-18  Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
 
 	* goffice/graph/gog-style-prefs.glade: some tweaks. Use only two color
@@ -6526,21 +6531,21 @@
 	* goffice/gtk/go-selector.c: ditto.
 	* goffice/gtk/go-palette.c: ditto.
 	(cb_swatch_expose): implementation for gtk < 2.8.0.
-	
+
 	* goffice/utils/go-gradient.c (go_gradient_selector): removed.
 	* goffice/utils/go-line.c (go_line_dash_selector): removed.
 	* goffice/utils/go-marker.c (go_marker_selector): removed.
 	* goffice/utils/go-pattern.c (go_pattern_selector): removed.
 
 	* goffice/utils/format.c (find_decimal_char): fix warning.
-	
+
 2006-09-17  Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
 
 	* configure.in: hard dependency to cairo 1.2.0. Alwayas define
 	GOFFICE_WITH_CAIRO.
 	* goffice/graph/Makefile.am: always build cairo renderer. Don't build
 	pixbuf and svg renderers.
-	* goffice/graph/gog-axis.c: suppress condition on GOFFICE_WITH_CAIRO 
+	* goffice/graph/gog-axis.c: suppress condition on GOFFICE_WITH_CAIRO
 	(format with markup).
 	* goffice/graph/gog-graph.c: ditto.
 	* goffice/graph/gog-renderer-gnome-print.c: ditto (text with markup).
@@ -6676,7 +6681,7 @@
 	(go_marker_selector_new): ditto.
 	(go_marker_selector_set_colors): new.
 	* goffice/gtk/go-palette.c (cb_swatch_expose): don't leak cairo_t.
-	
+
 2006-09-03  Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
 
 	* goffice/gtk/go-color-group.c (go_color_group_add_color): fix
@@ -6726,7 +6731,7 @@
 	(gog_theme_lookup): renamed to gog_theme_registry_lookup.
 	(gog_theme_registry_get_theme_names): new.
 	(gog_themes_init): Theme for chart titles. Tweak Guppi theme.
-			   
+
 2006-08-18  Jean Brefort  <jean brefort normalesup org>
 
 	* goffice/graph/gog-style.c: (str_as_image_type),
@@ -6789,7 +6794,7 @@
 	displayed for minimum < 0.0).
 	(map_log_auto_bounds): ditto.
 	(map_log_calc_ticks): ditto.
-	
+
 2006-07-30  Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
 
 	* plugins/plot_radar/gog-radar.c (gog_rt_view_render): fix a crash
@@ -6797,7 +6802,7 @@
 
 2006-07-28  Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
 
-	* goffice/graph/gog-theme.c (gog_themes_init): set serie default fill 
+	* goffice/graph/gog-theme.c (gog_themes_init): set serie default fill
 	style to GOG_FILL_STYLE_PATTERN.
 	* plugins/plot_boxes/gog-histogram.c (gog_histogram_plot_view_render):
 	make histogram plots sharp.
@@ -6849,7 +6854,7 @@
 	* goffice/utils/format.c (go_format_number): handle new ?pi/? format.
 	* plugins/plot_radar/gog-radar.c (gog_polar_plot_axis_get_bounds):
 	don't limit bounds to 0 / 360 °.
-	
+
 2006-06-28  Jody Goldberg <jody gnome org>
 
 	* goffice/graph/gog-style.h : include <cairo.h> rather than
@@ -6859,7 +6864,7 @@
 2006-06-16  Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
 
 	Add support for background stripes.
-	
+
 	* goffice/graph/gog-chart.c (grid_line_render): render stripes, then
 	lines. Add a kludge layer on top of the initial kludge, since we
 	don't use GogView::render, but specialized render functions.
@@ -6946,7 +6951,7 @@
 	* goffice/utils/go-cairo.c: new.
 	* goffice/utils/go-cairo.h: new. These files are just commited, not
 	used yet.
-	
+
 2006-05-26  Jean Brefort  <jean brefort normalesup org>
 
 	* plugins/plot_xy/gog-xy.c: add four types of stepped plots.
@@ -6996,7 +7001,7 @@
 	(get_adjusted_tick_array): obviously, I'm not reliable when it comes
 	to calculate memory allocation sizes, so emit a critical when
 	something's wrong.
-	
+
 2006-05-22  Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
 
 	* goffice/utils/go-image.c (go_image_build_pixbuf_format_infos):
@@ -7012,8 +7017,8 @@
 
 	* goffice/utils/go-format.c: new alpha_support property for
 	GOImageFormatInfo. Tells wether export format support alpha channel.
-	* goffice/graph/gog-renderer-cairo.c 
-	(gog_renderer_cairo_export_image): for image formats that don't 
+	* goffice/graph/gog-renderer-cairo.c
+	(gog_renderer_cairo_export_image): for image formats that don't
 	support alpha channel, composite onto white background.
 	* goffice/graph/gog-renderer-pixbuf.c
 	(gog_renderer_pixbuf_export_image): ditto.
@@ -7099,12 +7104,12 @@
 
 2006-05-06  Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
 
-	* goffice/graph/gog-style.c (text_layout_init): Add border around 
+	* goffice/graph/gog-style.c (text_layout_init): Add border around
 	rotation selector widget.
 
 2006-05-06  Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
 
-	* goffice/graph/gog-renderer-gnome-print.c 
+	* goffice/graph/gog-renderer-gnome-print.c
 	(gog_renderer_gnome_print_draw_text):
 	Use markup when compiled with cairo support.
 	(gog_renderer_gnome_print_get_text_OBR): ditto.
@@ -7286,7 +7291,7 @@
 	Adds a special format using pango markup for superscripted exponents,
 	currently only enabled in format selector in graph guru when using
 	cairo renderer.
-	
+
 	* goffice/graph/gog-axis.c (gog_axis_populate_editor): enable format
 	with markup when using cairo.
 	* goffice/gtk/go-format-sel.c (generate_format): handle new format
@@ -7312,7 +7317,7 @@
 	science/percentage format.
 	(cell_format_is_number): handle simplification of mantissa, use of
 	markup and exponent step for scientific format.
-	
+
 2006-04-04  Morten Welinder  <terra gnome org>
 
 	* goffice/app/go-plugin.c (go_plugin_deactivate): Unload the
@@ -7346,7 +7351,7 @@
 	* configure.in: Borrowed code from libgsf to check for g_chmod(),
 	avoiding dependency on glib 2.8.
 	* goffice/utils/go-file.c (go_set_file_permissions): Call chmod()
-	instead of g_chmod() if not defined HAVE_G_CHMOD. 
+	instead of g_chmod() if not defined HAVE_G_CHMOD.
 
 2006-03-23  Morten Welinder  <terra gnome org>
 
@@ -7421,7 +7426,7 @@
 2006-03-11  Jody Goldberg <jody gnome org>
 
 	* goffice/gtk/go-combo-box.c :
-	* goffice/gtk/go-color-palette.c : 
+	* goffice/gtk/go-color-palette.c :
 	* goffice/gtk/go-combo-pixmaps.c : use g_object_ref_sink
 	  for newer versions of glib.
 
@@ -7464,21 +7469,21 @@
 2006-02-28  Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
 
 	* goffice/graph/gog-legend.c (cb_size_elements): don't push legend
-	style here. Pass GogLegendView pointer directly. 
+	style here. Pass GogLegendView pointer directly.
 	(cb_render_elements): don't push legend style here. Keep marker size
-	to sane values. 
+	to sane values.
 	(cb_swatch_scale): calculate maximum and minimum marker size.
 	(gog_legend_view_size_request): make swatch size a function of legend
 	font size.
 	(gog_legend_view_render): ditto. Keep marker size to sane values.
-				  
+
 	* goffice/graph/gog-plot.c (gog_tool_move_plot_area_double_click): set
 	position to automatic on double click.
 	* goffice/graph/gog-object.c (gog_tool_move_object_double_click):
 	ditto.
-	
+
 	* goffice/graph/gog-style.c (gog_style_get_marker): new.
-	
+
 2006-02-25  Jean Brefort  <jean brefort normalesup org>
 
 	* goffice/utils/go-file.c: (go_mime_type_get_description): use
@@ -7495,11 +7500,11 @@
 	cb_manual_toggle_changed.
 	(cb_update_editor): ditto.
 	(gog_plot_populate_editor): ditto.
-	
+
 2006-02-21  Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
 
 	Move plot area property editor to GogPlot.
-	
+
 	* goffice/graph/gog-axis-line.c (gog_tool_select_axis_point),
 	(gog_tool_select_axis_render),
 	(gog_tool_move_stop_bound_point),
@@ -7518,11 +7523,11 @@
 	(gog_pie_view_build_toolkit): and enable edition by mouse.
 	* plugins/plot_surface/gog-surface.c
 	(gog_contour_plot_populate_editor): show plot area editor.
-					    
-	* goffice/graph/gog-renderer-cairo.c (grc_pixbuf_to_cairo): probably 
+
+	* goffice/graph/gog-renderer-cairo.c (grc_pixbuf_to_cairo): probably
 	fix pixbuf to cairo data conversion for big endian in a renamed
 	grc_invert_pixbuf_RB.
-	
+
 	* goffice/graph/gog-view.c (gog_tool_select_object_render): fix object
 	outline.
 
@@ -7773,7 +7778,7 @@
 
 2005-12-17  J.H.M. Dassen (Ray) <jdassen debian org>
 
-	* goffice/graph/gog-style.h: 
+	* goffice/graph/gog-style.h:
 	  #include <goffice/graph/gog-renderer-pixbuf.h> for GdkPixbuf;
 	  #include <goffice/utils/go-font.h> for PangoFontDescription.
 
@@ -7783,7 +7788,7 @@
 	GOFFICE_WITH_GNOME.
 	* configure.in: rename WITH_GTK and WITH_GNOME to GOFFICE_WITH_GTK and
 	GOFFICE_WITH_GNOME.
-	* goffice/graph/gog-error-bar.c: ditto. 
+	* goffice/graph/gog-error-bar.c: ditto.
 	* goffice/graph/gog-error-bar.h: ditto.
 	* goffice/gtk/goffice-gtk.c: (go_help_display): ditto.
 	* goffice/utils/go-color.c: ditto.
@@ -7904,8 +7909,8 @@
 2005-12-04  Emmanuel Pacaud <emmanuel pacaud univ-poitiers fr>
 
 	* goffice/graph/goffice-graph.h: declare GogSeriesLines here.
-	* goffice/graph/gog-axis-line.h: make gtk-doc happy by creating a 
-	GogAxisTickTypes struct. 
+	* goffice/graph/gog-axis-line.h: make gtk-doc happy by creating a
+	GogAxisTickTypes struct.
 	* goffice/graph/gog-axis-line.c (gog_tool_move_stop_bound_move): don't
 	access GogAxisMap::axis directly.
 	* goffice/graph/gog-axis.c: make GogAxisMap and GogAxisMapDesc
@@ -7928,7 +7933,7 @@
 	* goffice/utils/format.c: ditto.
 	* goffice/utils/go-glib-extras: ditto.
 	* goffice/utils/go-marker.c: make GOMarker struct private.
-	
+
 2005-12-03  Emmanuel Pacaud <emmanuel pacaud univ-poitiers fr>
 
 	* goffice/graph/gog-axis: doc fixes.
@@ -7997,7 +8002,7 @@
 2005-12-01  Emmanuel Pacaud <emmanuel pacaud univ-poitiers fr>
 
 	Enable gtk-doc.
-	
+
 	* Makefile.am: add docs to SUBDIRS.
 	* configure.in: add GTK_DOC_CHECK. Add docs Makefile to
 	AC_CONFIG_FILES.
@@ -8042,7 +8047,7 @@
 2005-11-20  Emmanuel Pacaud <emanuel pacaud univ-poitiers fr>
 
 	Fix smoothness of object movements in guru.
-	
+
 	* goffice/graph/gog-graph.c (gog_graph_view_handle_event): force
 	update processing, and call gdk_window_get_pointer in order to get
 	next motion event.
@@ -8066,13 +8071,13 @@
 	* goffice/graph/gog-renderer.c (gog_renderer_new_for_pixbuf): new.
 	(gog_renderer_update): new.
 	(gog_renderer_get_pixbuf): new.
-	* goffice/gtk/go-graph-widget.c (go_graph_widget_size_allocate): use 
-	new helper functions from gog-renderer instead of requesting 
+	* goffice/gtk/go-graph-widget.c (go_graph_widget_size_allocate): use
+	new helper functions from gog-renderer instead of requesting
 	explicitely a pixbuf renderer.
 	(go_graph_widget_expose_event): ditto.
 	(idle_handler): ditto.
 	(go_graph_widget_init): ditto.
-	
+
 2005-11-17  Emmanuel Pacaud <emanuel pacaud univ-poitiers fr>
 
 	* pixmap/chart_dropbar_1_[12].[svg,png]: fix rendering and bitmap.
@@ -8087,9 +8092,9 @@
 2005-11-15  Emmanuel Pacaud <emanuel pacaud univ-poitiers fr>
 
 	* goffice/graph/gog-axis-line.c (gog_tool_select_axis_point),
-	(gog_tool_select_axis_render), 
+	(gog_tool_select_axis_render),
 	(gog_tool_bound_is_valid_axis),
-	(gog_tool_move_start_bound_point), 
+	(gog_tool_move_start_bound_point),
 	(gog_tool_move_start_bound_render),
 	(gog_tool_move_stop_bound_point),
 	(gog_tool_move_stop_bound_render),
@@ -8193,7 +8198,7 @@
 	* plugins/plot_radar/gog-radar.c (fmin): removed.
 	(gog_rt_view_info_at_point): removed.
 	* plugins/plot_xy/gog-xy.c (gog_xy_view_info_at_point): ditto.
-								 
+
 2005-11-14  Jody Goldberg <jody gnome org>
 
 	* configure.in : post BRANCH bump
@@ -8345,14 +8350,14 @@
 
 	* goffice/gtk/go-action-combo-pixmaps.c:
 	(go_action_combo_pixmaps_create_tool_item): translate non goffice strings
-	[#318042].	
+	[#318042].
 	* goffice/gtk/goffice-gtk.c: (gui_get_image_save_info): ditto [#318043].
 
 2005-10-07  Emmanuel Pacaud <emmanuel pacaud univ-poitiers fr>
 
 	* goffice/graph/gog-renderer-svg.c (fill_properties): fix gradient
 	start / stop colors [#318191].
-	
+
 2005-10-07  Jean Brefort  <jean brefort normalesup org>
 
 	* plugins/plot_surface/xl-surface.c: (xl_contour_plot_update):
@@ -8497,7 +8502,7 @@
 
 2005-10-02  Jody Goldberg <jody gnome org>
 
-	* plugins/plot_surface/gog-surface.c (gog_contour_plot_set_property) : 
+	* plugins/plot_surface/gog-surface.c (gog_contour_plot_set_property) :
 	  Don't signal the axis if they are not set yet.  Don't do anything if
 	  things are not changing.
 
@@ -8567,7 +8572,7 @@
 	* goffice/graph/gog-view.c (gog_view_size_request_real): use different
 	parameters for different meanings.
 	(gog_view_size_request): ditto.
-	(gog_view_size_allocate_real):  pass available to 
+	(gog_view_size_allocate_real):  pass available to
 	gog_view_size_request.
 	(gog_view_render): don't render when allocation is invalid, not
 	residual.
@@ -8789,9 +8794,9 @@
 	Fix position constistency between discrete and linear axes. Enable
 	user set bounds for discrete axes [#309468].
 
-	* goffice/graph/gog-chart.c (gog_chart_map_new): th1 = maximum now, 
+	* goffice/graph/gog-chart.c (gog_chart_map_new): th1 = maximum now,
 	not maximum + 1.
-	(calc_polygon_parameters): ditto. take start theta (th0) into 
+	(calc_polygon_parameters): ditto. take start theta (th0) into
 	account.
 	* goffice/graph/gog-axis-line.c (axis_circle_render): ditto.
 	(radar_process): ditto.
@@ -8809,7 +8814,7 @@
 	* plugins/plot_barcol/gog-line.c (gog_line_view_render): minimum = 1.0 now.
 	* plugins/plot_radar/gog-radar.c (gog_rt_plot_update): ditto.
 	(gog_rt_view_render): take start theta (th0) into account.
-	
+
 2005-08-17  Jean Brefort  <jean brefort normalesup org>
 
 	* plugins/plot_boxes/gog-boxplot.c: (gog_box_plot_update),
@@ -8822,8 +8827,8 @@
 
 	* plugins/plot_xy/gog-xy.c (gog_xy_view_render): use GogChartMap
 	facilities.
-	* plugins/plot_barcol/gog-line.c (gog_line_view_render): ditto. be 
-	consistent with GogXYPlot. 
+	* plugins/plot_barcol/gog-line.c (gog_line_view_render): ditto. be
+	consistent with GogXYPlot.
 
 2005-08-16  Stepan Kasal  <kasal ucw cz>
 
@@ -8879,7 +8884,7 @@
 	Fix clipping of polar plots. Renamed all clip_push, clip_pop functions
 	to push_clip, pop_clip for consistency with push_style, pop_style.
 
-	* goffice/graph/gog-renderer-gnome-print.c 
+	* goffice/graph/gog-renderer-gnome-print.c
 	(print_make_rectangle_path): removed.
 	(gog_renderer_gnome_print_push_clip): clipping region is a path now.
 	(gog_renderer_gnome_print_draw_path): clip dashed line to graph bbox.
@@ -8893,7 +8898,7 @@
 	(gog_renderer_pixbuf_draw_path): call gog_renderer_pixbuf_do_clip.
 	clip dashed line to graph bbox.
 	(gog_renderer_pixbuf_draw_polygon): ditto.
-	* goffice/graph/gog-renderer-svg.c (gog_renderer_svg_push_clip): 
+	* goffice/graph/gog-renderer-svg.c (gog_renderer_svg_push_clip):
 	clipping region is a path now.
 	* goffice/graph/gog-renderer.c (gog_renderer_push_clip): ditto.
 	(gog_renderer_pop_clip): ditto. Free clip_path.
@@ -8905,7 +8910,7 @@
 	auto_dash to FALSE.
 	(gog_rt_view_render): add correct polar clipping.
 	(gog_rt_series_init_style): don't disable marker theming.
-	
+
 2005-08-14  Jean Brefort  <jean brefort normalesup org>
 
 	* goffice/graph/gog-series.c: (gog_series_class_init),
@@ -8933,7 +8938,7 @@
 	* goffice/utils/go-pattern.c: fix thin-rev-diag str in go_patterns.
 	(go_pattern_get_svg_path): new.
 	* goffice//utils/svg-patterns.xml: new.
-	
+
 2005-08-12  Jean Brefort  <jean brefort normalesup org>
 
 	* goffice/graph/gog-grid-line.c: (gog_grid_line_view_render):
@@ -9003,7 +9008,7 @@
 	* plugins/plot_radar/plot-types.xml.in: add "circular-no-line" hint to
 	radar plots. add "major-grid" and "backplane" to polar plot.
 	* plugins/plot_xy/plot-types.xml.in: add "backplane" to all plots.
-	
+
 2005-08-10  Jean Brefort  <jean brefort normalesup org>
 
 	* plugins/plot_barcol/gog-1.5d.c:
@@ -9096,7 +9101,7 @@
 	* plugins/plot_*/gog*.c: remove axis_set_pref, axis_set_is_valid,
 	axis_set_assign functions. Set GogPlotClass::axis_set value.
 	* plugins/plot_*/plot-types.xml.in: Add axis_set property.
-	
+
 2005-08-04  J.H.M. Dassen (Ray) <jdassen debian org>
 
 	* README, configure.in: Bumped libgsf requirements as
@@ -9191,33 +9196,33 @@
 	It was a previous attempt to do clipping, which is handled by
 	gog_renderer_clip_push and gog_renderer_clip_pop for quite a long
 	time now.
-	
+
 	Modified Files:
 
-	ChangeLog goffice/graph/gog-axis-line.c 
-	goffice/graph/gog-error-bar.c goffice/graph/gog-grid-line.c 
-	goffice/graph/gog-grid.c goffice/graph/gog-label.c 
-	goffice/graph/gog-legend.c goffice/graph/gog-outlined-object.c 
-	goffice/graph/gog-reg-curve.c goffice/graph/gog-reg-eqn.c 
-	goffice/graph/gog-renderer-cairo.c 
-	goffice/graph/gog-renderer-gnome-print.c 
-	goffice/graph/gog-renderer-impl.h 
-	goffice/graph/gog-renderer-pixbuf.c 
-	goffice/graph/gog-renderer-svg.c goffice/graph/gog-renderer.c 
-	goffice/graph/gog-renderer.h plugins/plot_barcol/gog-barcol.c 
-	plugins/plot_barcol/gog-dropbar.c 
-	plugins/plot_barcol/gog-line.c 
-	plugins/plot_barcol/gog-minmax.c 
-	plugins/plot_barcol/gog-series-lines.c 
-	plugins/plot_boxes/gog-boxplot.c plugins/plot_pie/gog-pie.c 
-	plugins/plot_radar/gog-radar.c 
-	plugins/plot_surface/gog-surface.c plugins/plot_xy/gog-xy.c 
+	ChangeLog goffice/graph/gog-axis-line.c
+	goffice/graph/gog-error-bar.c goffice/graph/gog-grid-line.c
+	goffice/graph/gog-grid.c goffice/graph/gog-label.c
+	goffice/graph/gog-legend.c goffice/graph/gog-outlined-object.c
+	goffice/graph/gog-reg-curve.c goffice/graph/gog-reg-eqn.c
+	goffice/graph/gog-renderer-cairo.c
+	goffice/graph/gog-renderer-gnome-print.c
+	goffice/graph/gog-renderer-impl.h
+	goffice/graph/gog-renderer-pixbuf.c
+	goffice/graph/gog-renderer-svg.c goffice/graph/gog-renderer.c
+	goffice/graph/gog-renderer.h plugins/plot_barcol/gog-barcol.c
+	plugins/plot_barcol/gog-dropbar.c
+	plugins/plot_barcol/gog-line.c
+	plugins/plot_barcol/gog-minmax.c
+	plugins/plot_barcol/gog-series-lines.c
+	plugins/plot_boxes/gog-boxplot.c plugins/plot_pie/gog-pie.c
+	plugins/plot_radar/gog-radar.c
+	plugins/plot_surface/gog-surface.c plugins/plot_xy/gog-xy.c
 
 2005-07-27  Emmanuel Pacaud <emmanuel pacaud univ-poitiers fr>
 
 	Text angle is not a font property.
 	Set default angle to 90° for y axes (#301582).
-	
+
 	* goffice/graph/gog-axis-line.c (gog_axis_base_class_init): install
 	label_angle property.
 	(gog_axis_base_set_property): handle label_angle property.
@@ -9259,7 +9264,7 @@
 	(font_init): remove angle UI.
 	(gog_style_font_load): remove rotation_angle setting.
 	(gog_style_font_dom_save): ditto.
-	(gog_style_font_sax_save): ditto.							    
+	(gog_style_font_sax_save): ditto.
 
 2005-07-25  Emmanuel Pacaud <emmanuel pacaud univ-poitiers fr>
 
@@ -9291,7 +9296,7 @@
 	(cb_manual_toggle_changed): new.
 	(gog_chart_populate_editor): new.
 	(gog_chart_class_init): reorder childs. Still need some work for a
-	nice display in object tree.  Install plot-area and 
+	nice display in object tree.  Install plot-area and
 	is-plot_area-manual properties.
 	(gog_chart_get_plot_area): new.
 	(gog_chart_set_plot_area): new.
@@ -9304,7 +9309,7 @@
 	logical_height_pts properties. These are properties of GogGraph now.
 	(gog_control_foocanvas_get_property): ditto.
 	(gog_control_foocanvas_class_init): ditto.
-	* goffice/graph/gog-graph.c (gog_graph_set_property): handle new width-pts 
+	* goffice/graph/gog-graph.c (gog_graph_set_property): handle new width-pts
 	and height-pts properties.
 	(gog_graph_get_property): ditto.
 	(gog_graph_class_init): ditto. Chart and Title object can be
@@ -9345,7 +9350,7 @@
 	(gog_renderer_class_init): ditto.
 	* goffice/graph/gog-view.c (gog_view_size_allocate_real): handle
 	manual case.
-					    
+
 2005-07-22  Chris Lahey  <clahey our domain is not set>
 
 	* goffice/drawing/god-drawing-renderer-gdk.c: Remove * .7 hack
@@ -9375,7 +9380,7 @@
 	* goffice/utils/go-file.c (go_get_mime_type): Free 'wuri' if mime lookup failed;
 	have function return "application/octet-stream" instead of "octet-string";
 	g_strdup() the "application/octet-stream" so that we don't try to free .text data
-	
+
 2005-07-15  Emmanuel Pacaud <emmanuel pacaud univ-poitiers fr>
 
 	* goffice/graph/gog-legend.c (cb_render_elements): fix swatch,
@@ -9455,7 +9460,7 @@
 2005-06-21  Emmanuel Pacaud <emmanuel pacaud univ-poitiers fr>
 
 	New cairo renderer. Option at compile time (--with-cairo).
-	
+
 	* configure.in: add optional cairo dependency.
 	* goffice/graph/gog-control-foocanvas.c
 	(gog_control_foocanvas_set_property): use cairo renderer if enabled.
@@ -9464,7 +9469,7 @@
 	(gog_control_foocanvas_class_init): ditto.
 	* goffice/graph/gog-renderer-cairo.[ch]: new files.
 	* goffice/utils/go-pattern.c (go_pattern_get_pattern): new.
-	
+
 2005-06-20  Jean Brefort  <jean brefort normalesup org>
 
 	* plugins/plot_barcol/gog-1.5d.c: (gog_plot1_5d_update),
@@ -9525,17 +9530,17 @@
 	(gog_reg_eqn_view_render): ditto.
 	* goffice/graph/gog-renderer-gnome-print.c
 	(gog_renderer_gnome_print_draw_text): handle rotated text and color.
-	(gog_renderer_gnome_print_get_text_OBR): new. 
+	(gog_renderer_gnome_print_get_text_OBR): new.
 	* goffice/graph/gog-renderer-pixbuf.c (get_rotated_layout_bounds):
 	new.
 	(gog_renderer_pixbuf_get_pango_layout): handle rotation angle.
 	(gog_renderer_pixbuf_draw_text): ditto. Handle special n * pi / 2
 	angles separately for performance.
-	(gog_renderer_pixbuf_get_text_OBR): new. 
+	(gog_renderer_pixbuf_get_text_OBR): new.
 	* goffice/graph/gog-renderer-svg.c (gog_renderer_svg_get_text_OBR):
 	ditto.
 	(gog_renderer_svg_draw_text): handle rotation angle and color.
-	* goffice/graph/gog-renderer.c (gog_renderer_get_text_OBR): new. 
+	* goffice/graph/gog-renderer.c (gog_renderer_get_text_OBR): new.
 	(gog_renderer_get_text_AABR): new. Replaces measure_text.
 	* goffice/graph/gog-style-prefs.glade: add widgets for text rotation
 	angle and text color.
@@ -9548,7 +9553,7 @@
 	(gog_style_is_different_size): different angles means different sizes.
 	* goffice/utils/go-geometry.[ch]: new files. Collection of geometry
 	related functions.
-	
+
 2005-06-12  Jody Goldberg <jody gnome org>
 
 	* configure.in : post release bump
@@ -9620,7 +9625,7 @@
 	  exit.
 
 2005-06-04  Emmanuel Pacaud <emmanuel pacaud univ-poitiers fr>
-	
+
 	* goffice/graph/gog-object (gog_object_populate_editor): remove
 	g_message call.
 
@@ -9679,7 +9684,7 @@
 	object tree.
 	* goffice/graph/gog-styled-object.c (styled_object_populate_editor):
 	call parent method.
-	
+
 2005-06-01  Jody Goldberg <jody gnome org>
 
 	* goffice/utils/go-format.c (go_format_value_gstring) : pull over from
@@ -9705,7 +9710,7 @@
 2005-05-28  Jean Brefort  <jean brefort normalesup org>
 
 	* goffice/graph/gog-object.c: (gog_object_dup_with_values):
-	new function aimed at export charts. 
+	new function aimed at export charts.
 
 2005-05-27  Ivan, Wong Yat Cheung  <email ivanwong info>
 
@@ -9739,10 +9744,10 @@
 2005-05-26  Emmanuel Pacaud <emmanuel pacaud univ-poitiers fr>
 
 	[#305010]
-	* goffice/graph/gog-error-bar-prefs.glade: remove gnome requirement. 
+	* goffice/graph/gog-error-bar-prefs.glade: remove gnome requirement.
 	* plugins/plot_pie/gog-pie-series-prefs.glade: ditto.
 	* plugins/plot_pie/gog-ring-prefs.glade: ditto.
-	
+
 2005-05-26  Ivan, Wong Yat Cheung  <email ivanwong info>
 
 	* goffice/utils/go-file.c (go_shell_arg_to_uri): Convert
@@ -9829,7 +9834,7 @@
 	center_on_ticks to TRUE.
 	* plugins/plot_barcol/gog-barcol.c (gog_barcol_axis_get_bounds):
 	center_on_ticks = FALSE.
-	
+
 2005-05-18  Emmanuel Pacaud <emmanuel pacaud univ-poitiers fr>
 
 	* goffice/graph/gog-axis.c (map_discrete_init): scale doesn't depend
@@ -9843,7 +9848,7 @@
 	populate_editor if gui==NULL.
 	* plugins/plot_surface/gog-surface.c
 	(gog_contour_plot_axis_get_bounds): maxima = num_elements - 1.0
-	* plugins/plot_surface/xl-surface.c 
+	* plugins/plot_surface/xl-surface.c
 	(xl_contour_plot_axis_get_bounds): ditto.
 
 2005-05-17  Jean Brefort  <jean brefort normalesup org>
@@ -10037,9 +10042,9 @@
 	(axis_circle_render): if axis is polar, use bezier paths by calling
 	gog_renderer_draw_arc. Draw ticks. Use GogChartMap.
 	(x_process): new.
-	(xy_process): use GogChartMap. 
+	(xy_process): use GogChartMap.
 	(calc_polygon_parameters): removed.
-	(radar_process): implement padding_request for radial axes. 
+	(radar_process): implement padding_request for radial axes.
 	(gog_axis_base_view_info_at_point): handle GOG_AXIS_SET_X.
 	(gog_axis_base_view_padding_request): ditto.
 	(gog_axis_base_view_render): ditto.
@@ -10051,7 +10056,7 @@
 	(map_log_bounds): new.
 	(gog_axis_map_get_extents): new.
 	(gog_axis_map_get_bounds): new.
-	(role_grid_line_major_can_add): can be TRUE for non discrete 
+	(role_grid_line_major_can_add): can be TRUE for non discrete
 	GOG_AXIS_CIRCULAR.
 	(role_grid_line_minor_post_add): ditto.
 	(role_axis_line_can_add): can be TRUE for GOG_AXIS_RADIAL.
@@ -10088,7 +10093,7 @@
 	(gog_renderer_pixbuf_draw_bezier_polygon): new.
 	* goffice/graph/gog-renderer-svg.c (fill_properties): new.
 	(gog_renderer_svg_draw_bezier_polygon): new.
-	* goffice/graph/gog-renderer.c 
+	* goffice/graph/gog-renderer.c
 	(gog_renderer_get_ring_wedge_vpath): new.
 	(gog_renderer_draw_ring_wedge): new.
 	(gog_renderer_draw_pie_wedge): new.
@@ -10101,7 +10106,7 @@
 	Renamed GogRadarSeries class to GogRTSeries.
 	* plugins/plot_radar/plot-types.xml.in: add polar plots.
 	* plugins/plot_radar/plugin.xml.in: ditto.
-	
+
 2005-05-09  Morten Welinder  <terra gnome org>
 
 	* goffice/graph/gog-style.c (cb_font_changed): C99, const, and
@@ -10551,7 +10556,7 @@
 	(axis_line_point): new.
 	(axis_circle_point): new.
 	(axis_cirlce_render): render as polygon if num_radii > 0.0
-	cos (x - pi/2) = sin (x) 
+	cos (x - pi/2) = sin (x)
 	sin (x - pi/2) = -cos (x)
 	(xy_process): handle point routine now.
 	(radar_process) : ditto.
@@ -10675,7 +10680,7 @@
 
 	* goffice/graph/gog-axis.c (map_discrete_auto_bound): do not set auto
 	cross point.
-	
+
 2005-03-16  Emmanuel Pacaud <emmanuel pacaud univ-poitiers fr>
 
 	* goffice/utils/go-line.c (go_line_build_vpath),
@@ -10711,7 +10716,7 @@
 	* plugins/plot_boxes/gog-boxplot.c (gog_box_plot_populate_editor):
 	ditto.
 	(gog_box_plot_view_render): free x_map.
-	
+
 2005-03-15  Stepan Kasal  <kasal ucw cz>
 
 	* goffice/graph/Makefile.am: Distribute gog-axis-line-impl.h.
@@ -10751,14 +10756,14 @@
 	object position GOG_POSITION_PADDING.
 	* goffice/graph/gog-axis-prefs.glade: Rework of axis property pages,
 	now called Scale and Layout.
-	* goffice/graph/gog-axis-line.[ch], gog-axis-line-impl.h: new. 
+	* goffice/graph/gog-axis-line.[ch], gog-axis-line-impl.h: new.
 	Contains an implementation of what is needed to actually draw an
-	axis on screen, which was previously provided by GogAxis, in 
+	axis on screen, which was previously provided by GogAxis, in
 	GogAxisBase and GogAxisBaseView.
 	* goffice/graph/gog-axis.c: GogAxis is now derived from GogAxisBase.
 	Tick settings and position are now property of GogAxisBase.
 	(create_invalid_axis_ticks): always generate tick labels.
-	(map_discrete_calc_ticks): ditto. 
+	(map_discrete_calc_ticks): ditto.
 	(map_linear_calc_ticks): ditto.
 	(map_log_calc_ticks): ditto.
 	(role_label_post_add): removed.
@@ -10801,7 +10806,7 @@
 	no need to handle editor type since gog_object_get_editor always
 	returns a notebook now.
 	* goffice/graph/gog-label.c (gog_label_populate_editor): Use new
-	GogEditor API.	
+	GogEditor API.
 	* goffice/graph/gog-legend.c (gog_legend_populate_editor): ditto.
 	* goffice/graph/gog-series.c (gog_series_element_populate_editor):
 	ditto.
@@ -10864,8 +10869,8 @@
 	(gog_contour_plot_populate_editor): use GogEditor API.
 	* plugins/plot_xy/gog-xy.c (gog_bubble_plot_populate_editor): ditto.
 	(gog_xy_series_populate_editor): ditto.
-	
-		
+
+
 2005-03-13  J.H.M. Dassen (Ray) <jdassen debian org>
 
 	* configure.in: Link -Wl,-O1 if the linker supports it; see
@@ -11109,7 +11114,7 @@
 
 	* gui-utils/go-gui-utils.c: include errno.h
 	(go_help_display): link is part of paths.
-			   
+
 2005-02-16  Jean Brefort  <jean brefort normalesup org>
 
 	* graph/gog-renderer-pixbuf.c: (gog_renderer_pixbuf_draw_path): rewrite to
@@ -11183,7 +11188,7 @@
 2005-02-08  Jon K Hellan  <hellan acm org>
 
 	* utils/format.h: Include numbers.h.
-	(render_number): Make declaration match	definition. 
+	(render_number): Make declaration match	definition.
 
 2005-02-08  Morten Welinder  <terra gnome org>
 
@@ -11307,9 +11312,9 @@
 
 	* graph/gog-series.c (gog_series_dataset_dim_changed): resize for every
 	label change.
-	* graph/gog-axis.c (gog_axis_update): no need to force resize for 
+	* graph/gog-axis.c (gog_axis_update): no need to force resize for
 	discrete axis, it's handled by gog_series_dataset_dim_changed.
-	
+
 2004-12-15  Morten Welinder  <terra gnome org>
 
 	* gui-utils/go-action-combo-stack.c (get_key_at_path): Don't crash
@@ -11426,7 +11431,7 @@
 	gog_axis_bound_changed if GogSeries1_5D->index_changed == TRUE.
 	(gog_series1_5d_dim_changed): new. Used to set index_changed to TRUE
 	when vector dim_i == 0 changed.
-				      
+
 2004-10-25  Emmanuel Pacaud <emmanuel pacaud univ-poitiers fr>
 
 	* graph/gog-axis.c (draw_axis_from_a_to_b): use
@@ -11464,7 +11469,7 @@
 	(gog_renderer_svg_draw_polygon): ditto.
 	* graph/gog-renderer.c: define a hair line width and set it to 0.24pt.
 	(gog_renderer_finalize): free line_dash and outline_dash.
-	(update_dash): new. 
+	(update_dash): new.
 	(gog_renderer_push_style): call update_dash.
 	(gog_renderer_pop_style): ditto.
 	(gog_renderer_clip_push): keep a pointer to the current clip.
@@ -11487,7 +11492,7 @@
 	* graph/gog-theme.c (gog_themes_init): use dash_type.
 	* graph/plugins/plot_barcol/gog-line.c (gog_line_view_render): don't
 	draw sharp path.
-	* utils/go-line.[ch]: new.	
+	* utils/go-line.[ch]: new.
 
 2004-10-13  Jean Brefort <jean brefort normalesup org>
 
@@ -11566,9 +11571,9 @@
 	* graph/go-data-impl.h: ditto.
 	* graph/goffice-graph.h: ditto. Added GODataType enumerated type.
 	* graph/gog-data-allocator.c: (gog_data_allocator_editor): Replaced
-	"gboolean prefers_scalar" by "GODataType data_type". 
+	"gboolean prefers_scalar" by "GODataType data_type".
 	* graph/gog-data-allocator.h: ditto.
-	* graph/gog-error-bar.c: (cb_type_changed), (gog_error_bar_prefs): 
+	* graph/gog-error-bar.c: (cb_type_changed), (gog_error_bar_prefs):
 	* graph/gog-series.c: (gog_series_editor): ditto.
 	* graph/plugins/plot_surface/Makefile.am: new contour plots.
 	* graph/plugins/plot_surface/gog-contour-prefs.c: ditto.
@@ -11632,7 +11637,7 @@
 	* graph/plugins/plot_pie/gog-pie-series.glade: ditto.
 	* graph/plugins/plot_pie/gog-ring-prefs.glade: ditto.
 	* graph/plugins/plot_xye/gog-xy-prefs.glade: ditto.
-		
+
 2004-09-29  Emmanuel Pacaud <emmanuel pacaud univ-poitiers fr>
 
 	http://bugzilla.gnome.org/show_bug.cgi?id=153402
@@ -11701,7 +11706,7 @@
 	* graph/gog-style-prefs.glade: 12 px padding. Use GtkAlignment for
 	group layout.
 	* graph/gog-style.c: use new layout.
-	
+
 2004-09-25  Emmanuel Pacaud <emmanuel pacaud univ-poitiers fr>
 
 	* graph/gog-error-bar-prefs.glade: layout rework.
@@ -11758,7 +11763,7 @@
 	* graph/gog-theme.c (gog_themes_init): add MajorGrid and MinorGrid
 	themes. Remove X-MajorGrid, Y-MajorGrid, X-MinorGrid, Y-MinorGrid
 	themes.
-				     
+
 2004-09-23  Morten Welinder  <terra gnome org>
 
 	* graph/gog-renderer-gnome-print.c
@@ -11807,7 +11812,7 @@
 	(role_grid_y_minor_post_add): new.
 	(gog_grid_class_init): register new grid line roles.
 	* graph/gog-theme.c: register theme for new grid line objects.
-	
+
 2004-09-20  Emmanuel Pacaud <emmanuel pacaud univ-poitiers fr>
 
 	http://bugzilla.gnome.org/show_bug.cgi?id=153146
@@ -11852,7 +11857,7 @@
 
 	* graph/gog-renderer-pixbuf.c (gog_renderer_draw_text): remove
 	remaining unref.
-	
+
 2004-09-10  Emmanuel Pacaud <emmanuel pacaud univ-poitiers fr>
 
 	http://bugzilla.gnome.org/show_bug.cgi?id=152201
@@ -11864,7 +11869,7 @@
 	(gog_renderer_pixbuf_get_pango_context): new.
 	(gog_renderer_pixbuf_push_style): new. unref pango_layout.
 	(gog_renderer_pixbuf_push_style): ditto.
-				
+
 2004-09-08  Jody Goldberg <jody gnome org>
 
 	* Release 1.3.90
@@ -11877,7 +11882,7 @@
 	pb when exporting to svg a chart without outline
 	http://bugzilla.gnome.org/show_bug.cgi?id=127203
 	X axis labels centre on chart, not on axis
-	
+
 	* graph/goffice-graph.h: new GogViewPadding type.
 	* graph/gog-axis.c (map_log_to_canvas): DBL_MIN is not -DBL_MAX.
 	(gog_axis_view_padding_request): new.
@@ -11895,7 +11900,7 @@
 	  view->allocation.
 	* graph/gog-renderer-pixbuf.c (draw_text): don't clip text, to be
 	  consistent with svg and gnome-print renderer.
-	
+
 2004-09-06  Jody Goldberg <jody gnome org>
 
 	* gui-utils/go-color-palette.c (go_color_palette_setup) : warning
@@ -11945,7 +11950,7 @@
 	right value for marker drawing.
 	* graph/plugins/plot_barcol/gog-line.c (gog_line_view_render): use
 	right index when walking through path for marker drawing.
-								  
+
 2004-08-30  Morten Welinder  <terra gnome org>
 
 	* graph/gog-plot-engine.c (gog_plot_new_by_name): Ick.  We need to
@@ -12016,7 +12021,7 @@
 	Add support for mapping.
 	* graph/plugins/plot_xy/gog-xy.c (gog_xy_view_render): don't clip
 	markers to plot area, but to chart area.
-							
+
 2004-08-17  Jon K Hellan  <hellan acm org>
 
 	* graph/gog-stisyle.c (cb_image_file_select): is_save parameter to
@@ -12059,7 +12064,7 @@
 
 	* graph/gog-axis.c (map_[log,linear,discrete]_init) : add arguments
 	for direct mapping to canvas coordinates.
-	(gog_axis_map_new) : idem. 
+	(gog_axis_map_new) : idem.
 	(map_[log,linear,discrete]_to_canvas : new.
 	(gog_axis_map_to_canvas) : new.
 	(map_discrete) : handle barcol / area,line correctly.
@@ -12098,7 +12103,7 @@
 	* graph/plugins/plot_xy/gog-xy.c (gog_xy_plot_render) : use
 	gog_axis_map_to_canvas and new gog_error_bar_get_bounds.
 	* utils/go-marker.c (go_marker_get_pixbuf) : add a scale argument.
-	
+
 2004-07-29  Morten Welinder  <terra gnome org>
 
 	* gui-utils/go-action-combo-pixmaps.c
@@ -12127,8 +12132,8 @@
 	(gog_axis_editor): hide map combobox if axis is discrete.
 	(gog_axis_view_render): use axis->ticks for rendering.
 	* graph/plugins/plot_xy/gog-xy.c (gog_xy_view_render): use new map
-	functions.					       
-	
+	functions.
+
 2004-07-22  Christopher James Lahey  <clahey ximian com>
 
 	* libpresent/Makefile.am (libgoffice_libpresent_la_SOURCES): Added
@@ -12279,7 +12284,7 @@
 
 	* graph/gog-style.c : rework GogStyle::fill share pattern:fore/back
 	and gradient:start/end.
-	merge all the different auto flags.  
+	merge all the different auto flags.
 	initialize the gradient brightness to -1 to avoid starting with black
 	Change fill from union to struct to simplify changing fill types
 	Allow themed gradient fills
@@ -12425,7 +12430,7 @@
 	(gog_axis_editor) : handle map combobox.
 	* graph/plugins/plot_xy/gog-xy.c (gog_xy_view_render) : use map
 	functions.
-	
+
 2004-06-05  Jody Goldberg <jody gnome org>
 
 	* graph/gog-axis.c (gog_axis_get_entry) : add some protection now that
@@ -12486,7 +12491,7 @@
 	http://bugzilla.gnome.org/show_bug.cgi?id=142212
 	* graph/plugins/plot-barcol/gog-line.c (gog_line_view_render) : don't
 	use '0' if Y value is missing.
-	
+
 2004-05-13  Jody Goldberg <jody gnome org>
 
 	* graph/gog-renderer-svg.c (gog_renderer_svg_measure_text) : use
@@ -12905,7 +12910,7 @@
 
 	http://bugzilla.gnome.org/show_bug.cgi?id=135621
 	* graph/gog-axis.c (gog_axis_render) : fix rounding issue.
-	
+
 2004-03-07  Jody Goldberg <jody gnome org>
 
 	* graph/plugins/plot_radar/gog-radar.c (gog_radar_plot_type_name) :
@@ -12931,7 +12936,7 @@
 
 	* graph/plugins/plot_xy/gog-xy.c : draw markers when they are in plot
 	area and a margin half marker size wide (partly fix 135621).
-	
+
 2004-03-09  Emmanuel Pacaud <emmanuel pacaud univ-poitiers fr>
 
 	* graph/gog-object.c : make use_parent_as_proxy a class property
@@ -12963,7 +12968,7 @@
 	(gog_pie_view_render) : handle single element style overrides.
 	* graph/plugins/plot_pie/gog-ring-prefs.glade : fix climb_rate, digits
 	and adjustment properties of the separation spin_button.
-	
+
 2004-03-03  Jody Goldberg <jody gnome org>
 
 	http://bugzilla.gnome.org/show_bug.cgi?id=136088
@@ -12985,7 +12990,7 @@
 	  'default-style-has-markers' rather than 'markers' to be consistent.
 	(gog_radar_plot_update) : store the minima and maxima from all the
 	  series.
-	(gog_radar_plot_axis_get_bounds) : renamed from gog_radar_plot_axis_bounds 
+	(gog_radar_plot_axis_get_bounds) : renamed from gog_radar_plot_axis_bounds
 	  for consistency.  Set the bounds for a radial axis more generally.
 	  We want the outbound to be hard (unscaled) and the inner rounded.
 
@@ -13000,10 +13005,10 @@
 
 2004-02-22  Emmanuel Pacaud <emmanuel pacaud univ-poitiers fr>
 
-	* graph/plugins/plot_radar/gog-radar.c 
+	* graph/plugins/plot_radar/gog-radar.c
 	(gog_plot_radar_render_series) : use g_new instead of g_alloca for
 	allocation of path.
-	
+
 2004-02-21  Jody Goldberg <jody gnome org>
 
 	* utils/go-locale.c : Some cut-n-paste for the without_gnome case
@@ -13061,7 +13066,7 @@
 	(gog_style_set_extension) : new.
 	* graph/gog-series : add a new style_extension_type field in
 	GogSeriesDesc, and use it in gog_series_init_style.
-	
+
 2004-02-09  Morten Welinder  <terra gnome org>
 
 	* graph/plugins/plot_xy/gog-bubble-prefs.glade: Do not start
@@ -13202,7 +13207,7 @@
 
 2004-01-16  Jon K Hellan  <hellan acm org>
 
-	* gui-utils/go-action-combo-stack.c (go_action_combo_stack_push) 
+	* gui-utils/go-action-combo-stack.c (go_action_combo_stack_push)
 	(go_action_combo_stack_pop): Fix typos.
 
 2004-01-14  Jody Goldberg <jody gnome org>
@@ -13388,12 +13393,12 @@
 	  callback after a widget has been destroyed.
 
 2003-11-02  Emmanuel Pacaud <emmanuel pacaud univ-poitiers fr>
-  
+
   	http://bugzilla.gnome.org/show_bug.cgi?id=125419
 	* graph/gog-renderer.[ch] (gog_renderer_start_clipping),
 	(gog_renderer_stop_clipping) : new. Implement clipping of drawing.
-  	Only one level of clipping is allowed. 
-	* graph/gog-renderer[svg, pixbuf, gnome-print] 
+  	Only one level of clipping is allowed.
+	* graph/gog-renderer[svg, pixbuf, gnome-print]
 	(gog_renderer_.._start_clipping),
 	(gog_renderer_.._stop_clipping) : new.
 	* graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_draw_path),
@@ -13403,7 +13408,7 @@
 	* graph/gog-rendere-gnome-print.c (make_rectangle_path) : new;
 	* graph/gog-chart.c (gog_chart_render) : new. Use the same clipping
  	region for all plots.
-  	
+
 2003-11-01 Jean Brefort <jean brefort ac-dijon fr>
 
 	* graph/gog-renderer-svg.c: added scale parameter to gog_graph_export_to_svg.
@@ -13478,7 +13483,7 @@
 	calculation.
 	(gog_axis_num_markers) : round to nearest value instead of the
 	automatic double to int cast that removes the fractionnal part.
-	
+
 2003-10-18  Jody Goldberg <jody gnome org>
 
 	* graph/gog-chart-impl.h : Inherit from GogOutlinedObject and use the
@@ -13519,7 +13524,7 @@
 	* Release 1.2.1
 
 2003-10-06 Jean Brefort <jean brefort ac-dijon fr>
- 
+
  	* graph/gog-renderer-svg.c (gog_renderer_svg_draw_polygon) : use go_pattern_is_solid.
  	(gog_renderer_svg_draw_marker) : implemented.
 
@@ -13594,7 +13599,7 @@
 	  Publicize the data elements.
 	(gog_axis_update) : Manually handle the epsilon shifts so that we can
 	  ignore sign.
- 
+
 2003-09-22  Jody Goldberg <jody gnome org>
 
 	* graph/gog-view.c (cb_remove_child) : doh!
@@ -13907,10 +13912,10 @@
 	* graph/gog-style.c (populate_marker_combo) : new.
 	(marker_init) : use the marker combo.
 	* graph/gog-style-prefs.glade : removed marker option menu.
-	* graph/gog-renderer-gnome-print.c 
+	* graph/gog-renderer-gnome-print.c
 	(gog_renderer_gnome_print_draw_marker): returns when one of the path
 	is NULL (fix a crash).
-	
+
 2003-09-07  Jody Goldberg <jody gnome org>
 
 	* graph/gog-styled-object.c (gog_styled_object_set_property) : set the
@@ -13966,7 +13971,7 @@
 	* utils/go-pattern.[ch] (go_pattern_as_str, go_pattern_as_str): Move
 	from gog-style.c and rename.
 
-	* utils/go-gradient.[ch] (go_gradient_dir_from_str) 
+	* utils/go-gradient.[ch] (go_gradient_dir_from_str)
 	(go_gradient_dir_as_str): Ditto.
 
 	* graph/gog-style.c (str_as_pattern, pattern_as_str,
@@ -14077,7 +14082,7 @@
 
 	* graph/gog-style.c (gog_object_get_style) : fix leak.
 	(fill_init) : do not assign the style as part of the initialization.
- 
+
 	* graph/gog-renderer-pixbuf.c (make_layout) : another failing attempt
 	  to get font sizes to change.
 
@@ -14143,7 +14148,7 @@
 
 2003-08-27  Andreas J. Guelzow  <aguelzow taliesin ca>
 
-	* graph/gog-style.c (gog_style_set_image_preview): add 
+	* graph/gog-style.c (gog_style_set_image_preview): add
 	  argument to gnm_pixbuf_intelligent_scale call
 	(cb_image_file_select) use preview_file_selection_set_filename
 	  rather than gtk_file_selection_set_filename
@@ -14156,15 +14161,15 @@
 	(fill_image_init): initialize state->fill.image.image
 	(cb_fill_type_changed): store original size image
 	(gog_style_pref_state_free): free state->fill.image.image
-	* graph/gog-style-prefs.glade: add size label to image-fill 
+	* graph/gog-style-prefs.glade: add size label to image-fill
 	  preview
 
 2003-08-26  Andreas J. Guelzow  <aguelzow taliesin ca>
 
-	* graph/gog-style.c (cb_image_file_select): use 
+	* graph/gog-style.c (cb_image_file_select): use
 	  preview_file_selection_new and not
 	  gnumeric_dialog_image_file_selection
-	
+
 2003-08-26  Morten Welinder  <terra gnome org>
 
 	* utils/go-pattern.c (go_pattern_selector): Get the args to
@@ -14184,7 +14189,7 @@
 
 	* graph/gog-style.c (cb_image_file_select): use
 	  gnumeric_dialog_image_file_selection
-	
+
 2003-08-25  Jody Goldberg <jody gnome org>
 
 	* graph/gog-renderer-gnome-print.c
@@ -14400,7 +14405,7 @@
 
 2003-07-03  Jon K Hellan  <hellan acm org>
 
-	* graph/gog-style.c (init_solid_page, init_gradient_page) 
+	* graph/gog-style.c (init_solid_page, init_gradient_page)
 	(init_gradient_page, gog_style_editor): Turn off color combo
 	tearoff behaviour in dialogs.
 
@@ -14540,7 +14545,7 @@
 
 2003-06-13  Jon K Hellan  <hellan acm org>
 
-	* graph/gog-style.c (gog_style_editor) : Use the new 
+	* graph/gog-style.c (gog_style_editor) : Use the new
 	color_combo_set_instant_apply flag.
 
 2003-06-12  Jody Goldberg <jody gnome org>
diff --git a/goffice/goffice.c b/goffice/goffice.c
index 114b8e1..01addbd 100644
--- a/goffice/goffice.c
+++ b/goffice/goffice.c
@@ -176,6 +176,7 @@ libgoffice_shutdown (void)
 	_go_currency_date_format_shutdown ();
 	_go_number_format_shutdown ();
 	_go_string_shutdown ();
+	_go_locale_shutdown ();
 #ifdef G_OS_WIN32
 	/* const_cast, we created these above */
 	g_free ((char *)libgoffice_data_dir);
diff --git a/goffice/utils/go-locale.c b/goffice/utils/go-locale.c
index 8d34217..327689c 100644
--- a/goffice/utils/go-locale.c
+++ b/goffice/utils/go-locale.c
@@ -68,6 +68,23 @@ go_setlocale (int category, char const *val)
 	return setlocale (category, val);
 }
 
+void
+_go_locale_shutdown (void)
+{
+	if (locale_info_cached) {
+		/* Mark everything as uncached.  */
+		(void)go_setlocale (LC_ALL, NULL);
+	}
+#define FREE1(var) if (var) { g_string_free (var, TRUE); var = NULL; }
+	FREE1 (lc_decimal);
+	FREE1 (lc_thousand);
+	FREE1 (lc_currency);
+	FREE1 (lc_date_format);
+	FREE1 (lc_time_format);
+#undef FREE1
+}
+
+
 static void
 convert1 (GString *res, char const *lstr, char const *name, char const *def)
 {
diff --git a/goffice/utils/go-locale.h b/goffice/utils/go-locale.h
index f393938..ea85072 100644
--- a/goffice/utils/go-locale.h
+++ b/goffice/utils/go-locale.h
@@ -43,6 +43,8 @@ gboolean       go_locale_24h              (void);
 GString const *go_locale_get_date_format  (void);
 GString const *go_locale_get_time_format  (void);
 
+void           _go_locale_shutdown        (void);
+
 G_END_DECLS
 
 #endif /* GO_LOCALE_H */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]