aboutsummaryrefslogtreecommitdiff
path: root/src/gui_backend_local.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-08-21 16:07:02 +0200
committerThomas White <taw@physics.org>2020-08-21 16:07:02 +0200
commit9c57e7d61658fb79967e1b1a46c98995a1fed020 (patch)
treea75e25d5ec05d9c50cdf9657a4eff4455272be1b /src/gui_backend_local.c
parent0f0ff14be48f5e4d9679f30286614db3d9c062d3 (diff)
Framework for backend parameters via GUI
Diffstat (limited to 'src/gui_backend_local.c')
-rw-r--r--src/gui_backend_local.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui_backend_local.c b/src/gui_backend_local.c
index e485ed35..fc729a41 100644
--- a/src/gui_backend_local.c
+++ b/src/gui_backend_local.c
@@ -284,13 +284,21 @@ static void init_backend(struct crystfelproject *proj)
}
+static GtkWidget *make_parameters(void)
+{
+ return gtk_label_new("Local params");
+}
+
+
struct crystfel_backend _backend_local =
{
.name = "local",
+ .friendly_name = "Local (run on this computer)",
+ .make_parameters = make_parameters,
.init = init_backend,
.shutdown = shutdown_backend,
.run_unitcell = run_unitcell,
.cancel = cancel,
};
-struct crystfel_backend *backend_local = &_backend_local;
+const struct crystfel_backend *backend_local = &_backend_local;