[libshumate] marker-layer: Rename set_marker_position() to update_marker_visibility()
- From: Corentin Noël <corentinnoel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libshumate] marker-layer: Rename set_marker_position() to update_marker_visibility()
- Date: Tue, 2 Mar 2021 15:14:16 +0000 (UTC)
commit e7d265e90f0de6969c25f1b7b6be62b80fceca32
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Mar 2 11:07:41 2021 -0300
marker-layer: Rename set_marker_position() to update_marker_visibility()
So it better reflects what it currently does.
shumate/shumate-marker-layer.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/shumate/shumate-marker-layer.c b/shumate/shumate-marker-layer.c
index e2e0cee..dd57ced 100644
--- a/shumate/shumate-marker-layer.c
+++ b/shumate/shumate-marker-layer.c
@@ -106,8 +106,8 @@ on_click_gesture_released (ShumateMarkerLayer *self,
}
static void
-set_marker_position (ShumateMarkerLayer *layer,
- ShumateMarker *marker)
+update_marker_visibility (ShumateMarkerLayer *layer,
+ ShumateMarker *marker)
{
ShumateViewport *viewport;
ShumateMapSource *map_source;
@@ -161,7 +161,7 @@ shumate_marker_layer_reposition_markers (ShumateMarkerLayer *self)
child != NULL;
child = gtk_widget_get_next_sibling (child))
{
- set_marker_position (self, SHUMATE_MARKER (child));
+ update_marker_visibility (self, SHUMATE_MARKER (child));
}
}
@@ -394,7 +394,7 @@ marker_position_notify (ShumateMarker *marker,
G_GNUC_UNUSED GParamSpec *pspec,
ShumateMarkerLayer *layer)
{
- set_marker_position (layer, marker);
+ update_marker_visibility (layer, marker);
}
@@ -447,7 +447,7 @@ shumate_marker_layer_add_marker (ShumateMarkerLayer *layer,
G_CALLBACK (marker_move_by_cb), layer);*/
gtk_widget_insert_before (GTK_WIDGET(marker), GTK_WIDGET (layer), NULL);
- set_marker_position (layer, marker);
+ update_marker_visibility (layer, marker);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]