aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-02-25 17:05:39 +0100
committerThomas White <taw@physics.org>2021-02-25 17:05:39 +0100
commit3888de614efc03abcafb57e90cd9af89d2e3046d (patch)
treef4719f7234f7a7ae984cf645368059d3399f86cc /src
parenta885bcbb659b361ac305d706410e3ed415566f22 (diff)
GUI: Make sure items under View menu are set correctly at the start
Diffstat (limited to 'src')
-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);