]> err.no Git - libchamplain/commitdiff
Use (lat, lon) for markers too!
authorPierre-Luc Beaudoin <pierre-luc@squidy.info>
Tue, 23 Sep 2008 21:51:38 +0000 (17:51 -0400)
committerPierre-Luc Beaudoin <pierre-luc@squidy.info>
Tue, 23 Sep 2008 21:51:38 +0000 (17:51 -0400)
champlain/champlainmarker.c
champlain/launcher.c

index 89a6e642e237327efdf543c6e475dd15bae6a397..d714d1c8fbc79a1c126b77ff487edd92ecf87840 100644 (file)
@@ -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");
 }
 
 /**
index 2b6a3461901f9c7726dc4d8e4c78505bc8afaafb..5d9f928ae79ec4eefbb139cee01191be9f3ed623 100644 (file)
@@ -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;
 }