[goffice] Avoid one more introspection warning.
- From: Jean Bréfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Avoid one more introspection warning.
- Date: Sun, 24 Feb 2013 14:34:52 +0000 (UTC)
commit 9eed145372b70c09364a4b1fce83a0701d6f81ba
Author: Jean Brefort <jean brefort normalesup org>
Date: Sun Feb 24 14:33:07 2013 +0100
Avoid one more introspection warning.
ChangeLog | 6 ++++++
goffice/graph/gog-styled-object.c | 4 +---
goffice/graph/gog-styled-object.h | 2 +-
3 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index cab3b2c..8976b67 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-02-24 Jean Brefort <jean brefort normalesup org>
+
+ * goffice/graph/gog-styled-object.c (gog_style_new): returns GogStyle* to
+ avoid confuse introspection.
+ * goffice/graph/gog-styled-object.h: ditto.
+
2013-02-23 Morten Welinder <terra gnome org>
* */*.c: Avoid G_OBJECT casts for g_object_ref and g_object_unref.
diff --git a/goffice/graph/gog-styled-object.c b/goffice/graph/gog-styled-object.c
index cab83bd..6f75d47 100644
--- a/goffice/graph/gog-styled-object.c
+++ b/goffice/graph/gog-styled-object.c
@@ -313,15 +313,13 @@ GSF_CLASS_FULL (GogStyledObject, gog_styled_object, NULL, NULL,
GOG_TYPE_OBJECT, G_TYPE_FLAG_ABSTRACT,
GSF_INTERFACE (gog_styled_object_so_init, GO_TYPE_STYLED_OBJECT))
-#ifndef GOFFICE_DISABLE_DEPRECTATED
/**
* gog_style_new: (skip)
*
* Returns: (transfer full): the new #GogStyle
**/
-GOStyle *
+GogStyle *
gog_style_new (void)
{
return g_object_new (gog_style_get_type (), NULL);
}
-#endif
diff --git a/goffice/graph/gog-styled-object.h b/goffice/graph/gog-styled-object.h
index 046aa8e..8c9b69d 100644
--- a/goffice/graph/gog-styled-object.h
+++ b/goffice/graph/gog-styled-object.h
@@ -50,7 +50,7 @@ typedef struct {
#define GOG_STYLED_OBJECT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GOG_TYPE_STYLED_OBJECT,
GogStyledObjectClass))
GType gog_styled_object_get_type (void);
-GOStyle *gog_style_new (void);
+GogStyle *gog_style_new (void);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]