[libshumate] marker-layer: Also monitor markers' longitude



commit dff386563232e2c97d1e0220e57a1c9973d906d1
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Mar 10 12:25:16 2021 -0300

    marker-layer: Also monitor markers' longitude
    
    Monitoring only the latitude of the marker is not enough, ShumateMarkerLayer
    should also monitor the longitude for completeness.

 shumate/shumate-marker-layer.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/shumate/shumate-marker-layer.c b/shumate/shumate-marker-layer.c
index c3248d4..f0ce9cb 100644
--- a/shumate/shumate-marker-layer.c
+++ b/shumate/shumate-marker-layer.c
@@ -446,6 +446,8 @@ shumate_marker_layer_add_marker (ShumateMarkerLayer *layer,
 
   g_signal_connect (G_OBJECT (marker), "notify::latitude",
       G_CALLBACK (marker_position_notify), layer);
+  g_signal_connect (G_OBJECT (marker), "notify::longitude",
+      G_CALLBACK (marker_position_notify), layer);
 
   /*g_signal_connect (G_OBJECT (marker), "drag-motion",
       G_CALLBACK (marker_move_by_cb), layer);*/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]