Diff of /trunk/src/gconf.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 12 by harbaum, Fri Jun 26 20:07:33 2009 UTC revision 13 by harbaum, Sat Jun 27 11:09:19 2009 UTC
# Line 389  void gconf_load_state(appdata_t *appdata Line 389  void gconf_load_state(appdata_t *appdata
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    

Legend:
Removed from v.12  
changed lines
  Added in v.13