/* Get proxy data and register for updates. */
if (gconf_client_get_bool(gconf_client, GCONF_KEY_HTTP_PROXY_ON, NULL)) {
- _http_proxy_host = gconf_client_get_string(gconf_client,
- GCONF_KEY_HTTP_PROXY_HOST,
- NULL);
+ _http_proxy_host = gconf_client_get_string(gconf_client, GCONF_KEY_HTTP_PROXY_HOST, NULL);
_http_proxy_port = gconf_client_get_int(gconf_client, GCONF_KEY_HTTP_PROXY_PORT, NULL);
} else {
_http_proxy_host = NULL;
GnomeVFSHandle *handle;
gchar *track_file;
track_file = gnome_vfs_uri_make_full_from_relative(config_dir, CONFIG_FILE_TRACK);
-if (GNOME_VFS_OK == gnome_vfs_create(&handle, track_file, GNOME_VFS_OPEN_WRITE,
- FALSE, 0600)) {
- write_gpx(&_track, handle);
- gnome_vfs_close(handle);
+if (GNOME_VFS_OK == gnome_vfs_create(&handle, track_file, GNOME_VFS_OPEN_WRITE, FALSE, 0600)) {
+ write_gpx(&_track, handle);
+ gnome_vfs_close(handle);
}
g_free(track_file);
}
GnomeVFSHandle *handle;
gchar *route_file;
route_file = gnome_vfs_uri_make_full_from_relative(config_dir, CONFIG_FILE_ROUTE);
-if (GNOME_VFS_OK == gnome_vfs_create(&handle, route_file, GNOME_VFS_OPEN_WRITE,
- FALSE, 0600)) {
- write_gpx(&_route, handle);
- gnome_vfs_close(handle);
+if (GNOME_VFS_OK == gnome_vfs_create(&handle, route_file, GNOME_VFS_OPEN_WRITE, FALSE, 0600)) {
+ write_gpx(&_route, handle);
+ gnome_vfs_close(handle);
}
g_free(route_file);
}
gconf_client_set_int(gconf_client, GCONF_KEY_POI_ZOOM, _poi_zoom, NULL);
#if 0
- config_save_track(config_dir);
- config_save_route(config_dir);
+config_save_track(config_dir);
+config_save_route(config_dir);
#endif
gconf_client_clear_cache(gconf_client);