19 |
|
|
20 |
#include "gpxview.h" |
#include "gpxview.h" |
21 |
#include <math.h> |
#include <math.h> |
22 |
|
#include <string.h> |
23 |
|
|
24 |
static GtkWidget *cache_description(appdata_t *appdata, cache_t *cache) { |
static GtkWidget *cache_description(appdata_t *appdata, cache_t *cache) { |
25 |
return html_view(appdata, cache->long_description, |
return html_view(appdata, cache->long_description, |
179 |
|
|
180 |
if(cache->type != CACHE_TYPE_UNKNOWN) { |
if(cache->type != CACHE_TYPE_UNKNOWN) { |
181 |
gtk_table_attach(GTK_TABLE(table), |
gtk_table_attach(GTK_TABLE(table), |
182 |
tip = icon_get_widget(ICON_CACHE_TYPE_2X, cache->type), 0,1,0,1, |
#if defined(USE_MAEMO) && (MAEMO_VERSION_MAJOR >= 5) |
183 |
GTK_FILL, 0, GTK_FILL, 0); |
tip = icon_get_widget(ICON_CACHE_TYPE_2X, cache->type), |
184 |
|
#else |
185 |
|
tip = icon_get_widget(ICON_CACHE_TYPE_1_5X, cache->type), |
186 |
|
#endif |
187 |
|
0,1,0,1, GTK_FILL, 0, GTK_FILL, 0); |
188 |
#ifndef USE_MAEMO |
#ifndef USE_MAEMO |
189 |
gtk_tooltips_set_tip(tips, tip, _(cache_type_tip[cache->type]), NULL); |
gtk_tooltips_set_tip(tips, tip, _(cache_type_tip[cache->type]), NULL); |
190 |
#endif |
#endif |
513 |
static const char *tb_type = "track/details.aspx"; |
static const char *tb_type = "track/details.aspx"; |
514 |
|
|
515 |
/* --------------------- icon/ref/name -------------------------*/ |
/* --------------------- icon/ref/name -------------------------*/ |
516 |
gtk_table_attach_defaults(GTK_TABLE(table), icon_get_widget(ICON_TB, 0), |
GtkWidget *icon = NULL; |
517 |
0, 1, tb_row+0, tb_row+1); |
if(strcasestr(tb->name, "coin") != 0) |
518 |
|
icon = icon_get_widget(ICON_TB, 1); /* coin icon */ |
519 |
|
else |
520 |
|
icon = icon_get_widget(ICON_TB, 0); /* tb icon */ |
521 |
|
|
522 |
|
gtk_table_attach_defaults(GTK_TABLE(table), icon, |
523 |
|
0, 1, tb_row+0, tb_row+1); |
524 |
|
|
525 |
if(tb->ref) { |
if(tb->ref) { |
526 |
GtkWidget *ref = link_button_by_id(appdata, tb->ref, tb_type, tb->id); |
GtkWidget *ref = link_button_by_id(appdata, tb->ref, tb_type, tb->id); |