[goffice] GOFormat: new functions for go_format_details_*.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] GOFormat: new functions for go_format_details_*.
- Date: Thu, 8 Jul 2010 17:05:56 +0000 (UTC)
commit 37ab50c44d727d80d226da518743770fca900130
Author: Morten Welinder <terra gnome org>
Date: Thu Jul 8 13:05:36 2010 -0400
GOFormat: new functions for go_format_details_*.
ChangeLog | 5 +++++
NEWS | 5 +++--
goffice/utils/go-format.c | 21 +++++++++++++++++++++
goffice/utils/go-format.h | 2 ++
4 files changed, 31 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 88946b9..fe1e856 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-07-08 Morten Welinder <terra gnome org>
+
+ * goffice/utils/go-format.c (go_format_details_new,
+ go_format_details_free): New functions.
+
2010-07-01 Jean Brefort <jean brefort normalesup org>
* goffice/graph/gog-graph.c (gog_graph_validate_chart_layout): do not
diff --git a/NEWS b/NEWS
index b5f4a69..0339b5d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,11 +1,12 @@
goffice 0.8.8:
Jean:
- * Do not take manually placed charts into account when evaluating rows and
- columns in GogGraph.
+ * Do not take manually placed charts into account when evaluating
+ rows and columns in GogGraph.
Morten:
* Add go_string_replace function.
+ * Add functions to manage GOFormatDetails.
--------------------------------------------------------------------------
goffice 0.8.7:
diff --git a/goffice/utils/go-format.c b/goffice/utils/go-format.c
index 17fac1c..d7a0502 100644
--- a/goffice/utils/go-format.c
+++ b/goffice/utils/go-format.c
@@ -5275,6 +5275,27 @@ go_format_generate_str (GString *dst, GOFormatDetails const *details)
#endif
#ifdef DEFINE_COMMON
+GOFormatDetails *
+go_format_details_new (GOFormatFamily family)
+{
+ GOFormatDetails *res = g_new (GOFormatDetails, 1);
+ go_format_details_init (res, family);
+ return res;
+}
+#endif
+
+
+#ifdef DEFINE_COMMON
+void
+go_format_details_free (GOFormatDetails *details)
+{
+ /* We do not own ->currency. */
+ g_free (details);
+}
+#endif
+
+
+#ifdef DEFINE_COMMON
void
go_format_details_init (GOFormatDetails *details, GOFormatFamily family)
{
diff --git a/goffice/utils/go-format.h b/goffice/utils/go-format.h
index 37d27e6..b82e3b3 100644
--- a/goffice/utils/go-format.h
+++ b/goffice/utils/go-format.h
@@ -141,6 +141,8 @@ void go_format_generate_number_str (GString *dst,
gboolean negative_paren,
const char *prefix,
const char *postfix);
+GOFormatDetails *go_format_details_new (GOFormatFamily family);
+void go_format_details_free (GOFormatDetails *details);
void go_format_details_init (GOFormatDetails *details,
GOFormatFamily family);
void go_format_generate_str (GString *dst,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]