From: Pierre-Luc Beaudoin Date: Sun, 12 Apr 2009 00:35:36 +0000 (-0400) Subject: Make the draw_marker overwrittable X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=503ed61c9ad98828651243d9e40638a49bd72161;p=libchamplain Make the draw_marker overwrittable --- diff --git a/champlain/champlain-marker.c b/champlain/champlain-marker.c index b728ea6..b89a1c3 100644 --- a/champlain/champlain-marker.c +++ b/champlain/champlain-marker.c @@ -235,6 +235,7 @@ champlain_marker_class_init (ChamplainMarkerClass *markerClass) object_class->get_property = champlain_marker_get_property; object_class->set_property = champlain_marker_set_property; + markerClass->draw_marker = draw_marker; /** * ChamplainMarker:text: * @@ -510,7 +511,7 @@ property_notify (GObject *gobject, if (pspec->owner_type == CLUTTER_TYPE_ACTOR) return; - draw_marker (CHAMPLAIN_MARKER (gobject)); + CHAMPLAIN_MARKER_GET_CLASS (gobject)->draw_marker (CHAMPLAIN_MARKER (gobject)); } static void diff --git a/champlain/champlain-marker.h b/champlain/champlain-marker.h index f2d55b7..7269bd4 100644 --- a/champlain/champlain-marker.h +++ b/champlain/champlain-marker.h @@ -50,6 +50,8 @@ typedef struct { ChamplainBaseMarkerClass parent_class; + void (* draw_marker) (ChamplainMarker *marker); + } ChamplainMarkerClass; GType champlain_marker_get_type (void);