From 24e565228504e75c8ab2e5a77e1cf1da2b23cf39 Mon Sep 17 00:00:00 2001 From: Pierre-Luc Beaudoin Date: Sun, 3 May 2009 23:24:24 -0400 Subject: [PATCH] Fix documentation generation GObject struct need to be declared not as typedef. --- champlain/champlain-map-source-factory.c | 2 +- champlain/champlain-marker.h | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/champlain/champlain-map-source-factory.c b/champlain/champlain-map-source-factory.c index c3dcdf7..fb93b4f 100644 --- a/champlain/champlain-map-source-factory.c +++ b/champlain/champlain-map-source-factory.c @@ -285,7 +285,7 @@ champlain_map_source_factory_create (ChamplainMapSourceFactory *factory, * Registers the new map source with the given constructor. When this map * source is requested, the given constructor will be used to build the * map source. #ChamplainMapSourceFactory will take ownership of the passed - * ChamplainMapSourceDesc, so don't free it. They will not be freed either so + * #ChamplainMapSourceDesc, so don't free it. They will not be freed either so * you can use static structs here. * * Returns TRUE if the registration suceeded. diff --git a/champlain/champlain-marker.h b/champlain/champlain-marker.h index 6cf48fe..34450ae 100644 --- a/champlain/champlain-marker.h +++ b/champlain/champlain-marker.h @@ -39,20 +39,22 @@ G_BEGIN_DECLS typedef struct _ChamplainMarkerPrivate ChamplainMarkerPrivate; -typedef struct +typedef struct _ChamplainMarker ChamplainMarker; +typedef struct _ChamplainMarkerClass ChamplainMarkerClass; + +struct _ChamplainMarker { ChamplainBaseMarker base; ChamplainMarkerPrivate *priv; -} ChamplainMarker; +}; -typedef struct +struct _ChamplainMarkerClass { ChamplainBaseMarkerClass parent_class; void (* draw_marker) (ChamplainMarker *marker); - -} ChamplainMarkerClass; +}; GType champlain_marker_get_type (void); -- 2.39.5