aboutsummaryrefslogtreecommitdiff
path: root/src/refine.c
diff options
context:
space:
mode:
authortaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-11-12 18:18:19 +0000
committertaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-11-12 18:18:19 +0000
commita65405c3a6dee5152697c40e5875ac7d9dffe2da (patch)
treee9c451c3bb5c8a1159807181606bfbd256eb1504 /src/refine.c
parent9665d9b38ec7d6ae515ef88e2bc849018e096bd2 (diff)
Feature centering
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@192 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/refine.c')
-rw-r--r--src/refine.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/refine.c b/src/refine.c
index 8f8761a..b2dd5d0 100644
--- a/src/refine.c
+++ b/src/refine.c
@@ -291,6 +291,19 @@ static gint refine_step(GtkWidget *step_button, ControlContext *ctx) {
}
+static gint refine_sequence(GtkWidget *step_button, ControlContext *ctx) {
+
+ if ( !ctx->cell ) {
+ displaywindow_error("No reciprocal unit cell has been found.", ctx->dw);
+ return 0;
+ }
+
+
+
+ return 0;
+
+}
+
static gint refine_response(GtkWidget *refine_window, gint response, ControlContext *ctx) {
ctx->refine_window = NULL;
@@ -344,6 +357,7 @@ void refine_open(ControlContext *ctx) {
gtk_table_attach_defaults(GTK_TABLE(table), label, 1, 2, 4, 5);
sequence_button = gtk_button_new_with_label("Run Sequencer");
gtk_table_attach_defaults(GTK_TABLE(table), sequence_button, 1, 2, 5, 6);
+ g_signal_connect(G_OBJECT(sequence_button), "clicked", G_CALLBACK(refine_sequence), ctx);
g_signal_connect(G_OBJECT(ctx->refine_window), "response", G_CALLBACK(refine_response), ctx);
gtk_widget_show_all(ctx->refine_window);