]> err.no Git - mapper/commitdiff
Formating
authorKaj-Michael Lang <milang@onion.tal.org>
Thu, 27 Sep 2007 14:05:53 +0000 (17:05 +0300)
committerKaj-Michael Lang <milang@onion.tal.org>
Thu, 27 Sep 2007 14:05:53 +0000 (17:05 +0300)
src/config-gconf.c

index 6c17c2ab20f3d0b03708dbbcec3d262a279eff79..a49be3be3bec81b0bdaeb6cb06c472e5d26c66f3 100644 (file)
@@ -41,9 +41,7 @@ if (_http_proxy_host)
 
 /* 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;
@@ -58,10 +56,9 @@ config_save_track(gchar *config_dir)
 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);
 }
@@ -72,10 +69,9 @@ config_save_route(gchar *config_dir)
 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);
 }
@@ -368,8 +364,8 @@ else
 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);