summaryrefslogtreecommitdiff
path: root/navit/search.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-07-13 19:00:42 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-07-13 19:00:42 +0000
commit868c324f2f6a5fae4de7cb8a51de7d9efcf73c4b (patch)
tree8ec794178376c441f3ecd9d997f293693671df0d /navit/search.c
parent76e5c0a2f38a8b9b370d46b849b139705a6ccced (diff)
downloadnavit-svn-868c324f2f6a5fae4de7cb8a51de7d9efcf73c4b.tar.gz
Add:gui_internal:Added support for street searches
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1211 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/search.c')
-rw-r--r--navit/search.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/navit/search.c b/navit/search.c
index f4ddf494..0631389a 100644
--- a/navit/search.c
+++ b/navit/search.c
@@ -126,8 +126,10 @@ search_list_country_new(struct item *item)
ret->item=*item;
if (item_attr_get(item, attr_country_car, &attr))
ret->car=g_strdup(attr.u.str);
- if (item_attr_get(item, attr_country_iso2, &attr))
+ if (item_attr_get(item, attr_country_iso2, &attr)) {
ret->iso2=g_strdup(attr.u.str);
+ ret->flag=g_strdup_printf("country_%s", ret->iso2);
+ }
if (item_attr_get(item, attr_country_iso3, &attr))
ret->iso3=g_strdup(attr.u.str);
if (item_attr_get(item, attr_country_name, &attr))
@@ -141,6 +143,7 @@ search_list_country_destroy(struct search_list_country *this_)
g_free(this_->car);
g_free(this_->iso2);
g_free(this_->iso3);
+ g_free(this_->flag);
g_free(this_->name);
g_free(this_);
}