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