440 |
pos_lon(wpt->pos.lon, SIZE_BIG, STRIKETHROUGH_NONE), |
pos_lon(wpt->pos.lon, SIZE_BIG, STRIKETHROUGH_NONE), |
441 |
2,3, wpt_row, wpt_row+1); |
2,3, wpt_row, wpt_row+1); |
442 |
|
|
443 |
ihbox = gtk_hbox_new(FALSE, 0); |
if(refpos && !isnan(refpos->lat) && !isnan(refpos->lon)) { |
444 |
gtk_box_pack_start(GTK_BOX(ihbox), gtk_image_new_from_pixbuf( |
ihbox = gtk_hbox_new(FALSE, 0); |
445 |
|
gtk_box_pack_start(GTK_BOX(ihbox), gtk_image_new_from_pixbuf( |
446 |
icon_bearing(*refpos, wpt->pos)),1,0,0); |
icon_bearing(*refpos, wpt->pos)),1,0,0); |
447 |
gtk_box_pack_start_defaults(GTK_BOX(ihbox), |
gtk_box_pack_start_defaults(GTK_BOX(ihbox), |
448 |
GTK_LABEL_SMALL((char*)pos_get_bearing_str(*refpos, wpt->pos))); |
GTK_LABEL_SMALL((char*)pos_get_bearing_str(*refpos, wpt->pos))); |
449 |
snprintf(str, sizeof(str), _("%.1f°"), |
snprintf(str, sizeof(str), _("%.1f°"), |
450 |
gpx_pos_get_bearing(*refpos, wpt->pos)); |
gpx_pos_get_bearing(*refpos, wpt->pos)); |
451 |
gtk_box_pack_start_defaults(GTK_BOX(ihbox), GTK_LABEL_SMALL(str)); |
gtk_box_pack_start_defaults(GTK_BOX(ihbox), GTK_LABEL_SMALL(str)); |
452 |
gpx_pos_get_distance_str(str, sizeof(str), |
|
453 |
*refpos, wpt->pos, appdata->imperial); |
gpx_pos_get_distance_str(str, sizeof(str), |
454 |
gtk_box_pack_start(GTK_BOX(ihbox), GTK_LABEL_SMALL(str),1,0,0); |
*refpos, wpt->pos, appdata->imperial); |
455 |
|
gtk_box_pack_start(GTK_BOX(ihbox), GTK_LABEL_SMALL(str),1,0,0); |
456 |
|
|
457 |
|
gtk_table_attach_defaults(GTK_TABLE(table), ihbox, 3,4, |
458 |
|
wpt_row+0, wpt_row+1); |
459 |
|
} |
460 |
|
|
|
gtk_table_attach_defaults(GTK_TABLE(table), ihbox, 3,4, |
|
|
wpt_row+0, wpt_row+1); |
|
|
|
|
461 |
/* ------------------ description ------------------------- */ |
/* ------------------ description ------------------------- */ |
462 |
if(wpt->desc) |
if(wpt->desc) |
463 |
gtk_table_attach_defaults(GTK_TABLE(table), |
gtk_table_attach_defaults(GTK_TABLE(table), |