Commit ef14ca5f7448366dde169f3648e6b0ce4dc21b25
- Diff rendering mode:
- inline
- side by side
NEWS
(2 / 0)
|   | |||
| 24 | 24 | Beaudoin) | |
| 25 | 25 | * 606393: The display of tiles looks very programmatic, they now load in spiral | |
| 26 | 26 | order (Jason Woofenden) | |
| 27 | * Limit the number of times notify::latitude and notify::longitude are emited | ||
| 28 | (Pierre-Luc Beaudoin) | ||
| 27 | 29 | ||
| 28 | 30 | libchamplain 0.4.3 (2010-01-09) | |
| 29 | 31 | =============================== |
champlain/champlain-view.c
(11 / 4)
|   | |||
| 285 | 285 | gfloat y) | |
| 286 | 286 | { | |
| 287 | 287 | ChamplainViewPrivate *priv = view->priv; | |
| 288 | gfloat lat, lon; | ||
| 288 | 289 | ||
| 289 | 290 | ChamplainFloatPoint old_anchor; | |
| 290 | 291 | ||
| … | … | ||
| 318 | 318 | update_scale (view); | |
| 319 | 319 | ||
| 320 | 320 | view_update_polygons (view); | |
| 321 | priv->longitude = viewport_get_current_longitude (priv); | ||
| 322 | priv->latitude = viewport_get_current_latitude (priv); | ||
| 321 | lon = viewport_get_current_longitude (priv); | ||
| 322 | lat = viewport_get_current_latitude (priv); | ||
| 323 | 323 | ||
| 324 | g_object_notify (G_OBJECT (view), "longitude"); | ||
| 325 | g_object_notify (G_OBJECT (view), "latitude"); | ||
| 324 | priv->longitude = lon; | ||
| 325 | priv->latitude = lat; | ||
| 326 | |||
| 327 | if (fabs (priv->longitude - lon) > 0.001) | ||
| 328 | g_object_notify (G_OBJECT (view), "longitude"); | ||
| 329 | |||
| 330 | if (fabs (priv->latitude - lat) > 0.001) | ||
| 331 | g_object_notify (G_OBJECT (view), "latitude"); | ||
| 326 | 332 | } | |
| 327 | 333 | ||
| 328 | 334 | static void |
Comments
Add a new comment:
Login or create an account to post a comment
Add your comment
Please log in to comment

