From 3888de614efc03abcafb57e90cd9af89d2e3046d Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 25 Feb 2021 17:05:39 +0100 Subject: GUI: Make sure items under View menu are set correctly at the start --- src/crystfel_gui.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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); -- cgit v1.2.3