aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-10-19 06:47:10 -0700
committerThomas White <taw@physics.org>2013-10-19 06:47:10 -0700
commit278732eb2bfd90b06087dc5a2196bec1287e6fe2 (patch)
tree23617fb6ca02c8358b7eb7a71658eb7af347adae /src
parent0c1f39250f05185f82e943c1622bbda411f8962f (diff)
hdfsee: Show panel name even when no feature clicked
Diffstat (limited to 'src')
-rw-r--r--src/dw-hdfsee.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c
index d253b904..7c33d755 100644
--- a/src/dw-hdfsee.c
+++ b/src/dw-hdfsee.c
@@ -1397,9 +1397,7 @@ static void numbers_update(DisplayWindow *dw)
}
}
- if ( dw->image->features == NULL ) return;
-
- if ( found ) {
+ if ( found && (dw->image->features != NULL) ) {
char text[64];
@@ -1418,7 +1416,14 @@ static void numbers_update(DisplayWindow *dw)
gtk_label_set_text(GTK_LABEL(dw->numbers_window->feat), text);
} else {
- gtk_label_set_text(GTK_LABEL(dw->numbers_window->feat), "");
+
+ char text[64];
+
+ text[0] = '\0';
+ strcat(text, "Panel ");
+ strncat(text, find_panel(dw->image->det, ffs, fss)->name, 20);
+
+ gtk_label_set_text(GTK_LABEL(dw->numbers_window->feat), text);
}
}