aboutsummaryrefslogtreecommitdiff
path: root/src/crystfel_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crystfel_gui.c')
-rw-r--r--src/crystfel_gui.c10
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)
{