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), |
599 |
gtk_signal_connect(GTK_OBJECT(but), "clicked", |
gtk_signal_connect(GTK_OBJECT(but), "clicked", |
600 |
GTK_SIGNAL_FUNC(on_gclink_clicked), context); |
GTK_SIGNAL_FUNC(on_gclink_clicked), context); |
601 |
|
|
602 |
gtk_box_pack_start_defaults(GTK_BOX(vbox), but); |
gtk_box_pack_start(GTK_BOX(vbox), but, FALSE, FALSE, 0); |
603 |
} |
} |
604 |
#endif |
#endif |
605 |
|
|
648 |
|
|
649 |
gtk_box_pack_start(GTK_BOX(ivbox), ihbox, FALSE, FALSE, 0); |
gtk_box_pack_start(GTK_BOX(ivbox), ihbox, FALSE, FALSE, 0); |
650 |
|
|
651 |
gtk_table_attach_defaults(GTK_TABLE(table), ivbox, 0, 1, |
gtk_table_attach(GTK_TABLE(table), ivbox, 0, 1, |
652 |
2*log_cnt, 2*log_cnt+1); |
2*log_cnt, 2*log_cnt+1, 0, GTK_EXPAND | GTK_FILL, 0, 0); |
653 |
|
|
654 |
if(log->text) { |
if(log->text) { |
655 |
gtk_table_attach_defaults(GTK_TABLE(table), |
gtk_table_attach_defaults(GTK_TABLE(table), |
656 |
html_view(appdata, log->text, |
html_view(appdata, log->text, |
671 |
log_cnt++; |
log_cnt++; |
672 |
} |
} |
673 |
|
|
674 |
gtk_box_pack_start_defaults(GTK_BOX(vbox), table); |
gtk_box_pack_start(GTK_BOX(vbox), table, FALSE, FALSE, 0); |
675 |
|
|
676 |
#ifndef USE_PANNABLE_AREA |
#ifndef USE_PANNABLE_AREA |
677 |
gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scrolled_window), |
gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scrolled_window), |