clutter_container_remove_actor (CLUTTER_CONTAINER (priv->map_layer), group);
clutter_container_add_actor (CLUTTER_CONTAINER (priv->map_layer), priv->map->current_level->group);
champlain_view_center_on(view, lon2, lat2);
- marker_reposition(view);
g_object_notify(G_OBJECT(view), "zoom-level");
}
"notify::longitude",
G_CALLBACK (notify_marker_reposition_cb),
view);
+ marker_reposition(view);
}
static void
if (center)
{
champlain_view_center_on(view, priv->longitude, priv->latitude);
- marker_reposition(view);
}
}
clutter_container_remove_actor (CLUTTER_CONTAINER (priv->map_layer), group);
clutter_container_add_actor (CLUTTER_CONTAINER (priv->map_layer), priv->map->current_level->group);
champlain_view_center_on(view, lon, lat);
- marker_reposition(view);
}
}
}
// Setup mouse cursor to a hand
gdk_window_set_cursor( priv->clutter_embed->window, priv->cursor_hand_open);
}
+
static gboolean
mouse_button_cb (GtkWidget *widget, GdkEventButton *event, ChamplainView *view)
{
g_object_notify(G_OBJECT(view), "latitude");
map_load_visible_tiles (priv->map, priv->viewport_size, priv->offline);
+ marker_reposition(view);
}
/**
clutter_container_remove_actor (CLUTTER_CONTAINER (priv->map_layer), group);
clutter_container_add_actor (CLUTTER_CONTAINER (priv->map_layer), priv->map->current_level->group);
champlain_view_center_on(view, lon, lat);
- marker_reposition(view);
g_object_notify(G_OBJECT(view), "zoom-level");
}
clutter_container_remove_actor (CLUTTER_CONTAINER (priv->map_layer), group);
clutter_container_add_actor (CLUTTER_CONTAINER (priv->map_layer), priv->map->current_level->group);
champlain_view_center_on(view, lon, lat);
- marker_reposition(view);
g_object_notify(G_OBJECT(view), "zoom-level");
}