From: Kaj-Michael Lang Date: Thu, 27 Sep 2007 14:05:53 +0000 (+0300) Subject: Formating X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6691b0037e816d46ee1f11b19aa032ea071ae32e;p=mapper Formating --- diff --git a/src/config-gconf.c b/src/config-gconf.c index 6c17c2a..a49be3b 100644 --- a/src/config-gconf.c +++ b/src/config-gconf.c @@ -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);