]> err.no Git - libchamplain/commitdiff
Make the draw_marker overwrittable
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sun, 12 Apr 2009 00:35:36 +0000 (20:35 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sun, 12 Apr 2009 01:41:49 +0000 (21:41 -0400)
champlain/champlain-marker.c
champlain/champlain-marker.h

index b728ea61045c64f489160bf8dbd5c0715e29176f..b89a1c347a1775bde4cea0353d21695dae85e417 100644 (file)
@@ -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
index f2d55b71b8761058f547579ae85f7904ae3190a7..7269bd470ca31de20bd25383fa70bc881b0b28e8 100644 (file)
@@ -50,6 +50,8 @@ typedef struct
 {
   ChamplainBaseMarkerClass parent_class;
 
+  void (* draw_marker) (ChamplainMarker *marker);
+
 } ChamplainMarkerClass;
 
 GType champlain_marker_get_type (void);