aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-02-28 10:02:15 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:16 +0100
commit0be308c286477205eb7b9ee8ddd97cd608de6a2e (patch)
treefc75eefe36e89c5ec5f7efde2452d191f64187b5 /src
parent4e31162cb8f3025f56f824cee4be5a3cbf05692c (diff)
hdfsee: Add --show-rings option
Diffstat (limited to 'src')
-rw-r--r--src/displaywindow.c5
-rw-r--r--src/displaywindow.h2
-rw-r--r--src/hdfsee.c5
3 files changed, 8 insertions, 4 deletions
diff --git a/src/displaywindow.c b/src/displaywindow.c
index 1abcec41..0af864fc 100644
--- a/src/displaywindow.c
+++ b/src/displaywindow.c
@@ -1396,7 +1396,8 @@ static gint displaywindow_press(GtkWidget *widget, GdkEventButton *event,
DisplayWindow *displaywindow_open(const char *filename, const char *peaks,
int boost, int binning, int cmfilter,
int noisefilter, int colscale,
- const char *element, const char *geometry)
+ const char *element, const char *geometry,
+ int show_rings)
{
DisplayWindow *dw;
char *title;
@@ -1415,7 +1416,7 @@ DisplayWindow *displaywindow_open(const char *filename, const char *peaks,
dw->numbers_window = NULL;
dw->image = NULL;
dw->use_geom = 0;
- dw->show_rings = 0;
+ dw->show_rings = show_rings;
dw->scale = colscale;
dw->binning = binning;
dw->boostint = boost;
diff --git a/src/displaywindow.h b/src/displaywindow.h
index 097efa5c..6dede9a8 100644
--- a/src/displaywindow.h
+++ b/src/displaywindow.h
@@ -90,7 +90,7 @@ extern DisplayWindow *displaywindow_open(const char *filename,
int binning, int cmfilter,
int noisefilter, int colscale,
const char *element,
- const char *geometry);
+ const char *geometry, int show_rings);
#endif /* DISPLAYWINDOW_H */
diff --git a/src/hdfsee.c b/src/hdfsee.c
index 282d0cc7..45373df0 100644
--- a/src/hdfsee.c
+++ b/src/hdfsee.c
@@ -92,6 +92,7 @@ int main(int argc, char *argv[])
int binning = 2;
int config_cmfilter = 0;
int config_noisefilter = 0;
+ int config_showrings = 0;
int colscale = SCALE_COLOUR;
char *cscale = NULL;
char *element = NULL;
@@ -108,6 +109,7 @@ int main(int argc, char *argv[])
{"colscale", 1, NULL, 'c'},
{"image", 1, NULL, 'e'},
{"geometry", 1, NULL, 'g'},
+ {"show-rings", 0, &config_showrings, 1},
{0, 0, NULL, 0}
};
@@ -190,7 +192,8 @@ int main(int argc, char *argv[])
config_cmfilter,
config_noisefilter,
colscale, element,
- geometry);
+ geometry,
+ config_showrings);
if ( main_window_list[i] == NULL ) {
ERROR("Couldn't open display window\n");
} else {