389 |
if(!appdata->cachelist_items) |
if(!appdata->cachelist_items) |
390 |
appdata->cachelist_items = CACHELIST_ITEM_DEFAULT; |
appdata->cachelist_items = CACHELIST_ITEM_DEFAULT; |
391 |
|
|
392 |
|
/* if there are no entries in the main list, try to add the */ |
393 |
|
/* "welcome" one */ |
394 |
|
if(!appdata->gpx) { |
395 |
|
char *name = g_strdup("/usr/share/gpxview/welcome.gpx"); |
396 |
|
dialog = gpx_busy_dialog_new(GTK_WIDGET(appdata->window)); |
397 |
|
printf("No GPX file loaded, trying to load demo\n"); |
398 |
|
appdata->gpx = gpx_parse(dialog, name); |
399 |
|
gpx_busy_dialog_destroy(dialog); |
400 |
|
g_free(name); |
401 |
|
} |
402 |
} |
} |
403 |
|
|