70 |
{ "manual_goto_lon", STORE_FLOAT, OFFSET(manual_goto.lon) }, |
{ "manual_goto_lon", STORE_FLOAT, OFFSET(manual_goto.lon) }, |
71 |
{ "gps_lat", STORE_FLOAT, OFFSET(gps.lat) }, |
{ "gps_lat", STORE_FLOAT, OFFSET(gps.lat) }, |
72 |
{ "gps_lon", STORE_FLOAT, OFFSET(gps.lon) }, |
{ "gps_lon", STORE_FLOAT, OFFSET(gps.lon) }, |
|
{ "load_images", STORE_BOOL, OFFSET(load_images) }, |
|
73 |
{ "search_in", STORE_INT, OFFSET(search) }, |
{ "search_in", STORE_INT, OFFSET(search) }, |
74 |
{ "search_days", STORE_INT, OFFSET(search_days) }, |
{ "search_days", STORE_INT, OFFSET(search_days) }, |
75 |
{ "search_str", STORE_STRING, OFFSET(search_str) }, |
{ "search_str", STORE_STRING, OFFSET(search_str) }, |
313 |
appdata->search = SEARCH_NAME | SEARCH_ID; |
appdata->search = SEARCH_NAME | SEARCH_ID; |
314 |
|
|
315 |
if(!appdata->image_path) { |
if(!appdata->image_path) { |
|
/* if we get here, there's no config at all yet. So this is a */ |
|
|
/* good place to set all kinds of useful defaults */ |
|
|
appdata->load_images = TRUE; |
|
316 |
|
|
317 |
|
/* use gps by default */ |
318 |
|
appdata->use_gps = TRUE; |
319 |
|
|
320 |
#ifndef USE_MAEMO |
#ifndef USE_MAEMO |
321 |
char *p = getenv("HOME"); |
char *p = getenv("HOME"); |
392 |
if(!appdata->cachelist_items) |
if(!appdata->cachelist_items) |
393 |
appdata->cachelist_items = CACHELIST_ITEM_DEFAULT; |
appdata->cachelist_items = CACHELIST_ITEM_DEFAULT; |
394 |
|
|
395 |
|
/* if there are no entries in the main list, try to add the */ |
396 |
|
/* "welcome" one */ |
397 |
|
if(!appdata->gpx) { |
398 |
|
char *name = g_strdup("/usr/share/gpxview/welcome.gpx"); |
399 |
|
dialog = gpx_busy_dialog_new(GTK_WIDGET(appdata->window)); |
400 |
|
printf("No GPX file loaded, trying to load demo\n"); |
401 |
|
appdata->gpx = gpx_parse(dialog, name); |
402 |
|
gpx_busy_dialog_destroy(dialog); |
403 |
|
g_free(name); |
404 |
|
} |
405 |
} |
} |
406 |
|
|