[goffice] Enhance introspection usability
- From: Jean Bréfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Enhance introspection usability
- Date: Mon, 11 Jan 2016 15:45:45 +0000 (UTC)
commit e56daa9073acb09b83b3013fa415ef07f4dfd9f3
Author: Jean Brefort <jean brefort normalesup org>
Date: Mon Jan 11 16:44:30 2016 +0100
Enhance introspection usability
ChangeLog | 8 ++++++++
goffice/app/go-plugin.c | 8 ++++----
goffice/goffice.c | 1 +
goffice/graph/gog-object.c | 2 +-
goffice/math/go-cspline.c | 2 +-
5 files changed, 15 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 900c1c0..de88faa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2016-01-11 Jean Brefort <jean brefort normalesup org>
+
+ * goffice/app/go-plugin.c: add introspection anotations.
+ * goffice/goffice.c (libgoffice_init): initialise GOPluginLoaderModule
+ class to allow plugins initialization through introspection.
+ * goffice/graph/gog-object.c: add an introspection anotation.
+ * goffice/math/go-cspline.c: typo.
+
2016-01-01 Andreas J. Guelzow <aguelzow pyrshep ca>
* utils/go-format.c (go_format_output_date_to_odf): write
diff --git a/goffice/app/go-plugin.c b/goffice/app/go-plugin.c
index 94c9c39..76704a4 100644
--- a/goffice/app/go-plugin.c
+++ b/goffice/app/go-plugin.c
@@ -1786,10 +1786,10 @@ go_plugins_set_dirs (GSList *plugin_dirs)
/**
* go_plugins_init:
- * @context: #GOCmdContext used to report errors
- * @known_states: (element-type char): A list of known states (defined how ?)
- * @active_plugins: (element-type char): A list of active plugins
- * @plugin_dirs: (element-type char): a list of directories to search for plugins
+ * @context: (allow-none): #GOCmdContext used to report errors
+ * @known_states: (allow-none) (element-type char): A list of known states (defined how ?)
+ * @active_plugins: (allow-none) (element-type char): A list of active plugins
+ * @plugin_dirs: (allow-none) (element-type char): a list of directories to search for plugins
* @activate_new_plugins: activate plugins we have no seen before.
* @default_loader_type: importer to use by default.
*
diff --git a/goffice/goffice.c b/goffice/goffice.c
index 44fc279..31e51b6 100644
--- a/goffice/goffice.c
+++ b/goffice/goffice.c
@@ -213,6 +213,7 @@ libgoffice_init (void)
_goc_plugin_services_init ();
install_icons ();
#endif
+ (void) GO_TYPE_PLUGIN_LOADER_MODULE;
(void) GOG_TYPE_GRAPH;
(void) GOG_TYPE_CHART;
(void) GOG_TYPE_PLOT;
diff --git a/goffice/graph/gog-object.c b/goffice/graph/gog-object.c
index d2e96a4..1e3b8cc 100644
--- a/goffice/graph/gog-object.c
+++ b/goffice/graph/gog-object.c
@@ -1810,7 +1810,7 @@ gog_object_add_by_role (GogObject *parent, GogObjectRole const *role, GogObject
* gog_object_add_by_name:
* @parent: #GogObject
* @role:
- * @child: optionally null #GogObject
+ * @child: (transfer full) (allow-none): optionally null #GogObject
*
* Returns: (transfer none): a newly created child of @parent in @role. If @child is provided,
* it is assumed to be an unaffiliated object that will be assigned in @role.
diff --git a/goffice/math/go-cspline.c b/goffice/math/go-cspline.c
index 307f6f7..f37bf81 100644
--- a/goffice/math/go-cspline.c
+++ b/goffice/math/go-cspline.c
@@ -82,7 +82,7 @@ GType go_csplinel_get_type (void) { return G_TYPE_NONE; }
* members of the new structure.
*
* Returns: a newly created GOCSpline instance which should be
- * destroyed by a call to go_bezier_spline_destroy.
+ * destroyed by a call to go_cspline_destroy.
*/
SUFFIX(GOCSpline) *
SUFFIX(go_cspline_init) (DOUBLE const *x, DOUBLE const *y, int n,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]