[gnumeric] xml: cleanup.
- From: Morten Welinder <mortenw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnumeric] xml: cleanup.
- Date: Mon, 21 Sep 2009 20:36:08 +0000 (UTC)
commit e845f9e511510ee3a63671ccebf9dca365894aa7
Author: Morten Welinder <terra gnome org>
Date: Mon Sep 21 16:34:53 2009 -0400
xml: cleanup.
ChangeLog | 5 +++++
src/xml-io.c | 5 -----
src/xml-io.h | 1 -
src/xml-sax-write.c | 6 ++++++
4 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f52e575..3ae156d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-09-21 Morten Welinder <terra gnome org>
+
+ * src/xml-sax-write.c (gnm_xml_out_add_color): Move from xml-io.c
+ and make static.
+
2009-09-21 Jean Brefort <jean brefort normalesup org>
* src/gnm-plugin.c (plugin_service_ui_read_xml): use translated labels.
diff --git a/src/xml-io.c b/src/xml-io.c
index ad9081c..818ebcb 100644
--- a/src/xml-io.c
+++ b/src/xml-io.c
@@ -147,11 +147,6 @@ gnm_xml_out_add_gocolor (GsfXMLOut *o, char const *id, GOColor c)
go_color_to_gdk (c, &tmp);
gsf_xml_out_add_color (o, id, tmp.red, tmp.green, tmp.blue);
}
-void
-gnm_xml_out_add_color (GsfXMLOut *o, char const *id, GnmColor const *c)
-{
- gnm_xml_out_add_gocolor (o, id, c->go_color);
-}
void
gnm_xml_out_add_cellpos (GsfXMLOut *o, char const *id, GnmCellPos const *p)
diff --git a/src/xml-io.h b/src/xml-io.h
index e72052c..119956d 100644
--- a/src/xml-io.h
+++ b/src/xml-io.h
@@ -50,7 +50,6 @@ GnmStyle *xml_read_style (XmlParseContext *ctxt, xmlNodePtr tree,
void xml_init (void);
/* Gnumeric specific SAX utilities */
-void gnm_xml_out_add_color (GsfXMLOut *o, char const *id, GnmColor const *c);
void gnm_xml_out_add_gocolor (GsfXMLOut *o, char const *id, GOColor c);
void gnm_xml_out_add_cellpos (GsfXMLOut *o, char const *id, GnmCellPos const *p);
diff --git a/src/xml-sax-write.c b/src/xml-sax-write.c
index d61660a..c17cc11 100644
--- a/src/xml-sax-write.c
+++ b/src/xml-sax-write.c
@@ -80,6 +80,12 @@ typedef struct {
#define POINT_SIZE_PRECISION 4
static void
+gnm_xml_out_add_color (GsfXMLOut *o, char const *id, GnmColor const *c)
+{
+ gnm_xml_out_add_gocolor (o, id, c->go_color);
+}
+
+static void
xml_out_add_range (GsfXMLOut *xml, GnmRange const *r)
{
g_return_if_fail (range_is_sane (r));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]