From: Pierre-Luc Beaudoin Date: Sun, 7 Sep 2008 20:09:29 +0000 (-0400) Subject: Remove champlain_marker_set_anchor X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f09ec555805f5cc57f0e50b1f7f9db3638a77e5;p=libchamplain Remove champlain_marker_set_anchor clutter_actor_set_anchor_point has the same functionality. --- diff --git a/champlain/champlainmarker.c b/champlain/champlainmarker.c index 2318f04..2b6bfff 100644 --- a/champlain/champlainmarker.c +++ b/champlain/champlainmarker.c @@ -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; } diff --git a/champlain/champlainmarker.h b/champlain/champlainmarker.h index 25f5684..f9bbd8b 100644 --- a/champlain/champlainmarker.h +++ b/champlain/champlainmarker.h @@ -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,