Diff of /trunk/src/gconf.c

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

revision 13 by harbaum, Sat Jun 27 11:09:19 2009 UTC revision 17 by harbaum, Mon Jun 29 08:24:41 2009 UTC
# Line 314  void gconf_load_state(appdata_t *appdata Line 314  void gconf_load_state(appdata_t *appdata
314    
315    if(!appdata->image_path) {    if(!appdata->image_path) {
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");
322      if(p) {      if(p) {
# Line 392  void gconf_load_state(appdata_t *appdata Line 395  void gconf_load_state(appdata_t *appdata
395    /* if there are no entries in the main list, try to add the */    /* if there are no entries in the main list, try to add the */
396    /* "welcome" one */    /* "welcome" one */
397    if(!appdata->gpx) {    if(!appdata->gpx) {
398      char *name = g_strdup("/usr/share/gpxview/welcome.gpx");      char *name = g_strdup(ICONPATH "welcome.gpx");
399      dialog = gpx_busy_dialog_new(GTK_WIDGET(appdata->window));      dialog = gpx_busy_dialog_new(GTK_WIDGET(appdata->window));
400      printf("No GPX file loaded, trying to load demo\n");      printf("No GPX file loaded, trying to load demo\n");
401      appdata->gpx = gpx_parse(dialog, name);      appdata->gpx = gpx_parse(dialog, name);

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