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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c
index 615d13ad..f3388aed 100644
--- a/src/crystfel_gui.c
+++ b/src/crystfel_gui.c
@@ -638,6 +638,7 @@ int main(int argc, char *argv[])
GtkWidget *results_toolbar;
GtkWidget *button;
GtkWidget *label;
+ GtkWidget *w;
/* Long options */
const struct option longopts[] = {
@@ -850,6 +851,13 @@ int main(int argc, char *argv[])
update_imageview(&proj);
}
+ w = gtk_ui_manager_get_widget(proj.ui, "/ui/mainwindow/view/peaks");
+ gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(w), proj.show_peaks);
+ w = gtk_ui_manager_get_widget(proj.ui, "/ui/mainwindow/view/refls");
+ gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(w), proj.show_refls);
+ w = gtk_ui_manager_get_widget(proj.ui, "/ui/mainwindow/view/labelrefls");
+ gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(w), proj.label_refls);
+
gtk_window_set_default_size(GTK_WINDOW(proj.window), 1024, 768);
gtk_paned_set_position(GTK_PANED(hpaned), 172);
gtk_paned_set_position(GTK_PANED(vpaned), 600);