]> err.no Git - mapper/commitdiff
Save/Load osm filter
authorKaj-Michael Lang <milang@angel.tal.org>
Fri, 27 Jul 2007 10:11:58 +0000 (13:11 +0300)
committerKaj-Michael Lang <milang@angel.tal.org>
Fri, 27 Jul 2007 10:11:58 +0000 (13:11 +0300)
src/config.c

index 049463673b25520c5f524b59e6a95aeb9dd3a796..bc183cabd3125401a4251249cadae1fb0a7f9c07 100644 (file)
@@ -346,6 +346,7 @@ config_save()
        gconf_client_set_float(gconf_client, GCONF_KEY_GPS_FILTER_HDOP, _filter_hdop, NULL);
        gconf_client_set_float(gconf_client, GCONF_KEY_GPS_FILTER_VDOP, _filter_vdop, NULL);
        gconf_client_set_float(gconf_client, GCONF_KEY_GPS_FILTER_ANGLE, _filter_angle, NULL);
+       gconf_client_set_float(gconf_client, GCONF_KEY_GPS_FILTER_OSM, _filter_osm, NULL);
 
        /* Save Route Locations. */
        gconf_client_set_list(gconf_client, GCONF_KEY_ROUTE_LOCATIONS, GCONF_VALUE_STRING, _loc_list, NULL);
@@ -510,6 +511,7 @@ void config_init()
        _filter_hdop = gconf_client_get_float(gconf_client, GCONF_KEY_GPS_FILTER_HDOP, NULL);
        _filter_vdop = gconf_client_get_float(gconf_client, GCONF_KEY_GPS_FILTER_VDOP, NULL);
        _filter_angle = gconf_client_get_float(gconf_client, GCONF_KEY_GPS_FILTER_ANGLE, NULL);
+       _filter_osm = gconf_client_get_float(gconf_client, GCONF_KEY_GPS_FILTER_OSM, NULL);
 
        /* Get Units.  Default is UNITS_KM. */
        {