[goffice] Fixed some introspection related issues.



commit 430157c786058a9dfc8d0b33cf53cb967e72e3be
Author: Jean Brefort <jean brefort normalesup org>
Date:   Sat Mar 3 08:50:59 2012 +0100

    Fixed some introspection related issues.

 ChangeLog                         |   12 ++++++++++++
 goffice/app/go-cmd-context-impl.h |    2 +-
 goffice/app/go-doc-impl.h         |    2 +-
 goffice/app/go-doc.c              |    2 +-
 goffice/graph/gog-axis-line.c     |    1 -
 goffice/graph/gog-plot.h          |    2 +-
 goffice/utils/datetime.c          |   18 ++++++++++--------
 goffice/utils/go-file.c           |   22 +++++++++++-----------
 goffice/utils/go-style.h          |   10 +++++-----
 9 files changed, 42 insertions(+), 29 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f83e94b..7e64036 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2012-03-03  Jean Brefort  <jean brefort normalesup org>
+
+	* goffice/app/go-cmd-context-impl.h: fixed for nested structs introspection.
+	* goffice/app/go-doc-impl.h: ditto.
+	* goffice/app/go-doc.c: fixed documentation layout issues.
+	* goffice/graph/gog-axis-line.c (cb_position_toggled): fixed unused
+	variables warnings.
+	* goffice/graph/gog-plot.h: fixed for nested structs introspection.
+	* goffice/utils/datetime.c: fixed documentation layout issues.
+	* goffice/utils/go-file.c: ditto.
+	* goffice/utils/go-style.h: fixed for nested structs introspection.
+
 2012-03-02  Morten Welinder <terra gnome org>
 
 	* configure.in: Post-release bump.
diff --git a/goffice/app/go-cmd-context-impl.h b/goffice/app/go-cmd-context-impl.h
index 9c7dd17..36fdc3a 100644
--- a/goffice/app/go-cmd-context-impl.h
+++ b/goffice/app/go-cmd-context-impl.h
@@ -14,7 +14,7 @@ typedef struct {
 					 char const *filename);
 	void    (*set_sensitive)	(GOCmdContext *gcc,
 					 gboolean sensitive);
