diff options
Diffstat (limited to 'src/dw-hdfsee.c')
-rw-r--r-- | src/dw-hdfsee.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c index 92276ada..f82c5ee1 100644 --- a/src/dw-hdfsee.c +++ b/src/dw-hdfsee.c @@ -1403,16 +1403,22 @@ static void numbers_update(DisplayWindow *dw) if ( found ) { + char text[64]; + f = image_feature_closest(dw->image->features, ffs, fss, &dmin, &imin); if ( dmin < dw->ring_radius*dw->binning ) { - gtk_label_set_text(GTK_LABEL(dw->numbers_window->feat), - f->name); + strncpy(text, f->name, 32); } else { - gtk_label_set_text(GTK_LABEL(dw->numbers_window->feat), - ""); + strcpy(text, ""); } + strcat(text, " (panel "); + strncat(text, find_panel(dw->image->det, ffs, fss)->name, 20); + strcat(text, ")"); + + gtk_label_set_text(GTK_LABEL(dw->numbers_window->feat), text); + } else { gtk_label_set_text(GTK_LABEL(dw->numbers_window->feat), ""); } |