aboutsummaryrefslogtreecommitdiff
path: root/src/gui_index.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-02-25 17:06:05 +0100
committerThomas White <taw@physics.org>2021-02-25 17:06:05 +0100
commitf1fac55c2023bb0b99a5111167d98565badf48c5 (patch)
treebec3d9bc412056f3d8ea2c451db95032eb13959e /src/gui_index.c
parent3888de614efc03abcafb57e90cd9af89d2e3046d (diff)
GUI: Factorise force_{peaks,refls}_on
This should help avoid them getting out of sync. Again.
Diffstat (limited to 'src/gui_index.c')
-rw-r--r--src/gui_index.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui_index.c b/src/gui_index.c
index 2e2779f5..4e4e2dff 100644
--- a/src/gui_index.c
+++ b/src/gui_index.c
@@ -574,15 +574,12 @@ static void index_one_response_sig(GtkWidget *dialog, gint resp,
crystfel_image_view_set_refl_box_size(CRYSTFEL_IMAGE_VIEW(proj->imageview),
proj->indexing_params.ir_inn);
- crystfel_image_view_set_show_peaks(CRYSTFEL_IMAGE_VIEW(proj->imageview),
- proj->show_peaks);
+ force_refls_on(proj);
redraw_widget(proj->imageview);
}
gtk_widget_destroy(dialog);
proj->indexing_opts = NULL;
- w = gtk_ui_manager_get_widget(proj->ui, "/ui/mainwindow/view/refls");
- gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(w), 1);
}