Diff of /trunk/src/main.c

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

revision 129 by harbaum, Tue Sep 29 14:30:16 2009 UTC revision 130 by harbaum, Wed Sep 30 12:11:22 2009 UTC
# Line 535  static GtkWidget *cachelist_create(appda Line 535  static GtkWidget *cachelist_create(appda
535    appdata->cachelist_handler_id =    appdata->cachelist_handler_id =
536      gtk_timeout_add(CACHELIST_UPDATE_TIMEOUT, cachelist_update, appdata);      gtk_timeout_add(CACHELIST_UPDATE_TIMEOUT, cachelist_update, appdata);
537    
 #ifdef ENABLE_OSM_GPS_MAP  
   map_update(appdata);  
 #endif  
   
538    /* update timer is being reset if the user scrolls or selects */    /* update timer is being reset if the user scrolls or selects */
539    g_signal_connect(view, "button-press-event",    g_signal_connect(view, "button-press-event",
540                     (GCallback)cachelist_update_reset0, appdata);                     (GCallback)cachelist_update_reset0, appdata);
# Line 591  void on_cachelist_destroy(GtkWidget *wid Line 587  void on_cachelist_destroy(GtkWidget *wid
587    }    }
588    appdata->cur_gpx = NULL;    appdata->cur_gpx = NULL;
589    
590    #ifdef ENABLE_OSM_GPS_MAP
591      map_update(appdata);
592    #endif
593    
594    /* restore cur_view */    /* restore cur_view */
595    appdata->cur_view = g_object_get_data(G_OBJECT(widget), "cur_view");    appdata->cur_view = g_object_get_data(G_OBJECT(widget), "cur_view");
596  }  }
# Line 617  void cachelist_dialog(appdata_t *appdata Line 617  void cachelist_dialog(appdata_t *appdata
617                     G_CALLBACK(on_cachelist_destroy), appdata);                     G_CALLBACK(on_cachelist_destroy), appdata);
618    
619    gtk_widget_show_all(window);    gtk_widget_show_all(window);
620    
621    #ifdef ENABLE_OSM_GPS_MAP
622      map_update(appdata);
623    #endif
624  }  }
625  #endif  #endif
626  #endif  #endif
# Line 2136  crumb_back(gpointer data) { Line 2140  crumb_back(gpointer data) {
2140    
2141    gtk_widget_show_all(crumb->appdata->vbox);    gtk_widget_show_all(crumb->appdata->vbox);
2142    g_free(data);    g_free(data);
2143    
2144    #ifdef ENABLE_OSM_GPS_MAP
2145      map_update(crumb->appdata);
2146    #endif
2147  }  }
2148    
2149  static void crumb_add(appdata_t *appdata, char *name, int level,  static void crumb_add(appdata_t *appdata, char *name, int level,
# Line 2182  static void crumb_add(appdata_t *appdata Line 2190  static void crumb_add(appdata_t *appdata
2190  #else  #else
2191    bct_push_text(appdata->bct, name, crumb, (GDestroyNotify)crumb_back);    bct_push_text(appdata->bct, name, crumb, (GDestroyNotify)crumb_back);
2192  #endif  #endif
2193    
2194    #ifdef ENABLE_OSM_GPS_MAP
2195      map_update(appdata);
2196    #endif
2197  }  }
2198  #endif // USE_BREAD_CRUMB_TRAIL  #endif // USE_BREAD_CRUMB_TRAIL
2199    

Legend:
Removed from v.129  
changed lines
  Added in v.130