-	struct {
+	struct _GOCmdContextIface {
 		void (*error)		(GOCmdContext *gcc, GError *err);
 		void (*error_info)  	(GOCmdContext *gcc, GOErrorInfo *err);
 		void (*error_info_list) (GOCmdContext *gcc, GSList *errs);
diff --git a/goffice/app/go-doc-impl.h b/goffice/app/go-doc-impl.h
index 5fb0798..7a67bcc 100644
--- a/goffice/app/go-doc-impl.h
+++ b/goffice/app/go-doc-impl.h
@@ -40,7 +40,7 @@ struct _GODoc {
 typedef struct {
 	GObjectClass	base;
 
-	struct {
+	struct _GOMetaDataIFace {
 		/* Reload doc statistics and update linked values */
 		void (*update)  (GODoc *doc);
 		void (*changed) (GODoc *doc);
diff --git a/goffice/app/go-doc.c b/goffice/app/go-doc.c
index 45f2963..3f8a8e4 100644
--- a/goffice/app/go-doc.c
+++ b/goffice/app/go-doc.c
@@ -373,7 +373,7 @@ go_doc_update_meta_data (GODoc *doc)
  * @doc: a #GODoc
  * @id: the image name
  *
- * Returns: the #GOImage is one exist with name @id. The caller does not own a
+ * Return value: (transfer none): the #GOImage is one exist with name @id. The caller does not own a
  * reference.
  **/
 GOImage *
diff --git a/goffice/graph/gog-axis-line.c b/goffice/graph/gog-axis-line.c
index 5a0b7ec..f19566d 100644
--- a/goffice/graph/gog-axis-line.c
+++ b/goffice/graph/gog-axis-line.c
@@ -419,7 +419,6 @@ cb_position_toggled (GtkWidget *button, AxisBasePrefs *state)
 	GogAxisBase *axis_base = state->axis_base;
 	GogAxisPosition position;
 	char const *widget_name = gtk_buildable_get_name (GTK_BUILDABLE (button));
-	GSList *lines, *axes, *aptr, *lptr;
 
 	if (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button)))
 		return;
diff --git a/goffice/graph/gog-plot.h b/goffice/graph/gog-plot.h
index 6989d8c..7137fb5 100644
--- a/goffice/graph/gog-plot.h
+++ b/goffice/graph/gog-plot.h
@@ -26,7 +26,7 @@
 G_BEGIN_DECLS
 
 typedef struct {
-	struct {
+	struct _GogPlotBound {
 		double minima, maxima;
 	} val, logical;
 	gboolean is_discrete;
diff --git a/goffice/utils/datetime.c b/goffice/utils/datetime.c
index bc52d00..0bc612b 100644
--- a/goffice/utils/datetime.c
+++ b/goffice/utils/datetime.c
@@ -450,8 +450,9 @@ go_coup_cd (GDate *result, GDate const *settlement, GDate const *maturity,
 
 /**
  * go_coupdays:
- * @settlement : #GDate
- * @maturity   : #GDate
+ * @settlement: #GDate
+ * @maturity: #GDate
+ * @conv: #GoCouponConvention
  *
  * Returns: the number of days in the coupon period of the settlement date.
  * Currently, returns negative numbers if the branch is not implemented.
@@ -483,9 +484,9 @@ go_coupdays (GDate const *settlement, GDate const *maturity,
 
 /**
  * go_coupdaybs:
- * @settlement : #GDate
- * @maturity : #GDate
- * @conv : #GoCouponConvention
+ * @settlement: #GDate
+ * @maturity: #GDate
+ * @conv: #GoCouponConvention
  *
  * Returns: the number of days from the beginning of the coupon period to the
  * 	settlement date.
@@ -500,9 +501,10 @@ go_coupdaybs (GDate const *settlement, GDate const *maturity,
 }
 
 /**
- * go_coupdaysnc :
- * @settlement :
- * @maturity :
+ * go_coupdaysnc:
+ * @settlement:
+ * @maturity:
+ * @conv: #GoCouponConvention
  *
  * Returns: the number of days from the settlement date to the next
  * coupon date.
diff --git a/goffice/utils/go-file.c b/goffice/utils/go-file.c
index 0758d37..d1a29a5 100644
--- a/goffice/utils/go-file.c
+++ b/goffice/utils/go-file.c
@@ -470,7 +470,7 @@ go_shell_arg_to_uri (char const *arg)
 
 /**
  * go_basename_from_uri:
- * @uri : The uri
+ * @uri: The uri
  *
  * Decode the final path component.  Returns as UTF-8 encoded suitable
  * for display.
@@ -488,7 +488,7 @@ go_basename_from_uri (char const *uri)
 
 /**
  * go_dirname_from_uri:
- * @uri : target
+ * @uri: target
  * @brief: if TRUE, hide "file://" if present.
  *
  * Decode the all but the final path component.  Returns as UTF-8 encoded
@@ -536,9 +536,9 @@ open_plain_file (char const *path, GError **err)
 
 
 /**
- * go_file_open :
- * @uri : target uri
- * @err : #GError
+ * go_file_open:
+ * @uri: target uri
+ * @err: #GError
  *
  * Try all available methods to open a file or return an error
  * Returns: non-%NULL on success
@@ -910,7 +910,7 @@ go_file_get_date_changed (char const *uri)
 
 /**
  * go_url_decode:
- * @text : constant buffer to decode.
+ * @text: constant buffer to decode.
  *
  * Decode the result of go_url_encode.
  *
@@ -946,8 +946,8 @@ go_url_decode (gchar const *text)
 
 /**
  * go_url_encode:
- * @text : The constant text to be encoded
- * @type : 0 : mailto, 1: file or http
+ * @text: The constant text to be encoded
+ * @type: 0 : mailto, 1: file or http
  *
  * url-encode a string according to RFC 2368.
  *
@@ -1005,9 +1005,9 @@ go_url_show (gchar const *url)
 
 /**
  * go_url_check_extension
- * @uri     : Uri
- * @std_ext : Standard extension for the content type
- * @new_uri : New uri
+ * @uri: Uri
+ * @std_ext: Standard extension for the content type
+ * @new_uri: New uri
  *
  * Modifies given @uri by adding the extension @std_ext if needed.
  * If no @std_ext is given or @uri already has some extension,
diff --git a/goffice/utils/go-style.h b/goffice/utils/go-style.h
index 17e9347..4b26330 100644
--- a/goffice/utils/go-style.h
+++ b/goffice/utils/go-style.h
@@ -90,7 +90,7 @@ struct _GOStyle {
 	GOStyleFlag	disable_theming;
 
 	GOStyleLine	line;
-	struct {
+	struct _GOStyle_Fill {
 		GOStyleFill	type;
 		gboolean	auto_type;
 		gboolean	auto_fore, auto_back;	/* share between pattern and gradient */
@@ -98,22 +98,22 @@ struct _GOStyle {
 
 		/* This could all be a union but why bother ? */
 		GOPattern pattern;
-		struct {
+		struct _GOStyleGradient {
 			GOGradientDirection dir;
 			double brightness; /* < 0 => 2 color */
 		} gradient;
-		struct {
+		struct _GOStyleImage {
 			GOImageType	 type;
 			GOImage	 *image;
 		} image;
 	} fill;
 	GOStyleMark marker;
-	struct {
+	struct _GOStyle_Font {
 		GOColor		 color;
 		GOFont const 	*font;
 		gboolean 	 auto_scale;
 	} font;
-	struct {
+	struct _GOStyle_Text {
 		double		 angle;
 		gboolean	 auto_angle;
 	} text_layout;



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