]> err.no Git - mapper/commitdiff
More integration fixes
authorKaj-Michael Lang <milang@tal.org>
Thu, 5 Jun 2008 09:18:11 +0000 (12:18 +0300)
committerKaj-Michael Lang <milang@tal.org>
Thu, 5 Jun 2008 09:18:11 +0000 (12:18 +0300)
src/cb.c

index afe97fbaa68c7404061a1bb379444132ccab357d..1be88a361c6a980ef5856af4f58260ec1dbaf1b8 100644 (file)
--- a/src/cb.c
+++ b/src/cb.c
@@ -226,7 +226,7 @@ gboolean
 menu_cb_show_scale(GtkAction *action)
 {
 _show_scale = gtk_toggle_action_get_active(GTK_TOGGLE_ACTION(action));
-MACRO_QUEUE_DRAW_AREA();
+/* XXXXXXXXXXXXXXXXX */
 return TRUE;
 }
 
@@ -350,7 +350,7 @@ if (_route->next_way && _route->next_way->point->unity) {
        if (cm>0)
                set_action_activate("autocenter_none", TRUE);
 
-       gtk_map_set_center_unit(_map, _route->next_way->point->unitx, _route->next_way->point->unity);
+       gtk_map_set_center(_map, _route->next_way->point->unitx, _route->next_way->point->unity);
        if (gtk_map_get_zoom(_map)>3)
                gtk_map_set_zoom(_map, 3);
 } else {
@@ -741,10 +741,10 @@ window_cb_key_release(GtkWidget * widget, GdkEventKey * event)
 {
 switch (event->keyval) {
        case HILDON_HARDKEY_INCREASE:
-               gtk_map_zoomin(_map);
+               gtk_map_zoom_in(_map);
        break;
        case HILDON_HARDKEY_DECREASE:
-               gtk_map_zoomout(_map);
+               gtk_map_zoom_out(_map);
        break;
        default:
        break;