diff options
author | Thomas White <taw@physics.org> | 2020-12-07 14:48:07 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-12-07 14:48:07 +0100 |
commit | 72f857fbd0c29ba4954f5602ecc43574e581776a (patch) | |
tree | 6e6f194506e34de3079a39fa559a5be05f2f2658 /src/crystfel_gui.c | |
parent | 79b8daba1e34e0c16104966314213ce1d0ad7b56 (diff) |
GUI: Save and restore the selected result
Diffstat (limited to 'src/crystfel_gui.c')
-rw-r--r-- | src/crystfel_gui.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c index 5dd5cedb..ad745d9c 100644 --- a/src/crystfel_gui.c +++ b/src/crystfel_gui.c @@ -129,14 +129,20 @@ static void swap_data_arrays(struct image *a, struct image *b) } -static void select_result(struct crystfelproject *proj, - const char *result_name) +void select_result(struct crystfelproject *proj, + const char *result_name) { gtk_combo_box_set_active_id(GTK_COMBO_BOX(proj->results_combo), result_name); } +const char *selected_result(struct crystfelproject *proj) +{ + return gtk_combo_box_get_active_id(GTK_COMBO_BOX(proj->results_combo)); +} + + /* Bring the image view up to date after changing the selected image */ void update_imageview(struct crystfelproject *proj) { |