--- trunk/src/gconf.c 2009/06/26 20:07:33 12 +++ trunk/src/gconf.c 2009/06/27 11:09:19 13 @@ -389,5 +389,15 @@ if(!appdata->cachelist_items) appdata->cachelist_items = CACHELIST_ITEM_DEFAULT; + /* if there are no entries in the main list, try to add the */ + /* "welcome" one */ + if(!appdata->gpx) { + char *name = g_strdup("/usr/share/gpxview/welcome.gpx"); + dialog = gpx_busy_dialog_new(GTK_WIDGET(appdata->window)); + printf("No GPX file loaded, trying to load demo\n"); + appdata->gpx = gpx_parse(dialog, name); + gpx_busy_dialog_destroy(dialog); + g_free(name); + } }