From: Pierre-Luc Beaudoin Date: Tue, 23 Sep 2008 21:51:38 +0000 (-0400) Subject: Use (lat, lon) for markers too! X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d567a8e1ca8f53db5a7ab3718ee6667a4169c4f;p=libchamplain Use (lat, lon) for markers too! --- diff --git a/champlain/champlainmarker.c b/champlain/champlainmarker.c index 89a6e64..d714d1c 100644 --- a/champlain/champlainmarker.c +++ b/champlain/champlainmarker.c @@ -188,15 +188,15 @@ champlain_marker_new () * Since: 0.2 */ void -champlain_marker_set_position (ChamplainMarker *champlainMarker, gdouble longitude, gdouble latitude) +champlain_marker_set_position (ChamplainMarker *champlainMarker, gdouble latitude, gdouble longitude) { ChamplainMarkerPrivate *priv = CHAMPLAIN_MARKER_GET_PRIVATE (champlainMarker); priv->lon = longitude; priv->lat = latitude; - g_object_notify(G_OBJECT(champlainMarker), "longitude"); g_object_notify(G_OBJECT(champlainMarker), "latitude"); + g_object_notify(G_OBJECT(champlainMarker), "longitude"); } /** diff --git a/champlain/launcher.c b/champlain/launcher.c index 2b6a346..5d9f928 100644 --- a/champlain/launcher.c +++ b/champlain/launcher.c @@ -42,7 +42,7 @@ create_marker_layer () champlain_marker_set_position(CHAMPLAIN_MARKER(marker), 47.130885, -70.764141); clutter_container_add(CLUTTER_CONTAINER(layer), marker, NULL); - clutter_actor_hide(layer); + clutter_actor_show(layer); return layer; }