aboutsummaryrefslogtreecommitdiff
path: root/src/displaywindow.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-01-12 15:38:55 +0100
committerThomas White <taw@physics.org>2010-01-12 15:38:55 +0100
commit383d7710c06917e61a2045e5abd360977ab3c80c (patch)
treefb63df21639207570cc5d4f79e138bffcee403ad /src/displaywindow.c
parentf1fa363013da613fd913d7920d491a31c612fd72 (diff)
Add options to specify boost and binning on the command line
Diffstat (limited to 'src/displaywindow.c')
-rw-r--r--src/displaywindow.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/displaywindow.c b/src/displaywindow.c
index f78977e9..3f4a7f31 100644
--- a/src/displaywindow.c
+++ b/src/displaywindow.c
@@ -29,9 +29,6 @@
#include "utils.h"
-#define INITIAL_BINNING 2
-
-
static void displaywindow_error(DisplayWindow *dw, const char *message)
{
GtkWidget *window;
@@ -929,7 +926,8 @@ static gint displaywindow_press(GtkWidget *widget, GdkEventButton *event,
}
-DisplayWindow *displaywindow_open(const char *filename, const char *peaks)
+DisplayWindow *displaywindow_open(const char *filename, const char *peaks,
+ int boost, int binning)
{
DisplayWindow *dw;
char *title;
@@ -991,7 +989,8 @@ DisplayWindow *displaywindow_open(const char *filename, const char *peaks)
gtk_window_set_resizable(GTK_WINDOW(dw->window), FALSE);
gtk_widget_show_all(dw->window);
- dw->binning = INITIAL_BINNING;
+ dw->binning = binning;
+ dw->boostint = boost;
displaywindow_update(dw);
/* Peak list provided at startup? */