GObject struct need to be declared not as typedef.
* 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.
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);