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); |