aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-07-03 12:35:44 +0200
committerThomas White <taw@physics.org>2020-07-29 18:53:45 +0200
commitfc448f0933671135b149f2d151f8addc0bd73300 (patch)
tree7669204bddc10370be2706e5f3c32adbe0afa4ab /src
parent7effcce394b5583bd632db8c55c9954d326985a7 (diff)
Image selection when reading from stream
Diffstat (limited to 'src')
-rw-r--r--src/crystfel_gui.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c
index 18c70b3f..45934f24 100644
--- a/src/crystfel_gui.c
+++ b/src/crystfel_gui.c
@@ -141,6 +141,26 @@ static void update_imageview(struct crystfelproject *proj)
return;
}
+ if ( image->ev != NULL ) {
+ ev_str = image->ev;
+ ev_sep = " ";
+ } else {
+ ev_str = "";
+ ev_sep = "";
+ }
+ snprintf(tmp, 1023, "%s%s%s (frame %i of %i)",
+ image->filename,
+ ev_sep,
+ ev_str,
+ proj->cur_frame+1,
+ proj->n_frames);
+ gtk_label_set_text(GTK_LABEL(proj->image_info), tmp);
+ crystfel_image_view_set_image(CRYSTFEL_IMAGE_VIEW(proj->imageview),
+ image->filename,
+ image->ev);
+
+ image_free(image);
+
} else {
if ( proj->events[proj->cur_frame] != NULL ) {
@@ -340,6 +360,8 @@ static void finddata_response_sig(GtkWidget *dialog, gint resp,
data_template_free(proj->dtempl);
proj->dtempl = dtempl;
+ crystfel_image_view_set_datatemplate(CRYSTFEL_IMAGE_VIEW(proj->imageview),
+ proj->dtempl);
/* Set some defaults for things we won't be using */
g_free(proj->geom_filename);