[goffice] Introspection: fix warnings.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Introspection: fix warnings.
- Date: Sun, 24 Feb 2013 14:10:25 +0000 (UTC)
commit 799b566e99853b7c8a4032d25901a854add36742
Author: Morten Welinder <terra gnome org>
Date: Sun Feb 24 09:10:12 2013 -0500
Introspection: fix warnings.
NEWS | 1 +
goffice/app/io-context.c | 2 +-
goffice/graph/gog-graph.c | 2 +-
goffice/graph/gog-object.c | 4 ----
goffice/graph/gog-plot.c | 2 +-
goffice/gtk/go-combo-box.c | 10 +++++-----
goffice/utils/go-file.c | 4 ++--
goffice/utils/go-format.c | 10 +++++-----
goffice/utils/go-image.c | 2 +-
goffice/utils/go-line.c | 4 ++--
goffice/utils/go-path.c | 2 +-
goffice/utils/go-string.c | 26 +++++++++++++++++++-------
goffice/utils/go-undo.c | 4 ++--
13 files changed, 41 insertions(+), 32 deletions(-)
---
diff --git a/NEWS b/NEWS
index ba6eb72..566741c 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,7 @@ Morten:
* Cleanup linear algebra. [#691630]
* Work on new compiler warnings.
* Add efficient code for computing leverages. [#691913]
+ * Introspection fixes.
--------------------------------------------------------------------------
goffice 0.10.0:
diff --git a/goffice/app/io-context.c b/goffice/app/io-context.c
index cfb26c4..47c226d 100644
--- a/goffice/app/io-context.c
+++ b/goffice/app/io-context.c
@@ -460,7 +460,7 @@ go_io_context_set_num_files (GOIOContext *ioc, guint count)
}
/**
- * go_io_context_processing_file :
+ * go_io_context_processing_file:
* @ioc : #GOIOContext
* @uri : An escaped uri (eg "foo\%20bar")
**/
diff --git a/goffice/graph/gog-graph.c b/goffice/graph/gog-graph.c
index f65cf24..54d6ea4 100644
--- a/goffice/graph/gog-graph.c
+++ b/goffice/graph/gog-graph.c
@@ -1221,7 +1221,7 @@ gog_graph_view_get_selection (GogGraphView *gview)
}
/**
- * gog_graph_view_set_selection
+ * gog_graph_view_set_selection:
* @gview: #GogGraphView
* @gobj: new selected object
*
diff --git a/goffice/graph/gog-object.c b/goffice/graph/gog-object.c
index 28e7e0a..5c40892 100644
--- a/goffice/graph/gog-object.c
+++ b/goffice/graph/gog-object.c
@@ -44,10 +44,6 @@
**/
/**
- * GogObjectRole:
- **/
-
-/**
* GogObjectClass:
* @roles: roles for the class.
* @view_type: view type.
diff --git a/goffice/graph/gog-plot.c b/goffice/graph/gog-plot.c
index 255d4c8..62ee030 100644
--- a/goffice/graph/gog-plot.c
+++ b/goffice/graph/gog-plot.c
@@ -1005,7 +1005,7 @@ gog_plot_get_axis_id (GogPlot const *plot, GogAxisType type)
/**
* gog_plot_get_axis:
* @plot: #GogPlot
- * type: #GogAxisType
+ * @type: #GogAxisType
*
* Returns: (transfer none): the axis if any.
*/
diff --git a/goffice/gtk/go-combo-box.c b/goffice/gtk/go-combo-box.c
index 0c9aeb6..1aa3cea 100644
--- a/goffice/gtk/go-combo-box.c
+++ b/goffice/gtk/go-combo-box.c
@@ -71,7 +71,7 @@ static guint go_combo_box_signals [LAST_SIGNAL] = { 0, };
static void go_combo_set_tearoff_state (GOComboBox *combo, gboolean torn_off);
/**
- * go_combo_popup_reparent
+ * go_combo_popup_reparent:
* @popup: Popup
* @new_parent: New parent
* @unrealize: Unrealize popup if TRUE.
@@ -292,7 +292,7 @@ cb_combo_keypress (GtkWidget *widget, GdkEventKey *event,
}
/**
- * go_combo_popup_tear_off
+ * go_combo_popup_tear_off:
* @combo: Combo box
* @set_position: Set to position of popup shell if true
*
@@ -403,7 +403,7 @@ go_combo_box_get_pos (GOComboBox *combo_box, int *x, int *y)
}
/**
- * go_combo_tearoff_bg_copy
+ * go_combo_tearoff_bg_copy:
* @combo_box: Combo box
*
* Copy popup window image to the tearoff window.
@@ -610,7 +610,7 @@ cb_tearable_enter_leave (GtkWidget *w, GdkEventCrossing *event, gpointer data)
}
/**
- * go_combo_set_tearoff_state
+ * go_combo_set_tearoff_state:
* @combo_box: Combo box
* @torn_off: TRUE: Tear off. FALSE: Pop down and reattach
*
@@ -741,7 +741,7 @@ go_combo_box_construct (GOComboBox *combo,
}
/**
- * go_combo_box_set_title
+ * go_combo_box_set_title:
* @combo: Combo box
* @title: Title
*
diff --git a/goffice/utils/go-file.c b/goffice/utils/go-file.c
index f5a835b..c5111fb 100644
--- a/goffice/utils/go-file.c
+++ b/goffice/utils/go-file.c
@@ -997,7 +997,7 @@ go_url_encode (gchar const *uri_fragment, int type)
}
/**
- * go_url_check_extension
+ * go_url_check_extension:
* @uri: Uri
* @std_ext: Standard extension for the content type
* @new_uri: New uri
@@ -1039,7 +1039,7 @@ go_url_check_extension (gchar const *uri,
}
/**
- * go_get_mime_type_for_data:
+ * go_get_mime_type:
* @uri: the uri.
*
* returns: the mime type for the file as a newly allocated string. Needs to
diff --git a/goffice/utils/go-format.c b/goffice/utils/go-format.c
index dcf0a3b..3f132df 100644
--- a/goffice/utils/go-format.c
+++ b/goffice/utils/go-format.c
@@ -6133,7 +6133,7 @@ go_format_get_type (void)
#ifdef DEFINE_COMMON
/**
- * go_format_is_invalid
+ * go_format_is_invalid:
* @fmt: Format to query
*
* Returns: TRUE if, and if only, the format is invalid
@@ -6148,7 +6148,7 @@ go_format_is_invalid (GOFormat const *fmt)
#ifdef DEFINE_COMMON
/**
- * go_format_is_general
+ * go_format_is_general:
* @fmt: Format to query
*
* Returns: TRUE if the format is "General", possibly with condition,
@@ -6166,7 +6166,7 @@ go_format_is_general (GOFormat const *fmt)
#ifdef DEFINE_COMMON
/**
- * go_format_is_markup
+ * go_format_is_markup:
* @fmt: Format to query
*
* Returns: TRUE if the format is a markup format
@@ -6182,7 +6182,7 @@ go_format_is_markup (GOFormat const *fmt)
#ifdef DEFINE_COMMON
/**
- * go_format_is_text
+ * go_format_is_text:
* @fmt: Format to query
*
* Returns: TRUE if the format is a text format
@@ -6198,7 +6198,7 @@ go_format_is_text (GOFormat const *fmt)
#ifdef DEFINE_COMMON
/**
- * go_format_is_var_width
+ * go_format_is_var_width:
* @fmt: Format to query
*
* Returns: TRUE if the format is variable width, i.e., can stretch.
diff --git a/goffice/utils/go-image.c b/goffice/utils/go-image.c
index 05a4269..aa34737 100644
--- a/goffice/utils/go-image.c
+++ b/goffice/utils/go-image.c
@@ -52,7 +52,7 @@
**/
/**
- * GOImageClass
+ * GOImageClass:
* @parent_klass: parent class.
* @get_pixbuf: gets a pixbuf with the same size as the image.
* @get_scaled_pixbuf: gets a scaled pixbuf respecting the original aspect ratio.
diff --git a/goffice/utils/go-line.c b/goffice/utils/go-line.c
index fb42077..4c6df4d 100644
--- a/goffice/utils/go-line.c
+++ b/goffice/utils/go-line.c
@@ -385,7 +385,7 @@ go_line_interpolation_as_label (GOLineInterpolation type)
}
/**
- * go_line_interpolation_as_str:
+ * go_line_interpolation_supports_radial:
* @type: an interpolation type
*
* Returns: TRUE if the line interpolation type can be used with radial
@@ -405,7 +405,7 @@ go_line_interpolation_supports_radial (GOLineInterpolation type)
}
/**
- * go_line_interpolation_as_str:
+ * go_line_interpolation_auto_skip:
* @type: an interpolation type
*
* Returns: TRUE if the line interpolation type forces skipping invalid
diff --git a/goffice/utils/go-path.c b/goffice/utils/go-path.c
index 0057735..20e2bf8 100644
--- a/goffice/utils/go-path.c
+++ b/goffice/utils/go-path.c
@@ -93,7 +93,7 @@
/************************************/
/**
- * GOPathOptions
+ * GOPathOptions:
* @GO_PATH_OPTIONS_SNAP_COORDINATES: round coordinates to avoid aliasing in pixbufs.
* @GO_PATH_OPTIONS_SNAP_WIDTH: round width so that it correpond to a round pixels number.
* @GO_PATH_OPTIONS_SHARP: use raw coordinates.
diff --git a/goffice/utils/go-string.c b/goffice/utils/go-string.c
index d147a4a..49ea37b 100644
--- a/goffice/utils/go-string.c
+++ b/goffice/utils/go-string.c
@@ -144,7 +144,7 @@ go_string_new_len (char const *str, guint32 len)
}
/**
- * go_string_new_nocopy :
+ * go_string_new_nocopy_len:
* @str : string (optionally %NULL)
* @len : guint32
*
@@ -194,7 +194,7 @@ go_string_new (char const *str)
}
/**
- * go_string_new_nocopy :
+ * go_string_new_nocopy:
* @str : string
*
* GOString takes ownership of @str
@@ -634,7 +634,8 @@ go_string_get_type (void)
}
/**
- * go_string_get_len
+ * go_string_get_len:
+ * @gstr : string.
**/
guint32
go_string_get_len (GOString const *gstr)
@@ -644,7 +645,8 @@ go_string_get_len (GOString const *gstr)
/**
- * go_string_get_markup
+ * go_string_get_markup:
+ * @gstr : string.
**/
PangoAttrList *
go_string_get_markup (GOString const *gstr)
@@ -679,7 +681,11 @@ go_string_get_phonetic (GOString const *gstr)
/**
- * go_string_equal_ignorecase
+ * go_string_equal_ignorecase:
+ * @gstr_a : string.
+ * @gstr_b : string.
+ *
+ * Returns: TRUE if the two strings are equal when ignoring letter case.
**/
gboolean
go_string_equal_ignorecase (gconstpointer gstr_a, gconstpointer gstr_b)
@@ -689,7 +695,9 @@ go_string_equal_ignorecase (gconstpointer gstr_a, gconstpointer gstr_b)
/**
- * go_string_equal_ignorecase
+ * go_string_equal_rich:
+ * @gstr_a : string.
+ * @gstr_b : string.
**/
gboolean
go_string_equal_rich (gconstpointer gstr_a, gconstpointer gstr_b)
@@ -706,7 +714,11 @@ find_shape_attr (PangoAttribute *attribute, G_GNUC_UNUSED gpointer data)
}
/**
- * go_string_trim
+ * go_string_trim:
+ * @gstr : string.
+ * @internal : Trim multiple consequtive internal spaces.
+ *
+ * Returns: @gstr
**/
GOString *
go_string_trim (GOString *gstr, gboolean internal)
diff --git a/goffice/utils/go-undo.c b/goffice/utils/go-undo.c
index 1dc357e..95f0837 100644
--- a/goffice/utils/go-undo.c
+++ b/goffice/utils/go-undo.c
@@ -51,7 +51,7 @@
GSF_CLASS (GOUndo, go_undo, NULL, NULL, G_TYPE_OBJECT)
/**
- * go_undo_undo_with_data
+ * go_undo_undo_with_data:
* @u: undo object
* @data: user data
*
@@ -72,7 +72,7 @@ go_undo_undo_with_data (GOUndo *u, gpointer data)
}
/**
- * go_undo_undo
+ * go_undo_undo:
* @u: undo object
*
* Execute the stored undo operation.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]