]> err.no Git - libchamplain/commitdiff
Remove champlain_marker_set_anchor
authorPierre-Luc Beaudoin <pierre-luc@squidy.info>
Sun, 7 Sep 2008 20:09:29 +0000 (16:09 -0400)
committerPierre-Luc Beaudoin <pierre-luc@squidy.info>
Sun, 7 Sep 2008 20:09:29 +0000 (16:09 -0400)
clutter_actor_set_anchor_point has the same functionality.

champlain/champlainmarker.c
champlain/champlainmarker.h

index 2318f046e188720a0040a070fd4794262add4af9..2b6bfff7e2893d7c5736845c76c32efad8e01971 100644 (file)
@@ -200,27 +200,6 @@ champlain_marker_set_position (ChamplainMarker *champlainMarker, gdouble longitu
   g_object_notify(G_OBJECT(champlainMarker), "latitude");
 }
 
-/**
- * champlain_marker_set_anchor:
- * @marker: a #ChamplainMarker
- * @x: the position in the actor that represents the longitude
- * @y: the position in the actor that represents the latitude
- *
- * Marks the point (x, y) as the place where the #ChamplainMarker position is at (longitude, latitude).
- *
- * Since: 0.2
- */
-void
-champlain_marker_set_anchor (ChamplainMarker *champlainMarker, gint x, gint y)
-{
-  ChamplainMarkerPrivate *priv = CHAMPLAIN_MARKER_GET_PRIVATE (champlainMarker);
-
-  priv->anchor.x = x;
-  priv->anchor.y = y;
-
-  clutter_actor_set_position(CLUTTER_ACTOR(champlainMarker), -x, -y);
-}
-
 /**
  * champlain_marker_new_with_label:
  * @label: the text of the label
@@ -301,7 +280,7 @@ champlain_marker_new_with_label (const gchar *label,
   clutter_container_add_actor(CLUTTER_CONTAINER(champlainMarker), bg);
   clutter_actor_raise(actor, bg);
 
-  champlain_marker_set_anchor(CHAMPLAIN_MARKER(champlainMarker), 0, text_height + point);
+  clutter_actor_set_anchor_point(CLUTTER_ACTOR(champlainMarker), 0, text_height + point);
 
   return champlainMarker;
 }
index 25f568403261cc2676d53c47b5fb902fad7342f3..f9bbd8b73ad702213ae6bbfbad0564910ec284ed 100644 (file)
@@ -52,8 +52,6 @@ ClutterActor *champlain_marker_new ();
 
 void champlain_marker_set_position (ChamplainMarker *marker, gdouble longitude, gdouble latitude);
 
-void champlain_marker_set_anchor (ChamplainMarker *marker, gint x, gint y);
-
 ClutterActor *champlain_marker_new_with_label (const gchar *label,
                                  const gchar *font,
                                  ClutterColor *text_color,