From 262d155b30d10d2395fac8c5020641e138260efd Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Thu, 25 Oct 2007 13:10:28 +0300 Subject: [PATCH] Rename default db to mapper.db. Code formating. --- src/config-gconf.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/config-gconf.c b/src/config-gconf.c index 2986ad2..67dc7c8 100644 --- a/src/config-gconf.c +++ b/src/config-gconf.c @@ -694,18 +694,16 @@ _conn_state = (_enable_gps ? RCVR_DOWN : RCVR_OFF); _loc_model = gtk_list_store_new(1, G_TYPE_STRING); for (curr = _loc_list; curr != NULL; curr = curr->next) { GtkTreeIter iter; - gtk_list_store_insert_with_values(_loc_model, &iter, - INT_MAX, 0, - curr->data, -1); + gtk_list_store_insert_with_values(_loc_model, &iter, INT_MAX, 0, curr->data, -1); } } -/* Get Mapper Database. Default is in REPO_DEFAULT_CACHE_BASE */ +/* Get Mapper Database. Default is in REPO_DEFAULT_CACHE_BASE */ _mapper_db = gconf_client_get_string(gconf_client, GCONF_KEY_MAPPER_DB, NULL); if (_mapper_db == NULL) { - gchar *poi_base = gnome_vfs_expand_initial_tilde(REPO_DEFAULT_CACHE_BASE); - _mapper_db = gnome_vfs_uri_make_full_from_relative(poi_base, "poi.db"); - g_free(poi_base); + gchar *db_base = gnome_vfs_expand_initial_tilde(REPO_DEFAULT_CACHE_BASE); + _mapper_db = gnome_vfs_uri_make_full_from_relative(db_base, "mapper.db"); + g_free(db_base); } _poi_zoom = gconf_client_get_int(gconf_client, GCONF_KEY_POI_ZOOM, NULL); @@ -721,7 +719,7 @@ if (value) { _gps_info = FALSE; } -/* Get Route Download URL. Default is: +/* Get Route Download URL. Default is: * "http://www.gnuite.com/cgi-bin/gpx.cgi?saddr=%s&daddr=%s" */ _route_dl_url = gconf_client_get_string(gconf_client, GCONF_KEY_ROUTE_DL_URL, NULL); if (_route_dl_url == NULL) -- 2.39.5