Diff of /trunk/src/cache.c

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

revision 239 by harbaum, Fri Dec 4 19:58:26 2009 UTC revision 240 by harbaum, Sat Dec 12 20:56:23 2009 UTC
# Line 914  GtkWidget *cache_view(appdata_t *appdata Line 914  GtkWidget *cache_view(appdata_t *appdata
914      notebook_append_page(notebook,      notebook_append_page(notebook,
915               cache_tbs(appdata, cache->tb), _("TBs"));               cache_tbs(appdata, cache->tb), _("TBs"));
916    
917    notebook_append_page(notebook,    /* the demo caches don't have coordinates, so avoid */
918             cache_notes(cache_context), _("Notes"));    /* having to deal with them */
919      if(!isnan(cache->pos.lat) && !isnan(cache->pos.lon)) {
920        notebook_append_page(notebook,
921                             cache_notes(cache_context), _("Notes"));
922    
923    notebook_append_page(notebook,      notebook_append_page(notebook,
924             goto_cache(cache_context), _("Goto"));                           goto_cache(cache_context), _("Goto"));
925      }
926    
927    g_signal_connect(notebook_object(notebook), "switch-page",    g_signal_connect(notebook_object(notebook), "switch-page",
928             G_CALLBACK(on_notebook_page_change), cache_context);             G_CALLBACK(on_notebook_page_change), cache_context);

Legend:
Removed from v.239  
changed lines
  Added in v.240