aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-11-20 17:37:08 +0100
committerThomas White <taw@physics.org>2020-11-20 17:37:08 +0100
commitdaef3dd7c16bcb2dd98f9ae1acfdcd07db520401 (patch)
tree32bf6e80cc20cbf73ffc283ea82cc6a8e2593efa /src
parente9087293e5b7b92e64cb9cb7636e21f52611ac7c (diff)
Move indexing option tabs to side, and rearrange
This seems to give a more compact and logical layout
Diffstat (limited to 'src')
-rw-r--r--src/crystfelindexingopts.c1
-rw-r--r--src/gui_index.c10
2 files changed, 6 insertions, 5 deletions
diff --git a/src/crystfelindexingopts.c b/src/crystfelindexingopts.c
index 0b6cf515..513f8de9 100644
--- a/src/crystfelindexingopts.c
+++ b/src/crystfelindexingopts.c
@@ -588,6 +588,7 @@ GtkWidget *crystfel_indexing_opts_new()
io = g_object_new(CRYSTFEL_TYPE_INDEXING_OPTS, NULL);
io->cell_file = NULL;
+ gtk_notebook_set_tab_pos(GTK_NOTEBOOK(io), GTK_POS_LEFT);
gtk_notebook_append_page(GTK_NOTEBOOK(io),
indexing_parameters(io),
diff --git a/src/gui_index.c b/src/gui_index.c
index e260ac12..baf934b5 100644
--- a/src/gui_index.c
+++ b/src/gui_index.c
@@ -477,16 +477,16 @@ gint index_all_sig(GtkWidget *widget, struct crystfelproject *proj)
set_indexing_opts(proj,
CRYSTFEL_INDEXING_OPTS(proj->indexing_opts));
+ backend_page = make_backend_opts(njp);
+ gtk_notebook_prepend_page(GTK_NOTEBOOK(proj->indexing_opts),
+ backend_page,
+ gtk_label_new("Cluster/batch system"));
+
job_page = make_job_opts(proj, njp);
gtk_notebook_prepend_page(GTK_NOTEBOOK(proj->indexing_opts),
job_page,
gtk_label_new("Job name"));
- backend_page = make_backend_opts(njp);
- gtk_notebook_append_page(GTK_NOTEBOOK(proj->indexing_opts),
- backend_page,
- gtk_label_new("Cluster/batch system"));
-
gtk_dialog_set_default_response(GTK_DIALOG(dialog),
GTK_RESPONSE_OK);
gtk_widget_show_all(dialog);