aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2013-06-01 11:14:08 -0700
committerThomas White <taw@bitwiz.org.uk>2013-06-01 11:14:19 -0700
commitb3f389bd305276757636df9fbe8c43d7cf6fb0a6 (patch)
tree7bacaaca337eff80bc92a460de72b73d194db426
parentefdbfea7c9774d94ebf2f98ab7a7bdf6e7948bd6 (diff)
hdfsee: Show panel number in numbers window
-rw-r--r--src/dw-hdfsee.c14
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), "");
}