aboutsummaryrefslogtreecommitdiff
path: root/src/crystfelimageview.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-02-23 16:02:34 +0100
committerThomas White <taw@physics.org>2021-02-23 16:02:34 +0100
commit8d0b642f67a2068ca9caad99b78dbd28950f33f6 (patch)
treeab9919d3b16d9c9e76400bf08d12457d933deac7 /src/crystfelimageview.h
parentba297b8c672e9058cc727ed2c81679760aad98b5 (diff)
Centre image at start (or on zoom reset)
This just sets the scroll bars to the middle position, which is not necessarily the middle of the detector. Still, it's better than starting at the edge every time.
Diffstat (limited to 'src/crystfelimageview.h')
-rw-r--r--src/crystfelimageview.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/crystfelimageview.h b/src/crystfelimageview.h
index 9e1bf4a1..8d51a48b 100644
--- a/src/crystfelimageview.h
+++ b/src/crystfelimageview.h
@@ -68,6 +68,7 @@ struct _crystfelimageview
/* Redraw/scroll stuff */
int need_rerender;
+ int need_recentre;
GtkScrollablePolicy hpol;
GtkScrollablePolicy vpol;
GtkAdjustment *hadj;