From: Pierre-Luc Beaudoin Date: Mon, 4 May 2009 03:24:24 +0000 (-0400) Subject: Fix documentation generation X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24e565228504e75c8ab2e5a77e1cf1da2b23cf39;p=libchamplain Fix documentation generation GObject struct need to be declared not as typedef. --- 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);