diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-12-29 13:52:26 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-12-29 13:52:26 (GMT) |
commit | f6b02ed08bb39257436921154dc617f4a07ca990 (patch) | |
tree | 6671e18ba37b9dc8dbd645c37e82ebedd7270322 /src | |
parent | 63d012bfab75840b789e144177ca73847ea989e7 (diff) |
Updated code to scroll loaded panels from Python.
Diffstat (limited to 'src')
-rw-r--r-- | src/glibext/gloadedpanel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glibext/gloadedpanel.h b/src/glibext/gloadedpanel.h index 9d460c7..e1e1e27 100644 --- a/src/glibext/gloadedpanel.h +++ b/src/glibext/gloadedpanel.h @@ -75,6 +75,8 @@ typedef enum _ScrollPositionTweak } ScrollPositionTweak; +#define IS_VALID_STP(t) (SPT_RAW <= (t) && (t) <= SPT_BOTTOM) + /* S'assure qu'un emplacement donné est visible à l'écran. */ void g_loaded_panel_scroll_to_cursor(GLoadedPanel *, const GLineCursor *, ScrollPositionTweak, bool); |