598 |
if(gc_link) { |
if(gc_link) { |
599 |
GtkWidget *but = |
GtkWidget *but = |
600 |
gtk_button_new_with_label(_("Post a new log entry for this geocache")); |
gtk_button_new_with_label(_("Post a new log entry for this geocache")); |
|
#if 0 |
|
|
gtk_button_set_image(GTK_BUTTON(but), |
|
|
gtk_image_new_from_stock(GTK_STOCK_ADD, GTK_ICON_SIZE_BUTTON)); |
|
|
gtk_button_set_image_position(GTK_BUTTON(but), GTK_POS_LEFT); |
|
|
#endif |
|
601 |
#if defined(USE_MAEMO) && (MAEMO_VERSION_MAJOR == 5) |
#if defined(USE_MAEMO) && (MAEMO_VERSION_MAJOR == 5) |
602 |
hildon_gtk_widget_set_theme_size(but, |
hildon_gtk_widget_set_theme_size(but, |
603 |
(HILDON_SIZE_FINGER_HEIGHT | HILDON_SIZE_AUTO_WIDTH)); |
(HILDON_SIZE_FINGER_HEIGHT | HILDON_SIZE_AUTO_WIDTH)); |
896 |
notebook_append_page(notebook, |
notebook_append_page(notebook, |
897 |
cache_hint(appdata, cache), _("Hint")); |
cache_hint(appdata, cache), _("Hint")); |
898 |
|
|
899 |
if(cache->log) |
// always display log page to allow user to post a new log |
900 |
|
if(cache->log |
901 |
|
#ifdef ENABLE_BROWSER_INTERFACE |
902 |
|
|| (strncmp(cache->id, "GC", 2) == 0) |
903 |
|
#endif |
904 |
|
) |
905 |
notebook_append_page(notebook, |
notebook_append_page(notebook, |
906 |
cache_logs(appdata, cache_context, cache->log, cache->logs_are_html), |
cache_logs(appdata, cache_context, cache->log, cache->logs_are_html), |
907 |
_("Logs")); |
_("Logs")); |
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); |