diff options
author | Thomas White <taw@physics.org> | 2021-02-23 16:02:34 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-02-23 16:02:34 +0100 |
commit | 8d0b642f67a2068ca9caad99b78dbd28950f33f6 (patch) | |
tree | ab9919d3b16d9c9e76400bf08d12457d933deac7 /src/crystfelimageview.h | |
parent | ba297b8c672e9058cc727ed2c81679760aad98b5 (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.h | 1 |
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; |