]> err.no Git - mapper/commitdiff
Poi: More map widget integration
authorKaj-Michael Lang <milang@tal.org>
Mon, 2 Jun 2008 10:25:23 +0000 (13:25 +0300)
committerKaj-Michael Lang <milang@tal.org>
Mon, 2 Jun 2008 10:25:23 +0000 (13:25 +0300)
src/poi-gui.c

index 639beedb58c0f549868be60d5bc001ebe51dc98b..6afe2d1d3a1764e5f3e36693382853e8ee182127 100644 (file)
@@ -452,7 +452,7 @@ if (i == GTK_RESPONSE_OK) {
        } else {
                gtk_widget_hide_all(dpoi->dialog);
                map_poi_cache_clear();
-               map_force_redraw();
+               gtk_map_refresh(_map);
        }
 }
 return TRUE;
@@ -545,8 +545,6 @@ _dest->valid=TRUE;
 gtk_tree_model_get(model, &iter, ITEM_LAT, &_dest->lat, -1);
 gtk_tree_model_get(model, &iter, ITEM_LON, &_dest->lon, -1);
 
-map_update_location_from_center();
-
 return TRUE;
 }
 
@@ -949,7 +947,7 @@ while (GTK_RESPONSE_ACCEPT == gtk_dialog_run(GTK_DIALOG(dialog))) {
                        popup_error(_window, _("Problem updating POI"));
                } else {
                        map_poi_cache_clear();
-                       map_force_redraw();
+                       gtk_map_refresh(_map);
                }
        } else {
                /* add poi */
@@ -959,7 +957,7 @@ while (GTK_RESPONSE_ACCEPT == gtk_dialog_run(GTK_DIALOG(dialog))) {
                        popup_error(_window, _("Problem adding POI"));
                } else {
                        map_poi_cache_clear();
-                       map_force_redraw();
+                       gtk_map_refresh(_map);
                }
        }
        break;
@@ -1013,7 +1011,7 @@ if (poi_add(p)==FALSE) {
        txt=g_strdup_printf("QP(%d): %f %f %s", p->cat_id, p->lat, p->lon, p->label);
        path_insert_mark_text(_track, txt);
 
-       map_force_redraw();
+       gtk_map_refresh(_map);
        if (qpdata->close==TRUE)
                gtk_widget_destroy(qpdata->dialog);